CLI Command Reference


calibre site#

calibre site create#

Add a Site for Calibre to monitor.

calibre site create <name> [options]
OptionDescriptionRequiredDefault
--urlThe URL of the Site.Yes
--locationChoose the location for the test.Yes
--teamThe identifying slug of the Team.
--scheduleSet the schedule for automated Snapshots. Available options: hourly, daily, every_x_hours.every_x_hours
--intervalSet the Snapshot interval. Provide UTC hour (between 0 and 23) for daily Snapshots and numeric hour interval for every_x_hours option (between 1 and 168 hours).6
--jsonOutputs the results of the command in JSON format.

calibre site list#

List all Sites you are tracking in Calibre.

calibre site list
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.

calibre site download-snapshot-artifacts#

Download the artifacts of a Snapshot to ./snapshot-artifacts/<id>. Includes: lighthouse.json, render progress screenshots, render progress MP4 video, HAR file (request log) and all other metrics and data available through the Calibre interface.

calibre site download-snapshot-artifacts [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--idThe id of the Snapshot.Yes
--jsonOutputs the results of the command in JSON format.

calibre site get-snapshot-metrics#

Get all metrics of a given Snapshot.

calibre site get-snapshot-metrics [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--snapshotThe id of a Snapshot.Yes
--jsonOutputs the results of the command in JSON format.
--csvOutputs the results of the command in CSV format.

calibre site metrics#

Get time-series metrics for a selected Site.

calibre site metrics [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--pagesA list of Page UUIDs to return metrics for. You can separate multiple Pages by a space or use multiple --pages flags.
--profilesA list of Test Profile UUIDs to return metrics for. You can separate multiple Test Profiles by a space or use multiple --profiles flags.
--metricsA list of metric UUIDs to return metrics for. You can separate multiple metrics by a space or use multiple --metrics flags.
--jsonOutputs the results of the command in JSON format.
--csvOutputs the results of the command in CSV format.
--fromThe start date to retrieve data from in the Year-Month-Day format (default: 7 days ago).
--toThe end date to retrieve data from in the Year-Month-Day format (default: today).
--30-dayGet the last 30 days of metrics. Without this flag, CLI will use the to and from values.

calibre site deploys#

List all deployments for a Site.

calibre site deploys [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--countThe number of items to return (default: 25, maximum: 500).25
--cursorThe cursor to fetch records after
--jsonOutputs the results of the command in JSON format.

calibre site create-deploy#

Create a deployment.

calibre site create-deploy [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--revisionThe source control revision id of the code you are deploying. It could be a git hash or a tag name.
--repositoryThe base URL of the repository containing the source code being deployed (e.g. https://github.com/calibreapp/app).
--usernameThe username of who deployed the code.
--jsonOutputs the results of the command in JSON format.

calibre site delete-deploy#

Delete a deploy from a selected Site.

calibre site delete-deploy [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--uuidThe UUID of the deploy.Yes
--confirmUse this flag to confirm the deletion of the selected deploy.
--jsonOutputs the results of the command in JSON format.

calibre site pages#

List Pages for a selected Site.

calibre site pages [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--countThe number of items to return (default: 25, maximum: 500).25
--cursorThe cursor to fetch records after
--jsonOutputs the results of the command in JSON format.

calibre site create-page#

Add a Page to an existing Site tracked by Calibre.

calibre site create-page <name> [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--urlThe URL of the Page.Yes
--jsonOutputs the results of the command in JSON format.

calibre site update-page#

Update the name or URL of a Page.

calibre site update-page [options]
OptionDescriptionRequiredDefault
--uuidThe UUID of the Page.Yes
--nameUpdate the name of the Page.
--urlUpdate the URL of the Page.
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--jsonOutputs the results of the command in JSON format.

calibre site delete-page#

Delete a Page from a selected Site.

calibre site delete-page [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--uuidThe UUID of the Page.Yes
--confirmUse this flag to confirm the deletion of the selected Page.
--jsonOutputs the results of the command in JSON format.

calibre site snapshots#

List selected Snapshots for a Site.

calibre site snapshots [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--countThe number of items to return (default: 25, maximum: 500).25
--cursorThe cursor to fetch records after
--jsonOutputs the results of the command in JSON format.

calibre site create-snapshot#

Create a Snapshot.

calibre site create-snapshot [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--refSet a reference to the Snapshot.
--jsonOutputs the results of the command in JSON format.

calibre site delete-snapshot#

Delete a Snapshot from a selected Site.

calibre site delete-snapshot [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--idThe id of the Snapshot.Yes
--confirmUse this flag to confirm the deletion of the selected Snapshot.
--jsonOutputs the results of the command in JSON format.

calibre site test-profiles#

List all Test Profiles for a Site.

calibre site test-profiles [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--jsonOutputs the results of the command in JSON format.

calibre site create-test-profile#

Add a Test Profile to a Site.

calibre site create-test-profile <name> [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--deviceChoose the emulated test device.Desktop
--connectionChoose the emulated network connection speed.
--javascriptTurn JavaScript execution on or off.true
--cookie-jarSet cookies by specifying a path to a Netscape formatted cookie jar file.
--jsonOutputs the results of the command in JSON format.

calibre site update-test-profile#

Update Test Profile settings. Only changes specified attributes.

calibre site update-test-profile [options]
OptionDescriptionRequiredDefault
--uuidThe UUID of the Test Profile.Yes
--deviceSet the emulated device.
--connectionSet the emulated network connection speed.
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--jsonOutputs the results of the command in JSON format.
--javascriptTurn JavaScript execution on or offtrue
--cookie-jarSet cookies by specifying a path to a Netscape formatted cookie jar file.

calibre site delete-test-profile#

Delete a Test Profile from a Site.

calibre site delete-test-profile [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--uuidThe UUID of the Test Profile.Yes
--confirmUse this flag to confirm the deletion of the selected Test Profile.
--jsonOutputs the results of the command in JSON format.

calibre site create-pull-request-review#

Create a Pull Request Review of a preview deployment.

calibre site create-pull-request-review [options]
OptionDescriptionRequiredDefault
--titlee.g. "My Pull Request"Yes
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--urlThe base URL of the preview deployment (e.g.: https://my-pull-request-123.example.com).Yes
--branchThe branch of the preview deployment. e.g.: "my-pull-request-123".Yes
--shaThe source control revision of the deployed code. e.g.: 9c72279.Yes
--configPathPath to a Calibre YAML config file.
--waitForResultWait for pull request to be evaluated before returning.false
--failOnUnmetBudgetReturn a command failure if any existing budget is exceeded. (Requires --waitForResult to be set.)false
--jsonOutputs the results of the command in JSON format.
--markdownOutputs the results of the command in Markdown format.

calibre site pull-request-reviews#

List Pull Request Reviews for a selected Site.

calibre site pull-request-reviews [options]
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--jsonOutputs the results of the command in JSON format.

calibre site pull-request-review#

See the results of a Pull Request Review.

calibre site pull-request-review <branch>
OptionDescriptionRequiredDefault
--siteA unique slug identifying each Site. You can find it in Site Settings → General or by using the calibre site list command.Yes
--jsonOutputs the results of the command in JSON format.
--markdownOutputs the results of the command in Markdown format.

calibre team#

calibre team list#

List Teams based on API Token access. For Admin Tokens, this will list all teams or as specified based on your settings. For Personal Access Tokens, this will list Teams that you have access to.

calibre team list
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.

calibre test#

calibre test create#

Run a Single Page Test against any public URL.

calibre test create <url> [options]
OptionDescriptionRequiredDefault
--deviceChoose the emulated test device.
--locationChoose the location for the test.Yes
--connectionChoose the emulated network connection speed.
--webhookUrlTest result JSON will be sent to this URL using HTTP POST.
--webhookSecretSecret used to sign the webhook payload. Secret can be validated using Calibre-HMAC-SHA256-Signature HTTP header. See https://calibreapp.com/docs/integrations/webhooks#webhook-security-and-verification for more information.
--privateMake the results of a test private (only accessible by members of your Calibre organisation).false
--expiresAtSet a future UTC date time string (ISO8601). After this date, the test will be automatically deleted. (Min=24 hrs, Max=2 years) e.g.: 2025-12-31T23:59:59ZDefault: Expires 1 year from creation date.
--cookie-jarSet cookies by specifying a path to a Netscape formatted cookie jar file.
--headersSet HTTP headers by providing a path to a JSON file or a valid JSON key-value pairs.
--blockedHostsBlock hosts by providing a comma-separated list, a path to a JSON file, or a valid JSON array. Supports wildcards (e.g., "*.example.com").
--jsonOutputs the results of the command in JSON format.
--markdownOutputs the results of the command in Markdown format.
--waitForTestWait for the test to complete before showing the results (default: test result link is shown immediately).false

calibre test download-artifacts#

Download the artifacts of a test to ./test-artifacts/<uuid>. Includes: lighthouse.json, render progress screenshots, render progress MP4 video, HAR file (request log) and all other metrics and data available through the Calibre interface.

calibre test download-artifacts <uuid>
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.

calibre test list#

List recent Single Page Tests (includes UUID, URL, device, connection, test location and status).

calibre test list
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.

calibre test show#

See the results of a Single Page Test (also as outputted by the test create command).

calibre test show <uuid>
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.
--markdownOutputs the results of the command in Markdown format.

calibre token#

calibre token set#

Store your API Token to use the CLI (saved in ~/.config/configstore/calibre.json).

calibre token set <token>

calibre token remove#

Remove the saved API Token used for CLI commands (from ~/.config/configstore/calibre.json).

calibre token remove

Reference commands#

calibre connection-list#

List all available network connection speeds.

calibre connection-list
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.

calibre device-list#

List all available test devices.

calibre device-list
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.

calibre location-list#

List all available test locations.

calibre location-list
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.

calibre metric-list#

List all available web performance metrics.

calibre metric-list
OptionDescriptionRequiredDefault
--jsonOutputs the results of the command in JSON format.

calibre request#

Use the request command to make a request to the Calibre GraphQL API.

calibre request
OptionDescriptionRequiredDefault
--queryPass a GraphQL query to execute.Yes
--variablesPass query variables as named arguments. e.g.: calibre request --query "$(cat query.gql)" --foo="example" --bar="example"

On this page