Important: The Unity Cloud Content Delivery documentation has moved to docs.unity.com. Please visit the new site for the most up to date information about Unity CCD. |
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:
Assets
folder (Project tab) More infoauth
command.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 --version
flag:
$ ucd --version
You can add the following global flags after any command:
--apikey string
: User-specified API key for accessing Content Delivery.-h
, --help
: Displays any further parameters and flags for a given command.-q
, --quiet
: Disables the display of operations performed by the specified command.-v
, --verbose
: Displays error information.Examples:
$ 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.