---
schema_version: "1"
id: a930df09f2f2bd40af53758dcbfc9c9072ce8d98f3b12ca93098677c8cc868bd
title: CLI for Design Center Projects
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/anypoint-cli/3.x/design-center.md
canonical_url: https://docs.mulesoft.com/anypoint-cli/3.x/design-center
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 8178762c6d2b85983795781eadb5030a91fdf1d016a813efc1be872402b4ae97
description: MuleSoft Documentation Site
release: 3.x
latest: false
---
---
product: Anypoint CLI
version: 3.x
---

# CLI for Design Center Projects

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col></colgroup><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><a href="#designcenter-project-create">designcenter project create</a></p></div></div></td><td><div><div><p>Creates a new Design Center project</p></div></div></td></tr><tr><td><div><div><p><a href="#designcenter-project-delete">designcenter project delete</a></p></div></div></td><td><div><div><p>Deletes a Design Center project</p></div></div></td></tr><tr><td><div><div><p><a href="#designcenter-project-download">designcenter project download</a></p></div></div></td><td><div><div><p>Downloads the content of a Design Center project</p></div></div></td></tr><tr><td><div><div><p><a href="#designcenter-project-publish">designcenter project publish</a></p></div></div></td><td><div><div><p>Publishes a Design Center project to Exchange</p></div></div></td></tr><tr><td><div><div><p><a href="#designcenter-project-upload">designcenter project upload</a></p></div></div></td><td><div><div><p>Uploads the content of a project to Design Center</p></div></div></td></tr><tr><td><div><div><p><a href="#designcenter-project-list">designcenter project list</a></p></div></div></td><td><div><div><p>List all Design Center projects</p></div></div></td></tr></tbody></table>

## designcenter project create

\> designcenter project create \[options\] <name>

This Command creates a new Design Center project with the name specified in `<name>`.

> [!IMPORTANT] This command does not support Mule application types.

Besides the default `--help`, `-f`/`--fields` and `-o`/`--output` options, this command also takes:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Option</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><div><div><p><code>--type (required)</code></p></div></div></td><td><div><div><p>The project type.<br>This field is required.</p></div><div><p>Supported values are:</p></div><div><ul><li><p><code>raml</code></p></li><li><p><code>raml-fragment</code></p></li></ul></div></div></td><td><div><div><p><code>designcenter project create --type raml</code></p></div></div></td></tr><tr><td><div><div><p><code>--fragment-type</code></p></div></div></td><td><div><div><p>The fragment type. Always use with <code>--type raml-fragment</code>, even for OAS 3.0 and JSON schema fragments.</p></div><div><p>This field is required if the type option was set as <code>raml-fragment</code></p></div><div><p>Supported fragments type are:</p></div><div><ul><li><p><code>trait</code></p></li><li><p><code>resource-type</code></p></li><li><p><code>library</code></p></li><li><p><code>type</code></p></li><li><p><code>user-documentation</code></p></li><li><p><code>oas-components</code></p></li><li><p><code>json-schema</code></p></li></ul></div></div></td><td><div><div><p><code>designcenter project create --type raml-fragment --fragment-type user-documentation</code></p></div></div></td></tr></tbody></table>

## designcenter project delete

\> designcenter project delete \[options\] <name>

This Command deletes the Design Center project specified in `name`.

> [!WARNING] This command does not prompt twice before deleting. If you send a delete instruction,
> it does not ask for confirmation.

This command accepts only the default options: `--help`, `-f`/`--fields` and `-o`/`--output`.

## designcenter project download

\> designcenter project download \[options\] <name> <targetDir>

This command downloads the Design Center project passed in `name` to your local directory specified
in `targetDir`.

Use the `--branch` option to select the branch you want to download content from. Use the
`--resolveDependenciesTimeout=X` flag to specify the duration, in minutes, for the commands to wait
for the resolution of dependencies before downloading a project. If the specified time passes, your
project downloads without the missing dependencies.

This command also accepts the default options: `--help`, `-f`/`--fields` and `-o`/`--output`.

## designcenter project publish

\> designcenter project publish \[options\] <projectName>

This Command publishes the Design Center project passed in `projectName` to Exchange.  
Besides the default `--help`, `-f`/`--fields` and `-o`/`--output` options, this command also takes:

> [!TIP] Options that are not specified are extracted from exchange.json

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Option</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><div><div><p><code>--name</code></p></div></div></td><td><div><div><p>The name for the asset</p></div></div></td><td><div><div><p><code>designcenter project publish --name sampleProject</code></p></div></div></td></tr><tr><td><div><div><p><code>--main</code></p></div></div></td><td><div><div><p>The name of the main file name.</p></div></div></td><td><div><div><p><code>designcenter project publish --main sample.xml</code></p></div></div></td></tr><tr><td><div><div><p><code>--apiVersion</code></p></div></div></td><td><div><div><p>The API version if your project is an API specification project.</p></div></div></td><td><div><div><p><code>designcenter project publish --main sample.raml --apiVersion 1.0</code></p></div></div></td></tr><tr><td><div><div><p><code>--tags</code></p></div></div></td><td><div><div><p>Comma separated list of tags.</p></div></div></td><td><div><div><p><code>designcenter project publish --tags test,sample,integration</code></p></div></div></td></tr><tr><td><div><div><p><code>--groupId</code></p></div></div></td><td><div><div><p>The asset’s groupId.</p></div></div></td><td><div><div><p><code>designcenter project publish --groupId com.mulesoft.com</code></p></div></div></td></tr><tr><td><div><div><p><code>--assetId</code></p></div></div></td><td><div><div><p>The asset’s assetId.</p></div></div></td><td><div><div><p><code>designcenter project publish --assetId project</code></p></div></div></td></tr><tr><td><div><div><p><code>--version</code></p></div></div></td><td><div><div><p>The asset’s version.</p></div></div></td><td><div><div><p><code>designcenter project publish --version 1.0</code></p></div></div></td></tr><tr><td><div><div><p><code>--branch</code></p></div></div></td><td><div><div><p>The asset’s branch.</p></div></div></td><td><div><div><p><code>designcenter project publish --branch main</code></p></div></div></td></tr></tbody></table>

## designcenter project upload

\> designcenter project upload \[options\] <name> <projDir>

This Command uploads content from a Design Center project from your local directory passed in
`projDir` into an already existing Design Center project identified with `name`.

By default, this command ignores all hidden files and directories. To include hidden files and
directories, use the `--include-dot-files` option. When the `--include-dot-files` option is used,
the command uploads hidden files and folders from your specified directory.

Use the `--branch` option to select the branch you want to upload content to.

This command also accepts the default `--help`, `-f`/`--fields` and `-o`/`--output` options.

## designcenter project list

\> designcenter project list \[options\] \[searchText\]

This Command lists all your Design Center projects.  
You can start typing your project’s name and press `tab` for Anypoint Platform CLI to autocomplete
it, or you can double tap `tab` for a full list of all the values you can pass.

Besides the default `--help`, `-f`/`--fields` and `-o`/`--output` options, this command also takes:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Option</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><div><div><p><code>--pageIndex</code></p></div></div></td><td><div><div><p>Number of page to retrieve</p></div></div></td><td><div><div><p><code>designcenter project list --pageIndex 3</code></p></div></div></td></tr><tr><td><div><div><p><code>--pageSize</code></p></div></div></td><td><div><div><p>Number of results to retrieve per page</p></div></div></td><td><div><div><p><code>designcenter project list --pageSize 5</code></p></div></div></td></tr></tbody></table>
