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

# squarecloud app deploy

> Square Cloud 上のアプリケーションのデプロイと Git 連携を管理します。

デプロイ履歴の確認と、2 種類の Git ベースのデプロイ連携（webhook トークンまたは Square Cloud GitHub App）の管理を行います。`list` と `current` では、アプリケーション ID は省略可能で、引数、次に `squarecloud.app` 設定ファイル、最後にインタラクティブな選択メニューの順で解決されます。`webhook` と `github link`/`unlink` では、代わりに `--app` で指定してください。

```bash theme={null}
squarecloud app deploy list
# Lists the most recent deployments, one row per commit.
```

```bash theme={null}
squarecloud app deploy current <appID>
# Shows the Git integration currently configured for the application, if any.
```

```bash theme={null}
squarecloud app deploy list --json
# Prints the raw deployment timeline as JSON.
```

```bash theme={null}
squarecloud app deploy webhook <githubToken> --app <appID>
# Creates a webhook deploy integration and prints the URL to add to your GitHub repository.
```

```bash theme={null}
squarecloud app deploy webhook --remove --app <appID>
# Removes the configured webhook integration.
```

```bash theme={null}
squarecloud app deploy github link owner/repository main --app <appID>
# Links a repository and branch through the Square Cloud GitHub App.
```

```bash theme={null}
squarecloud app deploy github unlink --app <appID>
# Unlinks the GitHub App repository from the application.
```

このコマンドの詳細については `squarecloud app deploy --help` を使用してください。
