Back to Spree

create-spree-app

packages/create-spree-app/README.md

5.6.01.4 KB
Original Source

create-spree-app

Scaffold a new Spree Commerce project with a single command — a full Rails backend (the Spree API) running via Docker, an optional Next.js storefront, the React Dashboard behind --react-dashboard, and the spree CLI for day-to-day work. Setup completes automatically: image pulled, database seeded, API keys configured.

Quick Start

bash
npx create-spree-app my-store
FlagDescription
--react-dashboardInclude the React Dashboard (Developer Preview — also available later via spree add dashboard)
--no-storefrontSkip Next.js storefront setup
--no-sample-dataSkip loading sample products
--no-startDon't start Docker services (the first dev run completes setup instead)
--port <number>Port for the Spree backend (default: 3000)
--use-npm / --use-yarn / --use-pnpmPackage manager (auto-detected from how you run the command)

Documentation

The full guide — generated project structure, customization, deployment — lives on the docs site:

Just evaluating Spree? Skip self-hosting and use a hosted sandbox.

License

MIT