@bigcommerce/catalyst@1.0.0
Major Changes
-
#3077
a45ab43Thanks @jorgemoya! - Introducing the Catalyst CLI (@bigcommerce/catalyst) — a single command-line tool for scaffolding, building, and deploying your Catalyst storefront to BigCommerce's Native Hosting infrastructure.Highlights
- Scaffold a storefront —
catalyst createdownloads a clean, standalone project (flattened fromcore/,workspace:dependencies resolved to published versions, fresh git repo) via tarball extraction and connects it to your BigCommerce store. The package manager is auto-detected fromnpm_config_user_agent. - Browser-based authentication — Run
catalyst auth loginto authenticate via an OAuth device code flow. Credentials are stored locally in.bigcommerce/project.jsonfor use by all subsequent commands. CI/CD environments can use--store-hashand--access-tokenflags or environment variables instead. - Project & channel management — Create, link, and list BigCommerce infrastructure projects with
catalyst project, and connect storefront channels withcatalyst channel. - Build & deploy —
catalyst buildruns the OpenNext Cloudflare build pipeline (deriving the Wranglercompatibility_datedynamically) and generates deployment artifacts.catalyst deploybundles, uploads, and deploys your storefront with real-time progress streaming. Pass runtime secrets with--secret KEY=VALUE; environment variables are auto-detected as deploy secrets. - Persisted deployment env vars — Manage deployment environment variables across deploys with
catalyst env(list and remove; values are masked). - Custom domains — Add, list, check the status of, and remove custom domains for a Native Hosting project with
catalyst domains. - Local preview —
catalyst startlaunches a local Cloudflare Workers preview of your built storefront via the OpenNext adapter. - Live & historical logs —
catalyst logs tailstreams real-time application logs with color-coded levels and auto-reconnect;catalyst logs queryretrieves historical logs. - In-place upgrades —
catalyst upgradeupgrades a project to a newer version via a resilient 3-way merge (git merge-tree, falling back to per-filegit merge-file), producing resolvable conflict markers instead of ever aborting. - Smart credential resolution — Configuration is resolved in priority order: CLI flags →
--env-file→ process environment variables →.bigcommerce/project.json. - Telemetry — Anonymous usage telemetry with session and correlation IDs for support. Opt out anytime with
catalyst telemetry disable.
Commands
Command Description catalyst createScaffold and connect a Catalyst storefront to your BigCommerce store catalyst authAuthenticate, sign out, and verify stored credentials catalyst projectCreate, link, and list infrastructure projects catalyst channelConnect a storefront channel to your project catalyst buildBuild your Catalyst project for deployment catalyst deployBuild and deploy to BigCommerce Native Hosting catalyst envManage persisted deployment environment variables catalyst domainsManage custom domains for a Native Hosting project catalyst startStart a local Cloudflare Workers preview catalyst logsStream live logs and query historical logs catalyst upgradeUpgrade a project to a newer version via 3-way merge catalyst versionDisplay CLI, Node.js, and platform info catalyst telemetryView or change telemetry collection status Getting started
cd core pnpm add @bigcommerce/catalyst@latest @opennextjs/cloudflare@1.17.3 pnpm catalyst auth login pnpm catalyst project create pnpm catalyst deploy --secret BIGCOMMERCE_STORE_HASH=<hash> --secret BIGCOMMERCE_STOREFRONT_TOKEN=<token>
For full documentation, see the Native Hosting Overview and CLI Reference.
- Scaffold a storefront —