The breezecloud CLI

Deploy, follow the build, tail logs, set config and run commands from your terminal or from CI. It uses the same API and token scopes as everything else.

Install

On macOS or Linux:

curl -fsSL https://breezecloud.app/install.sh | sh

The script picks the build for your machine, checks it against SHA256SUMS, and puts it in /usr/local/bin, or ~/.local/bin if that is not writable.

Or download a build yourself:

Log in

Create a token on Connect an agent, then:

breezecloud login

Paste the token when asked. It is saved for your user only. breezecloud logout forgets it. For CI, set BREEZECLOUD_TOKEN instead; it overrides the saved login.

Commands

APP is an app’s name or id.

CommandWhat it doesScope
breezecloud appsList apps with their repository, branch and URL.read
breezecloud deploy APPBuild and release the branch tip, print the build log as it runs, and finish with the live URL. --sha deploys one commit; --no-wait returns once it is queued.deploy
breezecloud releases APPRecent releases with their status and commit.read
breezecloud rollback APP 12Serve release v12 again, without a rebuild.deploy
breezecloud logs APP -fPrint recent logs from the running containers; -f keeps following.deploy
breezecloud restart APPRestart the running containers.deploy
breezecloud env APPList config var names. Values are never printed.read
breezecloud env set APP KEY=VALUESet one or more config vars. The app redeploys with them.operate
breezecloud env unset APP KEYRemove config vars. The app redeploys without them.operate
breezecloud run APP -- COMMANDRun one command, such as a migration, in the serving release and print its output.operate + secrets
breezecloud open APPPrint the app’s URL.read
breezecloud whoamiShow the console and the workspaces the token reaches.read

Deploy from GitHub Actions

Apps already deploy on every push to their branch. To deploy from a pipeline instead, for example after tests pass, turn off auto-deploy in the app’s settings and add a deploy token as the BREEZECLOUD_TOKEN secret:

- name: Deploy to BreezeCloud
  env:
    BREEZECLOUD_TOKEN: ${{ secrets.BREEZECLOUD_TOKEN }}
  run: |
    curl -fsSL https://breezecloud.app/install.sh | sh
    breezecloud deploy my-app --sha "$GITHUB_SHA"

deploy exits with an error if the release fails, so the job fails with it.