> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
> Use this file to discover all available pages before exploring further.

# CLIとして使用

> Auth0 Deploy CLIをスタンドアロンのコマンドラインユーティリティとして使用する方法を説明します。

Deploy CLIはスタンドアロンコマンドラインユーティリティとして使用することができます。これにより、CI/CDワークフローでAuth0テナント構成を簡単に管理できるようになります。

設定の包括的なリストについては、「[Deploy CLIを構成する](/docs/ja-JP/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)」をお読みください。

<div id="export-command">
  ## エクスポートコマンド
</div>

Auth0テナントからローカルマシンへ構成を取得します。

<div id="output_folder-o">
  ### --output\_folder, -o
</div>

パス。構成ファイルを書き込む目的のディレクトリを指定します。

<div id="config_file-c">
  ### --config\_file, -c
</div>

パス。ユーザー定義の構成ファイル（`config.json`）を指定します。詳細については、「[Deploy CLIを構成する](/docs/ja-JP/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)」をお読みください。

<div id="format-f">
  ### --format, -f
</div>

オプション：`yaml`または`directory`。エクスポートされるリソース構成ファイルのファイル形式を決定します。詳細については、「[利用可能なリソース構成形式](/docs/ja-JP/ja-jp/deploy-monitor/deploy-cli-tool/available-resource-configuration-formats)」をお読みください。

<div id="export_ids-e">
  ### --export\_ids, -e
</div>

ブール値。有効にすると、各リソースの識別子フィールドをエクスポートします。デフォルト：`false`。

<div id="env">
  ### --env
</div>

ブール値。ツールが環境変数を取り込むかどうかを示します。デフォルト：`true`.

<div id="debug">
  ### --debug
</div>

ブール値。より詳細なエラーログを有効にします。トラブルシューティング時に役立ちます。デフォルト：`false`。

<div id="proxy_url-p">
  ### --proxy\_url, -p
</div>

要求をプロキシするためのURL。プロキシを使用している場合にのみこれを設定します。

<div id="examples">
  ### 例
</div>

<div id="fetching-auth0-tenant-configuration-in-the-yaml-format">
  #### Auth0テナント構成をYAMLフォーマットで取得します。
</div>

`a0deploy export -c=config.json --format=yaml --output_folder=local`

<div id="fetching-auth0-tenant-configuration-in-directory-json-format">
  #### Auth0テナント構成をディレクトリ（JSON）フォーマットで取得します。
</div>

`a0deploy export -c=config.json --format=directory --output_folder=local`

<div id="fetching-auth0-tenant-configurations-with-ids-of-all-assets">
  #### Auth0テナント構成をすべてのアセットのIDと共に取得します。
</div>

`a0deploy export -c=config.json --format=yaml --output_folder=local --export_ids=true`

<div id="import-command">
  ## インポートコマンド
</div>

ローカルマシンの構成をAuth0テナントへ適用します。

<div id="input_file-i">
  ### --input\_file, -i
</div>

パス。リソース構成ファイルの場所を指定します。YAML形式の場合、これは`tenant.yaml`ファイルを指し、ディレクトリ形式の場合、これはリソース構成ディレクトリを指します。

<div id="config_file-c">
  ### --config\_file, -c
</div>

パス。ユーザー定義の構成ファイル（`config.json`）を指定します。詳細については、「[Deploy CLIを構成する](/docs/ja-JP/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)」をお読みください。

<div id="env">
  ### --env
</div>

ブール値。ツールが環境変数を取り込むかどうかを示します。デフォルト：`true`.

<div id="proxy_url-p">
  ### --proxy\_url, -p
</div>

要求をプロキシするためのURL。プロキシを使用している場合にのみこれを設定します。

<div id="debug">
  ### --debug
</div>

ブール値。より詳細なエラーログを有効にします。トラブルシューティング時に役立ちます。デフォルト：`false`。

<div id="examples">
  ### 例
</div>

<div id="deploying-configuration-for-yaml-formats">
  #### YAML形式の構成をデプロイ
</div>

`a0deploy import -c=config.json --input_file=local/tenant.yaml`

<div id="deploying-configuration-for-directory-format">
  #### ディレクトリ形式の構成をデプロイ
</div>

`a0deploy import -c=config.json --input_file=local`

<div id="deploying-configuration-with-environment-variables-ignored">
  #### 環境変数を無視して構成をデプロイ
</div>

`a0deploy import -c=config.json --input_file=local/tenant.yaml --env=false`
