重要: Unity Cloud Content Delivery のドキュメントは docs.unity.com に移動しました。Unity CCD に関する最新の情報は、新サイトを参照してください。 |
コマンドラインインターフェース (CLI) は、Cloud Content Delivery (CCD) を操作する際に推奨される方法です。このツールを使えば、ファイル管理からリリースパイプラインの編成まで、プロジェクトのあらゆる側面をコマンドラインで制御することができます。
Develop Dashboard で同様の機能の多くを実行できますが、ファイルをバケットにコピーしたり、フォルダー全体を同期したりするには CLI を使用する必要があります。
CCD を CLI に設定するには以下を行います。
auth
コマンドで、API キーを使って CLI にログインします。これで CCD が使えるようになりました。
CLI での CCD コマンドの基本形は以下の通りです。
$ ucd [コマンド]
使用可能なコマンドは以下の通りです。
auth
: Content Delivery による認証を行います。badges
: リリースのバッジを管理します。buckets
: プロジェクトのバケットを管理します。config
: 現在のバケットを設定し識別するためのオプションを管理します。entries
: 現在のバケットのエントリーを管理します。releases
: 現在のバケットのリリースを管理します。現在使用している CLI のバージョンを確認するには、--version
フラグを追加します。
$ ucd --version
任意のコマンドの後に以下のグローバルフラグを追加することができます。
--apikey string
: Content Delivery にアクセスするためのユーザー指定の API キー。-h
, --help
: 指定したコマンドのその他のパラメーターやフラグを表示します。-q
, --quiet
: 指定したコマンドによって実行された操作の表示を無効にします。-v
, --verbose
: エラー情報を表示します。例
$ 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
バケット名とエントリー名は大文字と小文字を区別します。
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.