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>curl -X POST "https://calibreapp.com/api/sites/<site>/deploys?secret=<secret>&revision=<revision>"- Site slug and secret: find both in Site → Settings → General.
- CLI: needs a
CALIBRE_API_TOKENenvironment 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#
Use the CLI, Node.js API, HTTP Site API or GraphQL API.
calibre deploy create \
--site=<site> \
--revision=<revision> \
--repository=<repository> \
--username=<username>import { Deploy } from 'calibre'
await Deploy.create({
site: '<site>',
revision: '<revision>',
repository: '<repository>',
username: '<username>',
createdAt: '<createdAt>'
})curl -X POST "https://calibreapp.com/api/sites/<site>/deploys?secret=<secret>&revision=<revision>&repository=<repository>&username=<username>&created_at=<createdAt>"| Parameter | Required | Description |
|---|---|---|
site | Yes | The Site slug. |
revision | Recommended | The commit SHA or version. Names the Deploy and matches repeat calls. |
repository | No | The repository URL. GitHub URLs link the revision to its commit. |
username | No | Who shipped the deploy. |
createdAt | No | When it happened, in ISO 8601. Defaults to now. created_at in the HTTP Site API. |
List deploys#
calibre deploy list --site=<site> --count=<count> --cursor=<cursor>import { Deploy } from 'calibre'
await Deploy.list({ site: '<site>', count: <count>, cursor: '<cursor>' })curl "https://calibreapp.com/api/sites/<site>/deploys?secret=<secret>"To get one deploy, add its UUID: /api/sites/<site>/deploys/<uuid>?secret=<secret>.
Delete deploy#
calibre deploy delete --site=<site> --uuid=<uuid> --confirmimport { Deploy } from 'calibre'
await Deploy.destroy({ site: '<site>', uuid: '<uuid>' })