> ## 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.

# Operations

> Guide for managing projects and deployment environments using the ale CLI

## Projects

### Create Project

<Steps>
  <Step title="Execute the command by passing the project name you want to create as a parameter">
    ```bash theme={null}
    ale project create <project-name>
    # ale project create test
    ```
  </Step>

  <Step title="When the project is created successfully, the result will be displayed as '@space-name/project-name'">
    ```bash theme={null}
    project "@admin/test" created
    ```
  </Step>
</Steps>

### List Projects

<Steps>
  <Step title="Execute the following command">
    ```bash theme={null}
    ale project list
    ```
  </Step>

  <Step title="Projects for the currently logged-in account will be listed, with the currently used project marked with an * symbol">
    ```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>

### Remove Project

<Steps>
  <Step title="Execute the command by passing the project name you want to remove as a parameter">
    ```bash theme={null}
    ale project remove <project-name>
    # ale project remove test
    ```
  </Step>

  <Step title="When the project is successfully removed, the deleted project will be displayed as '@space-name/project-name', and the target project will be changed to the earliest created project among the remaining ones">
    ```bash theme={null}
    @admin/test
    Current stage is @admin/aws:main on default
    ```
  </Step>
</Steps>

***

## Deployment Environments

### List Deployment Environments

<Steps>
  <Step title="Execute the following command to view deployment environments of the current project">
    ```bash theme={null}
    ale stage list
    ```
  </Step>

  <Step title="The deployment environments of the current project will be displayed">
    ```bash theme={null}
    NAME     CLUSTER     CREATED
    main     default     2025-04-02 15:56:38
    ```
  </Step>
</Steps>

### Change Deployment Environment

<Steps>
  <Step title="Execute the command by passing a parameter in the format of '@space-name/project-name' or '@space-name/project-name:environment'">
    ```bash theme={null}
    ale login <URL>
    # ale login https://app.ale-test.com/api
    ```
  </Step>

  <Step title="The changed deployment environment will be displayed as follows">
    ```bash theme={null}
    Current stage is @admin/aws:main on default
    ```
  </Step>
</Steps>

### Set Environment Secrets

<Steps>
  <Step title="Execute the command by passing the secret name and value as parameters to be used commonly in the deployment environment">
    ```bash theme={null}
    ale stage secret <secret-name> <secret-value>
    # ale stage secret TZ Asia/Seoul
    ```
  </Step>

  <Step title="When the secret is registered, the secret value will be displayed as follows">
    ```bash theme={null}
    Asia/Seoul
    ```
  </Step>
</Steps>

## Others

### List Templates

<Steps>
  <Step title="View available templates in the current Ale platform">
    ```bash theme={null}
    ale preset list
    ```
  </Step>

  <Step title="Available templates will be displayed as follows">
    ```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>
