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:
These options can be used with any Catalyst CLI command.
Display detailed version information (CLI version, Node version, and platform).
This command does not accept any parameters.
Scaffold a new Catalyst storefront and connect it to your BigCommerce store. The CLI will prompt for any required values not passed as flags.
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.
Remove stored credentials for the current project.
This command does not accept any parameters.
Verify your stored credentials and display information about the authenticated store and linked project.
Example output:
If no credentials are found, the command exits with a “not logged in” message.
Start a local preview of your Catalyst storefront using OpenNext/Cloudflare. Requires a successful catalyst build first.
This command does not accept any parameters.
Build your Catalyst project. If the project is configured for Native Hosting (Commerce Hosting), this runs the OpenNext/Cloudflare pipeline and a Wrangler dry-run to generate deployment artifacts. Otherwise, it falls back to next build.
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 linked project (via project link) if not passing --project-uuid.
Tail live logs from your deployed application. Streams log output in real time using Server-Sent Events (SSE). The stream automatically reconnects on transient errors (up to 5 retries).
The available formats are:
default — [timestamp] [LEVEL] messageshort — message onlyrequest — [timestamp] [LEVEL] METHOD URL (status_code) messagejson — raw JSON outputpretty — pretty-printed JSONCreate a new BigCommerce infrastructure project and link it to your local Catalyst project. The project UUID is written to .bigcommerce/project.json.
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). The linked project UUID is written to .bigcommerce/project.json.
List BigCommerce infrastructure projects for your store. The currently linked project is highlighted.
Permanently delete a BigCommerce infrastructure project. This action is irreversible. If --project-uuid is not provided, the CLI fetches available projects and prompts you to select one. A confirmation prompt is shown before deletion unless --force is passed.
View or change CLI telemetry collection status (enable, disable, or show current status). Enabling telemetry helps BigCommerce support diagnose and troubleshoot errors.