Record Deploys


On this page

Record your releases and Calibre compares each one with the release before it, in RUM Deploys and Synthetic Deploys.

Choose how to record deploys#

  • GitHub (no code): in Site → Settings → Integrations, add GitHub to your repository. Each successful deploy of your production branch is recorded. See Production deployment tracking.
  • Render: Render reports deployments to GitHub, so connect GitHub. See Render.
  • Netlify: connect Netlify in the same Integrations tab. See Netlify.
  • Your CI or deploy script: run one command after each deploy, below. On Heroku, run it in a release phase.
npx calibre deploy create --site=<site> --revision=<revision>
  • Site slug and secret: find both in Site → Settings → General.
  • CLI: needs a CALIBRE_API_TOKEN environment variable. See API Tokens.
  • Revision: the commit SHA or version you deployed.

Recording the same revision again within 24 hours updates the existing Deploy, so you can combine options.

Create deploy#

Required permissionCreate Deploys

Use the CLI, Node.js API, HTTP Site API or GraphQL API.

calibre deploy create \
	--site=<site> \
	--revision=<revision> \
	--repository=<repository> \
	--username=<username>
ParameterRequiredDescription
siteYesThe Site slug.
revisionRecommendedThe commit SHA or version. Names the Deploy and matches repeat calls.
repositoryNoThe repository URL. GitHub URLs link the revision to its commit.
usernameNoWho shipped the deploy.
createdAtNoWhen it happened, in ISO 8601. Defaults to now. created_at in the HTTP Site API.

List deploys#

Required permissionRead Sites

calibre deploy list --site=<site> --count=<count> --cursor=<cursor>

To get one deploy, add its UUID: /api/sites/<site>/deploys/<uuid>?secret=<secret>.

Delete deploy#

Required permissionDelete Deploys

calibre deploy delete --site=<site> --uuid=<uuid> --confirm