> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ale.run/llms.txt
> Use this file to discover all available pages before exploring further.

# 運用管理

> エール CLIを使用したプロジェクトとデプロイ環境の管理ガイド

## プロジェクト

### プロジェクトの作成

<Steps>
  <Step title="作成したいプロジェクト名をパラメータとして指定し、コマンドを実行します。">
    ```bash theme={null}
    ale project create <project-name>
    # ale project create test
    ```
  </Step>

  <Step title="プロジェクトが正常に作成されると、'@space-name/project-name'の形式で結果が表示されます。">
    ```bash theme={null}
    project "@admin/test" created
    ```
  </Step>
</Steps>

### プロジェクト一覧の表示

<Steps>
  <Step title="以下のコマンドを実行します。">
    ```bash theme={null}
    ale project list
    ```
  </Step>

  <Step title="現在ログインしているアカウントのプロジェクト一覧が表示され、現在使用中のプロジェクトには*マークが付きます。">
    ```bash theme={null}
    Current scope is "@admin"
    NAME                CREATED
    aws                 2025-04-02 15:56:38
    *test               2025-04-10 16:41:40
    ```
  </Step>
</Steps>

### プロジェクトの削除

<Steps>
  <Step title="削除したいプロジェクト名をパラメータとして指定し、コマンドを実行します。">
    ```bash theme={null}
    ale project remove <project-name>
    # ale project remove test
    ```
  </Step>

  <Step title="プロジェクトが正常に削除されると、'@space-name/project-name'の形式で削除されたプロジェクトが表示され、対象プロジェクトは残りのプロジェクトの中で最も古いものに変更されます。">
    ```bash theme={null}
    @admin/test
    Current stage is @admin/aws:main on default
    ```
  </Step>
</Steps>

***

## デプロイ環境

### デプロイ環境一覧の表示

<Steps>
  <Step title="現在のプロジェクトのデプロイ環境を表示するため、以下のコマンドを実行します。">
    ```bash theme={null}
    ale stage list
    ```
  </Step>

  <Step title="現在のプロジェクトのデプロイ環境が表示されます。">
    ```bash theme={null}
    NAME     CLUSTER     CREATED
    main     default     2025-04-02 15:56:38
    ```
  </Step>
</Steps>

### デプロイ環境の切り替え

<Steps>
  <Step title="'@space-name/project-name'または'@space-name/project-name:environment'の形式でパラメータを指定し、コマンドを実行します。">
    ```bash theme={null}
    ale login <URL>
    # ale login https://app.ale-test.com/api
    ```
  </Step>

  <Step title="切り替えられたデプロイ環境が以下のように表示されます。">
    ```bash theme={null}
    Current stage is @admin/aws:main on default
    ```
  </Step>
</Steps>

### 環境シークレットの設定

<Steps>
  <Step title="デプロイ環境で共通して使用するシークレットの名前と値をパラメータとして指定し、コマンドを実行します。">
    ```bash theme={null}
    ale stage secret <secret-name> <secret-value>
    # ale stage secret TZ Asia/Seoul
    ```
  </Step>

  <Step title="シークレットが登録されると、以下のようにシークレット値が表示されます。">
    ```bash theme={null}
    Asia/Seoul
    ```
  </Step>
</Steps>

## その他

### テンプレート一覧の表示

<Steps>
  <Step title="現在のエールプラットフォームで利用可能なテンプレートを表示します。">
    ```bash theme={null}
    ale preset list
    ```
  </Step>

  <Step title="利用可能なテンプレートが以下のように表示されます。">
    ```bash theme={null}
    java                 Java                 N/A
    next.js              Next.js              N/A
    node                 Node.js              N/A
    php                  PHP                  N/A
    python               Python               N/A
    ruby                 Ruby                 N/A
    rust                 Rust                 N/A
    web                  Web Application      N/A
    ```
  </Step>
</Steps>
