API
The Shipyard CLI
Install the command-line client, log in with a token, and deploy, follow logs, set env vars and roll back from your terminal or CI.
Install
- The CLI is one file with no dependencies; it needs Node.js 18 or newer. Download it from your platform's API (the address shown on the API tokens page) and make it executable:
mkdir -p ~/.local/bin
curl -fsSL https://<your-api-host>/cli -o ~/.local/bin/shipyard
chmod +x ~/.local/bin/shipyardMake sure ~/.local/bin is on your PATH, or run it as node ~/.local/bin/shipyard.
Log in
- 1Open Settings → API tokens in the console and create a token. Pick the least access that works: Deploy for CI, Env vars to manage secrets, Read only for status checks.
- 2Run the login command and paste the token when asked. It is checked against the API and saved to ~/.config/shipyard/config.json, readable only by you.
shipyard login- If you belong to more than one workspace, pick the default one with shipyard use <workspace-slug>, or pass --workspace on any command.
Everyday commands
shipyard apps # apps with status and URL
shipyard status my-app # environments, live state, last deploy
shipyard deploy my-app # deploy production and stream the build
shipyard deploy my-app --env staging --branch feature/x -m "try x"
shipyard logs my-app # latest build log
shipyard logs my-app --runtime -f # follow the running app's output
shipyard env list my-app
shipyard env set my-app API_KEY=abc DEBUG=false
shipyard env unset my-app DEBUG
shipyard rollback my-app # back to the previous release, no rebuild
shipyard open my-app # print the URL- Apps are matched by slug (or id). Commands act on production unless you pass --env <name>. Env vars set without --env apply to every environment of the app; redeploy for running apps to pick them up.
In CI
- Skip login and set two environment variables instead. deploy exits with code 1 when the deployment fails, so the pipeline fails with it.
SHIPYARD_API=https://<your-api-host>
SHIPYARD_TOKEN=shpat_… # a Deploy token, stored as a CI secret
node shipyard deploy my-app --quietTreat tokens like passwords: keep them in your CI's secret store, give them only the access they need, set an expiry, and revoke any token you no longer use.

