--- title: "API Gatewayの有効化" url: https://docs.catalyst.zoho.com/ja/cli/v1/working-with-api-gateway/enable-api-gateway/ description: "Catalyst CLIは、API Gatewayの有効化・無効化、およびローカル環境でのAPI作成ステータスの取得オプションを提供します。" last_updated: 2026-08-17T12:16:04Z service: All Services type: general --- # API Gatewayの有効化 API Gatewayが無効になっている場合、CLIからプロジェクトのAPI Gatewayを有効にできます。初めてアクセスする前に有効にする必要があります。 > **注意:** CatalystアプリケーションのAPI Gatewayを有効にすると、[Security Rules](https://docs.catalyst.zoho.com/ja/serverless/help/security-rules/introduction/)の設定は自動的に無効になります。Catalystプロジェクトでホストされているファンクションとwebクライアントは、APIを作成するまですぐにアクセスできなくなります。そのため、慎重に進めてください。API Gatewayを有効にした直後に、すべてのファンクションとWebクライアントのAPIを作成してください。また、その間にエンドユーザーがそれらにアクセスしないようにしてください。 プロジェクトのAPI Gatewayを有効にするには、プロジェクトディレクトリから次のコマンドを実行します: ```sh catalyst apig:enable ``` CLIはコンポーネントを有効にし、API Gatewayのステータスで設定ファイルを更新します。これにより、リモートコンソールでもAPI Gatewayが有効になります。 ![Enable API Gateway in CLI](https://catalyst-docs-development.zohostratus.in/images/cli/working-with-api-gateway/catalyst_cli_apig_enable.webp) プロジェクトのAPI Gatewayのステータスは、プロジェクトディレクトリの[`catalyst.json`](https://docs.catalyst.zoho.com/ja/cli/v1/project-directory-structure/catalyst-json/)ファイルでいつでも確認できます。`apig`設定の`enabled`パラメータが`true`に更新されます。 ![Enable API Gateway in CLI](https://catalyst-docs-development.zohostratus.in/images/cli/working-with-api-gateway/catalyst_cli_apig_catalyst_json.webp) > **注意:** **Visual Studio Code IDE**ユーザーの場合、**Catalyst Tools**拡張機能をインストールすると、CLIの代わりにIDEを使用してCLI操作を実行できます。Visual Studio Code IDEを使用したAPI Gatewayの操作手順は[こちら](https://docs.catalyst.zoho.com/ja/catalyst-extensions/vs-code-extension/catalyst-tools-explorer/)をご覧ください。