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.
| Command | What it does | Scope |
|---|---|---|
breezecloud apps | List apps with their repository, branch and URL. | read |
breezecloud deploy APP | Build 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 APP | Recent releases with their status and commit. | read |
breezecloud rollback APP 12 | Serve release v12 again, without a rebuild. | deploy |
breezecloud logs APP -f | Print recent logs from the running containers; -f keeps following. | deploy |
breezecloud restart APP | Restart the running containers. | deploy |
breezecloud env APP | List config var names. Values are never printed. | read |
breezecloud env set APP KEY=VALUE | Set one or more config vars. The app redeploys with them. | operate |
breezecloud env unset APP KEY | Remove config vars. The app redeploys without them. | operate |
breezecloud run APP -- COMMAND | Run one command, such as a migration, in the serving release and print its output. | operate + secrets |
breezecloud open APP | Print the app’s URL. | read |
breezecloud whoami | Show 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.