Skip to content

Latest commit

 

History

History
140 lines (97 loc) · 4.79 KB

File metadata and controls

140 lines (97 loc) · 4.79 KB

linked-content-repository

Description

The linked-content-repository command category includes a number of interactions with linked content respositories.

Run dc-cli linked-content-repository --help to get a list of available commands.

Return to README.md for information on other command categories.

Common Options

The following options are available for all linked-content-repository commands.

Option Name Type Description
--version [boolean] Show version number
--patToken [string]
[required]
PAT 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

Commands

list

List linked content repositories that exist in the target hubs Organization.

dc-cli linked-content-repository list

Options

Option Name Type Description
--sort [string] How to order the list e.g "<property>,<asc|desc>..."
--json [boolean]
[default: false]
Render output as JSON

Examples

List all linked content repositories
dc-cli linked-content-repository list

create

Creates a linked content repository.

dc-cli linked-content-repository create

Options

Option Name Type Description
--file [string]
[required]
Path to file containing link content respository JSON
--json [boolean]
[default: false]
Render output as JSON

Examples

Create a linked content repository
dc-cli linked-content-repository create --file '/User/Ampy/my-linked-content-repository-to-create.json'

update

Updates a linked content repository.

dc-cli linked-content-repository update

Options

Option Name Type Description
--file [string]
[required]
Path to file containing link content respository JSON
--json [boolean]
[default: false]
Render output as JSON

Examples

Update a linked content repository
dc-cli linked-content-repository update --file '/User/Ampy/my-linked-content-repository-to-update.json'

delete

Deletes a linked content repository.

dc-cli linked-content-repository delete

Options

Option Name Type Description
--file [string]
[required]
Path to file containing link content respository JSON
--json [boolean]
[default: false]
Render output as JSON

Examples

Delete a linked content repository
dc-cli linked-content-repository delete --file '/User/Ampy/my-linked-content-repository-to-delete.json'