The command-line interface (CLI) is the recommended method of interacting with Cloud Content Delivery (CCD). With this tool, you can use the command line to control every aspect of your project, from file management to organizing your release pipeline.
You can perform many similar functions in the Develop Dashboard, but you need to use the CLI to copy files to your bucket, or synchronize entire folders.
To set up CCD for CLI:
CCD is now ready for you to use.
The basic form of a CCD command in the CLI is as follows:
$ ucd [command]
The available commands are:
auth: Authenticates with Content Delivery.
badges: Manages badges for a release.
buckets: Manages buckets for a project.
config: Manages options for setting and identifying the current bucket.
entries: Manages entries for the current bucket.
releases: Manages the releases for the current bucket.
To see the version of the CLI you are currently using, add the
$ ucd --version
You can add the following global flags after any command:
--apikey string: User-specified API key for accessing Content Delivery.
--help: Displays any further parameters and flags for a given command.
--quiet: Disables the display of operations performed by the specified command.
--verbose: Displays error information.
$ ucd buckets create [project_id] [bucket_name]
$ ucd buckets list [project_id]
$ ucd config set bucket [bucket_id]
$ ucd entries sync [local_dir_path]
$ ucd entries list
Bucket and entry names are case sensitive.
For a full example of how to use the CLI, see Using CCD via the command line interface.