> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 3. 設定の初期化

> bin/init を使用して、Mac 上で Toolkit の設定ファイルを作成します。

Toolkit のディレクトリで、GNU sed が `PATH` に含まれているターミナルから次のコマンドを実行します:

```bash theme={null}
bin/init
```

`bin/init` は次の 3 つのファイルを作成します:

| ファイル | 用途 |
| - | - |
| `config/overleaf.rc` | コンテナの設定、公開ポート、データの保存場所 |
| `config/variables.env` | アプリケーションの設定とシークレット |
| `config/version` | アプリケーションイメージのバージョン |

また、`config/variables.env` に `OVERLEAF_INVITE_TOKEN_SECRET` を生成します。この値は保持し、このファイルを公開したりバージョン管理にコミットしたりしないでください。

新規インストールでは、Toolkit が選択したバージョンをそのまま使用してください。既存のインスタンスのバージョンを後で変更するには、[デプロイのアップグレード](https://ayakaleaf-pro.mintlify.site/ja/on-premises/maintenance/upgrading-your-deployment.md)に従ってください。

> [!WARNING]
>
> `bin/init` が `sed: ... invalid command code` で停止した場合、macOS の BSD sed で実行されています。このように失敗した実行では、`config/` に 3 つのファイルがすべて作成されたまま `OVERLEAF_INVITE_TOKEN_SECRET` が空になることがあり、その後 `bin/init` を再度実行すると `Config files already exist` と表示されます。[トラブルシューティング](https://ayakaleaf-pro.mintlify.site/ja/on-premises/installation/using-docker-compose/macos/troubleshooting.md#initialization-fails-with-invalid-command-code)を参照してください。

### 次のステップ

[4. Ayakaleaf Pro イメージの取得](https://ayakaleaf-pro.mintlify.site/ja/on-premises/installation/using-docker-compose/macos/4.-get-ayakaleaf-pro-images.md)に進んでください。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.