Recent searches

in

Command Line Interface

Last modified: August 12th, 2026

On this page

The CloudCannon Command Line Interface (CLI) lets you work with CloudCannon from the command line. It generates and validates CloudCannon configuration files, runs a local dev server that loads the CloudCannon app against your local files, and manages your Organizations, Sites, Builds, files, and form submissions via the CloudCannon API.

Installation#

Install the CLI globally with npm:

npm install --global @cloudcannon/cli

The CLI requires Node.js 24 or later.

Authentication#

The configure and dev commands work on your local project files and don't require authentication. The sites, orgs, builds, and inboxes commands operate on CloudCannon through the API, so they require authentication.

For interactive use, log in with your CloudCannon account:

cloudcannon login

For automation and continuous integration, provide a credential through environment variables instead:

  • CLOUDCANNON_API_KEY — an organization-scoped API Key
  • CC_ACCESS_KEY_ID and CC_ACCESS_KEY_SECRET — a personal Access Key

To create these credentials, please read our documentation on creating an API key or creating an Access Key. Store them as secret environment variables, and never commit them to source control.

Open in a new tab