> ## 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 のリソース別ドキュメントの詳細を学びます。

# リソース別ドキュメント

一般的に、Deploy CLI のリソース設定ファイルは [Auth0 Management API](https://auth0.com/docs/api/management/v2) の payload スキーマとほぼ一致していますが、いくつか注意すべき重要な違いがあります。

<div id="client-grants">
  ## Client grants
</div>

Deploy CLI 自身の client grant は、意図的にエクスポートされず、単独で設定することもできないようになっています。これは破壊的変更を防ぐためです。そうでないと、このツールがインポートの途中でアクセスを取り消したり、クラッシュしたりするおそれがあります。マルチテナントかつ複数環境のコンテキストでは、[Getting Started](/docs/ja-jp/deploy-monitor/deploy-cli-tool) で説明しているように、新しい tenant には Deploy CLI 用の専用クライアントがあらかじめ用意されていることが想定されています。

<div id="prompts">
  ## プロンプト
</div>

多言語のカスタムテキストプロンプトは、特定の階層構造に従います。ルートレベルの prompts リソースプロパティの下には、独自の `customText` プロパティがあり、カスタムテキストの翻訳を他のプロンプト設定とまとめるために使用されます。`customText` の下には、2 文字の言語コードがあります。その次に、プロンプト ID、スクリーン ID、テキスト ID と続きます。

<div id="hierarchy">
  ### 階層
</div>

```yaml lines theme={null}
prompts:
  customText:
    <LANGUAGE>: # 2文字の言語コード
      <PROMPT_ID>: # プロンプトID
        <SCREEN_ID>: # プロンプト画面ID
          <TEXT_ID>: 'Some text'
```

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

```yaml lines theme={null}
prompts:
  identifier_first: true
  universal_login_experience: classic
  customText:
    en:
      login:
        login:
          description: 英語でのログインの説明
          buttonText: ボタンのテキスト
      mfa:
        mfa-detect-browser-capabilities:
          pickAuthenticatorText: '別の方法を試す'
          reloadButtonText: '再読み込み'
          noJSErrorTitle: 'JavaScriptが必要です'
        mfa-login-options:
          pageTitle: '${clientName}にログイン'
          authenticatorNamesSMS: 'SMS'
```

<div id="databases">
  ## データベース
</div>

データベース接続を管理する際、`options.customScripts` の値は、出力フォルダーのパスを基準とした相対パスで指定された特定の JavaScript ファイルを指します。それ以外は、ペイロードは [Auth0 Management API](https://auth0.com/docs/api/management/v2#!/Connections/post_connections) のものとほぼ一致します。

### YAMLの例

YAMLモードでのフォルダー構成:

```text lines theme={null}
./databases/
    /Username-Password-Authentication
        /change_password.js   
        /create.js   
        /delete.js   
        /get_user.js   
        /login.js   
        /verify.js   
./tenant.yaml
```

 `tenant.yaml` の内容:

```yaml lines theme={null}
databases:
  - name: Username-Password-Authentication
    # ...
    options:
      # ...
      customScripts:
        change_password: ./databases/Username-Password-Authentication/change_password.js
        create: ./databases/Username-Password-Authentication/create.js
        delete: ./databases/Username-Password-Authentication/delete.js
        get_user: ./databases/Username-Password-Authentication/get_user.js
        login: ./databases/Username-Password-Authentication/login.js
        verify: ./databases/Username-Password-Authentication/verify.js
```

### ディレクトリの例

ディレクトリモードでのフォルダ構成:

```text lines theme={null}
./database-connections/
    ./Username-Password-Authentication/
        ./change_password.js
        ./create.js
        ./database.json
        ./delete.js
        ./get_user.js
        ./login.js
        ./verify.js
```

`database.json` の内容:

```json lines theme={null}
{
  "options": {
    "customScripts": {
      "change_password": "./change_password.js",
      "create": "./create.js",
      "delete": "./delete.js",
      "get_user": "./get_user.js",
      "login": "./login.js",
      "verify": "./verify.js"
    }
  }
}
```

<div id="universal-login">
  ## Universal Login
</div>

<div id="pages">
  ### ページ
</div>

<Tooltip tip="Universal Login: アプリケーションは、ユーザーの本人確認を行うために、Auth0 の Authorization Server でホストされている Universal Login にリダイレクトされます。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=Universal+Login">Universal Login</Tooltip> をカスタム HTML で置き換える場合、エラー、ログイン、<Tooltip tip="Universal Login: アプリケーションは、ユーザーの本人確認を行うために、Auth0 の Authorization Server でホストされている Universal Login にリダイレクトされます。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=multi-factor+authentication">多要素認証</Tooltip>、およびパスワードリセットのコンテンツは、それぞれ専用の HTML ページにまとめられています。

<div id="yaml-example">
  #### YAMLの例
</div>

YAMLモードでのフォルダー構成:

```text lines theme={null}
./pages/
    /error_page.html
    /guardian_multifactor.html
    /login.html
    /password_reset.html
./tenant.yaml
```

`tenant.yaml` の内容:

```yaml lines theme={null}
pages:
  - name: error_page
    html: ./pages/error_page.html
    show_log_link: false
    url: https://mycompany.org/error
  - name: guardian_multifactor
    enabled: true
    html: ./pages/guardian_multifactor.html
  - name: login
    enabled: false
    html: ./pages/login.html
  - name: password_reset
    enabled: true
    html: ./pages/password_reset.html
```

<div id="directory-example">
  #### ディレクトリの例
</div>

ディレクトリモードでのフォルダー構成:

```text lines theme={null}
./pages/
    ./error_page.html
    ./error_page.json
    ./guardian_multifactor.html
    ./guardian_multifactor.json
    ./login.html
    ./login.json
    ./password_reset.html
    ./password_reset.json
```

`login.json` の内容：

```json lines theme={null}
{
  "name": "login",
  "enabled": false,
  "html": "./login.html"
}
```

`error_page.json` の内容：

```json lines theme={null}
{
  "html": "./error_page.html",
  "show_log_link": false,
  "url": "https://mycompany.org/error",
  "name": "error_page"
}
```

`guardian_multifactor.json` の内容:

```json lines theme={null}
{
  "enabled": true,
  "html": "./guardian_multifactor.html",
  "name": "guardian_multifactor"
}
```

`password_reset.json`の内容：

```json lines theme={null}
{
  "enabled": true,
  "html": "./password_reset.html",
  "name": "password_reset"
}
```
