> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-feat-init-gt-translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

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

# CLI として使用する

[Auth0 Deploy CLI](https://github.com/auth0/auth0-deploy-cli) は、スタンドアロンのコマンドラインユーティリティとして使用でき、CI/CD ワークフローで Auth0 テナントの設定を簡単に管理できます。

設定項目の一覧については、[Deploy CLI の設定](/docs/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)をご覧ください。

<h2 id="export-command">
  exportコマンド
</h2>

Auth0テナントから設定を取得し、ローカルマシンに保存します。

<h3 id="output_folder-o">
  `--output_folder`, `-o`
</h3>

パス。設定ファイルの出力先ディレクトリを指定します。

<h3 id="config_file-c">
  `--config_file`, `-c`
</h3>

パス。ユーザー定義の設定ファイル (`config.json`) のパスを指定します。詳しくは、[Deploy CLI の設定](/docs/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)をお読みください。

<h3 id="format-f">
  `--format`, `-f`
</h3>

オプション: `yaml` または `directory`。エクスポートされるリソース設定ファイルの形式を指定します。詳しくは、[使用可能なリソース設定形式](/docs/ja-jp/deploy-monitor/deploy-cli-tool/available-resource-configuration-formats)をご覧ください。

<h3 id="export_ids-e">
  `--export_ids`, `-e`
</h3>

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

<h3 id="env">
  `--env`
</h3>

ブール値。ツールが環境変数を読み込むかどうかを指定します。既定値: `true`。

<h3 id="debug">
  `--debug`
</h3>

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

<h3 id="proxy_url-p">
  `--proxy_url`, `-p`
</h3>

リクエストをプロキシ経由で送信するための URL です。プロキシ環境でのみ設定してください。

<h3 id="examples">
  例
</h3>

<h4 id="fetching-auth0-tenant-configuration-in-the-yaml-format">
  Auth0テナントの設定をYAML形式で取得する
</h4>

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

<h4 id="fetching-auth0-tenant-configuration-in-directory-json-format">
  Auth0テナント設定をディレクトリ (JSON) 形式で取得する
</h4>

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

<h4 id="fetching-auth0-tenant-configurations-with-ids-of-all-assets">
  すべてのアセットのID付きでAuth0 テナント構成を取得する
</h4>

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

<h2 id="import-command">
  importコマンド
</h2>

ローカルマシンから Auth0 テナントに設定を適用します。

<h3 id="input_file-i">
  `--input_file`, `-i`
</h3>

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

<h3 id="config_file-c-2">
  `--config_file`, `-c`
</h3>

パス。ユーザー定義の設定ファイル (`config.json`) のパスを指定します。詳しくは、[Deploy CLI の設定](/docs/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)をお読みください。

<h3 id="env-2">
  `--env`
</h3>

ブール値。ツールが環境変数を読み込むかどうかを指定します。既定値: `true`。

<h3 id="proxy_url-p-2">
  `--proxy_url`, `-p`
</h3>

リクエストをプロキシ経由で送信するための URL です。プロキシ環境でのみ設定してください。

<h3 id="debug-2">
  `--debug`
</h3>

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

<h3 id="examples-2">
  例
</h3>

<h4 id="deploying-configuration-for-yaml-formats">
  YAML 形式の設定をデプロイする
</h4>

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

<h4 id="deploying-configuration-for-directory-format">
  ディレクトリ形式の設定をデプロイする
</h4>

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

<h4 id="deploying-configuration-with-environment-variables-ignored">
  環境変数を無視して設定をデプロイ
</h4>

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