> ## 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) のペイロードスキーマにほぼ対応していますが、いくつか注意すべき重要な違いがあります。

<div id="client-grants">
  ## クライアントグラント
</div>

Deploy CLI 自身のクライアントグラントは、意図的にエクスポートされず、このクライアントグラント自体を設定することもできません。これは破壊的な変更を防ぐためです。そうしないと、このツールがインポートの途中でアクセスを取り消したり、クラッシュしたりするおそれがあります。マルチテナントかつ複数環境のコンテキストでは、[Getting Started](/ja/docs/deploy-monitor/deploy-cli-tool) で説明されているように、新しいテナントには 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
```

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

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

```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>

カスタムHTMLで<Tooltip tip="Universal Login: アプリケーションは、ユーザーの本人確認のために、Auth0 の認可サーバーでホストされる Universal Login にリダイレクトされます。" cta="用語集を表示" href="/ja/docs/glossary?term=Universal+Login">Universal Login</Tooltip>をオーバーライドする場合、エラー、ログイン、<Tooltip tip="Universal Login: アプリケーションは、ユーザーの本人確認のために、Auth0 の認可サーバーでホストされる Universal Login にリダイレクトされます。" cta="用語集を表示" href="/ja/docs/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
```

#### ディレクトリの例

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

```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"
}
```
