Skip to main content
squarecloud app deploy connects an application to GitHub so that a push deploys it. There are two ways to do it:
  • The Square Cloud GitHub App (app deploy github link): install the app on your repository, then link the repository and a branch.
  • A webhook (app deploy webhook): give a GitHub access token and add the URL the CLI prints to your repository’s webhooks.
The help center walks through the GitHub side: connect your GitHub repository, or set up an automated deploy with GitHub Actions. [appID] and --app are optional: see how the CLI finds your app.
Usage
Links a repository and branch through the Square Cloud GitHub App. The app must be installed on the repository through your GitHub account, and your GitHub account needs write access to it.
Output
To link another repository or branch, unlink the current one first.
Usage
Removes the GitHub App link from the application.

squarecloud app deploy webhook

Usage
Creates a webhook deploy integration from a GitHub access token (ghp_... or github_pat_...) and prints the URL to add as a webhook in your repository settings.
Output

squarecloud app deploy current

Usage
Shows the Git integration configured for the application: the linked repository and branch, the webhook URL, or No Git integration configured for this application.
Output

squarecloud app deploy list

Usage
Lists the most recent deploys started by Git pushes, one row per commit, with the latest state of each: the first 8 characters of the commit, its date, its state and the branch.