推荐使用命令行界面 (CLI) 与 Cloud Content Delivery (CCD) 进行交互。借助此工具可以使用命令行来控制项目的各个方面(从文件管理到组织发布管线)。
您可以在 Develop Dashboard 中执行许多类似的功能,但是需要使用 CLI 将文件复制到存储桶或者是同步整个文件夹。
要设置 CCD 以使用 CLI,请执行以下操作:
auth
命令使用您的 COS 密钥登录 CLI。CCD 现在可供使用了。
CLI 中的 CCD 命令的基本格式如下:
$ ucd [command]
可用命令为:
auth
:向 Content Delivery 进行身份验证。badges
:管理发布版本的标示。buckets
:管理项目的存储桶。config
:管理用于设置和标识当前存储桶的选项。entries
:管理当前存储桶的条目。releases
:管理当前存储桶的发布版本。要查看当前使用的 CLI 版本,请添加 --version
标志:
$ ucd --version
您可以在任何命令后添加以下全局标志:
--apikey string
:用户指定的 COS 密钥,用于访问 Content Delivery。-h
、--help
:显示给定命令的所有其他参数和标志。-q
、--quiet
:禁止显示由指定命令执行的操作。-v
、--verbose
:显示错误信息。例如:
$ ucd buckets create [project_id] [bucket_name]
$ ucd buckets listCos
$ ucd config set bucket [bucket_id]
$ ucd entries syncCos [local_dir_path]
$ ucd entries list
存储桶和条目名称区分大小写。
要查看 CLI 用法的完整示例,请参阅通过命令行界面使用 CCD。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.