the software store_

Deploying to stage and promoting to prod

How-to guide · Updated 2026-11-01

“Failure is not an option.”
— Gene Kranz, Apollo 13 (1995)

Every workspace has two environments to start with. stage follows each repository's main branch: a push that builds is deployed there without waiting. prod changes only when you promote.

Check what's on stage

The environment page shows each app's commit and whether it's healthy. From a script, GET /v1/ws/{ws}/envs/{env} returns the same.

Promote

Promote one app, or all of them at once, from the environment page's Promote to prod. Promotion deploys the commit already running on stage: nothing is rebuilt. It waits until the commit's checks have passed.

From a script or the CLI, POST /v1/ws/{ws}/envs/{env}/promote:

tss promote billing-api --to prod

Who can promote

Promoting needs the Deploy to production role. Developers can push and deploy to stage without it. An access key or an AI assistant can promote only if it was given that role too.

If it fails

A failed deploy leaves the previous release running. The environment's Overview says what failed, with a link to the build or the logs.