> ## Documentation Index
> Fetch the complete documentation index at: https://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)をご覧ください。

<div id="export-command">
  ## export コマンド
</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/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)をお読みください。

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

オプション: `yaml` または `directory`。エクスポートされるリソース設定ファイルの形式を指定します。詳しくは、[使用可能なリソース設定形式](/docs/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">
  #### すべてのアセットのID付きでAuth0 テナント構成を取得する
</div>

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

<div id="import-command">
  ## import コマンド
</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/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`
