The content-repository command category includes a number of interactions with Dynamic Content's repositories.
These commands can be used to get details for a specific repository, list multiple repositories, or assign or unassign content types from a repository.
Run dc-cli content-repository --help to get a list of available commands.
Return to README.md for information on other command categories.
The following options are available for all content-repository commands.
| Option Name | Type | Description |
|---|---|---|
| --version | [boolean] | Show version number |
| --clientId | [string] [required] |
Client ID for the source hub |
| --clientSecret | [string] [required] |
Client secret for the source hub |
| --hubId | [string] [required] |
Hub ID for the source hub |
| --config | [string] [default: "~/.amplience/dc-cli-config.json"] |
Path to JSON config file |
| --help | [boolean] | Show help |
Returns information for a single content repository. Returns name, label, assigned content types, repository type, and repository locales.
dc-cli content-repository get <id>
| Option Name | Type | Description |
|---|---|---|
| --json | [boolean] [default: false] |
Render output as JSON |
dc-cli content-repository get foo
Returns information for a all content repositories in the target hub. Returns name, label, assigned content types, features, and repository locales.
dc-cli content-repository list
| Option Name | Type | Description |
|---|---|---|
| --sort | [string] | How to order the list. e.g "<property>,<asc|desc>..." |
| --json | [boolean] [default: false] |
Render output as JSON |
dc-cli content-repository list
dc-cli content-repository list --sort "label,asc"
Adds an association between a specified content type and a specified content repository, making it available for production in the Dynamic Content UI.
dc-cli content-repository assign-content-type <id>
| Option Name | Type | Description |
|---|---|---|
| --contentTypeId | [string] [required] |
Content Type ID to assign |
| --json | [boolean] [default: false] |
Render output as JSON |
dc-cli content-repository assign-content-type foo --contentTypeId bar
Removes the association between a specified content type and a specified content repository, making it unavailable for production in the Dynamic Content UI.
dc-cli content-repository unassign-content-type <id>
| Option Name | Type | Description |
|---|---|---|
| --contentTypeId | [string] [required] |
Content Type ID to unassign |
| --json | [boolean] [default: false] |
Render output as JSON |
dc-cli content-repository unassign-content-type foo --contentTypeId bar