Catalyst CLI
The Catalyst CLI and Native Hosting are currently in closed alpha. There may be breaking changes as we finalize the API. To express interest in gaining access, fill out the Native Hosting Closed Alpha Interest Form.
Make sure to read the Overview documentation to understand the purpose of the CLI, how configuration variables work, etc. The Catalyst CLI supports the following commands:
version
Display detailed version information (CLI version, Node version, and platform).
Parameters
This command does not accept any parameters.
Example
auth login
Authenticate with BigCommerce via your browser. Uses an OAuth device code flow. The CLI displays a one-time code, opens your browser to the BigCommerce login page, and waits for you to authorize. After logging in, your credentials are stored in .bigcommerce/project.json.
If you are already logged in, the CLI will display your current credentials and suggest running catalyst auth logout to re-authenticate.
Parameters
Example
auth logout
Remove stored credentials for the current project.
Parameters
This command does not accept any parameters.
Example
auth whoami
Verify your stored credentials and display information about the authenticated store and linked project.
Parameters
Example
Example output:
If no credentials are found, the command exits with a “not logged in” message.
start
Start a local preview of your Catalyst storefront using OpenNext/Cloudflare. Requires a successful catalyst build first.
Parameters
This command does not accept any parameters.
Example
build
Build your Catalyst project. Runs either the Next.js build or the Catalyst (OpenNext/Cloudflare) build pipeline depending on the configured framework. For the Catalyst framework, also runs a Wrangler dry-run to generate deployment artifacts.
Parameters
Example
deploy
Deploy your application to Cloudflare. By default, this also runs a build before deploying which can be skipped with the --prebuilt flag. Generates a bundle from .bigcommerce/dist, uploads it to BigCommerce, and creates a deployment. Requires a previous link if not passing --project-uuid.
Parameters
Example
project create
Create a BigCommerce infrastructure project.
Parameters
Example
project link
Link your local Catalyst project to a BigCommerce infrastructure project. You can provide a project UUID directly, or use store credentials to fetch and select from available projects (or create a new one).
Parameters
Example
project list
List BigCommerce infrastructure projects for your store.
Parameters
Example
telemetry
View or change CLI telemetry collection status (enable, disable, or show current status).