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

# 身份验证

> 了解向 Square Cloud CLI 进行身份验证所需的步骤。

<Steps>
  <Step title="获取 API 密钥">
    首先，你需要从 [开发者面板](https://squarecloud.app/zh/account/security) 获取一个 API 密钥。你可以使用此 API 密钥向 Square Cloud CLI 进行身份验证。
  </Step>

  <Step title="进行身份验证">
    使用以下命令向 Square Cloud CLI 进行身份验证：

    ```bash theme={null}
    squarecloud auth login
    ```

    系统会提示你输入 API 密钥。

    ```bash theme={null}
    Your API Token:
    > Insert your square cloud api token
    ```

    输入 API 密钥后，你将完成向 Square Cloud CLI 的身份验证。

    你可以通过 `--token` 标志传递 API 密钥来跳过提示：

    ```bash theme={null}
    squarecloud auth login --token=<API key>
    ```
  </Step>
</Steps>

## 后续步骤

向 Square Cloud CLI 完成身份验证后，你就可以开始部署你的应用程序了。

<Card title="部署你的应用程序" href="/zh/cli-reference/commands/app/upload">
  了解如何使用 Square Cloud CLI 部署你的应用程序。
</Card>

<Card title="命令参考" href="/zh/cli-reference/commands/help">
  了解 Square Cloud CLI 中可用的命令。
</Card>
