Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
create-spree-app
2.4.2
Patch Changes
- #14989
70ab2cdThanks @damianlegawiec! - When the mail catcher's usual ports are taken, the installer now says what is usually holding them and how to free them.
2.4.1
Patch Changes
- #14975
f86d75cThanks @damianlegawiec! - Renamed the CLI commands and flags that were named after Rails tools, so each command describes what it does rather than which Rails tool runs it.spree testreplacesspree rspec,spree add <extension>replacesspree bundle add,spree migrate:rollback --steps nreplacesSTEP=n,spree build --reset-depsreplaces--reset-bundle, andspree plugin newtakes--backend-name/--no-backend.spree rails,spree rake,spree bundle,spree routes,spree rspecand the old flags still work and print a notice naming the replacement; they will be removed in Spree 7.0.spree testnow creates the test database when it is missing, so the suite runs on a fresh project with no setup step. Also fixed the setup-link hintspree initprinted, which named a command that does not exist.
2.4.0
Minor Changes
#14906
6bcdb66Thanks @damianlegawiec! - New projects now ask whether to install the Spree agent skills (default yes;--agent-skills/--no-agent-skillsskip the question). The generatedAGENTS.mdis now the main instructions file for coding agents, withCLAUDE.mdimporting it, and it requires agents to run every command through the Spree CLI.spree add dashboardandspree add seller-dashboardnow include aCLAUDE.mdthat imports the app'sAGENTS.md, so Claude Code reads it too.#14908
02ac2cfThanks @damianlegawiec! - Addedspree add ai, which installs the Spree agent skills and connects Claude Code, Cursor and VS Code to the Spree docs MCP server, so existing projects can get the same AI agent setup as new ones. It keeps the servers a project's config files already list and is safe to re-run. New projects now run it during setup: the agent skills question reads "Set up AI coding agents?" and covers both, and--docs-mcp/--no-docs-mcpanswer the docs half on their own.
Patch Changes
- #14926
e0e980eThanks @damianlegawiec! -spree add <extension>installs an official extension in one step: Stripe, PayPal, Adyen, Avalara AvaTax, Klaviyo, EasyPost, Meilisearch, the MCP server and OpenTelemetry. It ejects a project still on the prebuilt image (after asking), adds the gem at the right version, runs the extension's installer and migrations, installs its dashboard plugin when it has one, and restarts a running server. A failed install puts the Gemfile back as it was. Extensions outside the list install withspree add --gem <name> --npm <package>, after a confirmation. New projects' agent instructions point coding agents atspree add.
2.3.1
Patch Changes
- Released alongside Spree 6.0.0.rc2 and
@spree/cli3.3.0. No changes of its own.
2.3.0
Minor Changes
- #14847
7d9bc01Thanks @damianlegawiec! - Added the--seller-dashboardoption, which includes the Seller Panel without asking. Together with--no-startand--no-storefrontit lets scripts and CI create a project with no prompts.
2.2.0
Minor Changes
- #14814
992b25eThanks @damianlegawiec! - Made the marketplace seller panel optional:create-spree-appnow asks whether to install it (yes by default) and accepts--no-seller-dashboard. Added--no-dashboardfor projects that are happy with the built-in admin dashboard;--react-dashboardis deprecated and does nothing. Apps are now set up in a consistent order — dashboard, seller panel, then storefront — and the storefront step looks the same as the others.spree initalso installs the seller panel's dependencies, and both tools now point projects without their own dashboard at the built-in one instead of saying no admin is installed.
Patch Changes
- #14828
f61ff68Thanks @damianlegawiec! - Mergedspree updateintospree upgrade, which now upgrades both prebuilt-image and ejected projects and also updates the@spree/*packages of the project root and the dashboard apps.spree updatekeeps working for one release with a deprecation warning. New projects get anupgradescript instead ofupdate.
2.1.0
Minor Changes
- #14710
36df7c7Thanks @damianlegawiec! - New projects get Active Record encryption keys: the generated.envnow includesACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY,ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEYandACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT, so webhook signing secrets, payment gateway customer IDs and OAuth tokens are encrypted at rest out of the box instead of being stored in plain text.
Patch Changes
- #14703
9e41f7dThanks @damianlegawiec! - The generated README and the closing summary no longer point at a Rails admin at/admin, which Spree 6 does not have; without the React Dashboard, the summary shows the command that adds it. The subscriber example usesorder.placedrather than the deprecatedorder.completed. The relocatedrender.yamlalways buildsserver/Dockerfile, whether the starter's Blueprint was written for this layout or for deploying the starter on its own.
2.0.2
Patch Changes
#14667
53008b4Thanks @damianlegawiec! - Point the generated agent instructions at files that exist.The scaffolded
AGENTS.mdsent dashboard work to a README that has since gained its ownAGENTS.md, said nothing about the seller panel every project receives, listed a documentation directory that was renamed, and demonstrated a Ransack filter onstate, which is no longer a queryable column.
2.0.1
Patch Changes
Fixed first-run setup failing partway through, and scaffolded both admin apps.
Several failures could leave a new project unusable: minting the CLI's API key raised "Name has already been taken" on any re-run, so a setup interrupted for any reason could never be completed; Mailpit's ports were not probed like the web port, so another Spree project or a local mail catcher failed
docker compose upwith a raw Docker daemon error; sample data was loaded before first-run setup created an admin to own it, aborting the run; and a failed key mint reported that the stack was not running, sending operators after a stack that was running fine.Scaffolds also create
apps/seller-dashboardalongsideapps/dashboard(spree add seller-dashboardadds it to an existing project). The React Dashboard is the admin in Spree 6, so it is no longer opt-in behind a flag, and first-run setup no longer prompts for an admin email and password — the account is created on the dashboard's own setup screen, which the browser opens automatically.
2.0.0
Major Changes
#14431
aab4b5cThanks @damianlegawiec! - Scaffolded apps no longer ship with a known admin password.Spree 6.0 replaces the seeded
[email protected]/spree123account with a first-run setup screen, so a new project no longer starts life with credentials that are public knowledge:- The scaffold summary and the generated README point at first-run setup instead of printing an email and password.
- The first run opens the setup link, where you create the admin account and name the store.
- The exported
DEFAULT_ADMIN_EMAILandDEFAULT_ADMIN_PASSWORDconstants are gone.
Minor Changes
Added the marketplace Seller Panel to project scaffolding and deployment.
spree add seller-dashboardscaffolds the panel intoapps/seller-dashboard/, andcreate-spree-appnow creates both admin apps. The CLI bundles the seller-panel starter template alongside the dashboard one, so the Spree starter's Docker image can bake both and serve the panel at/sellers.
1.2.1
Patch Changes
61f85afThanks @damianlegawiec! - Auto-enable the storefront wholesale B2B portal on sample-data scaffolds: create-spree-app writesSPREE_WHOLESALE_CHANNEL=wholesaleinto the storefront.env.local, and setup output points at the portal (/wholesale) with the buyer-approval flow. The portal runs on the default publishable key — no extra key or backend changes involved.
1.2.0
Minor Changes
70ff9acThanks @damianlegawiec! - Support the pnpm-native storefront template (spree/storefront now ships apnpm-lock.yamland pins pnpm viapackageManager):- Point the relocated storefront CI's
pnpm/action-setupand setup-node dependency cache atapps/storefront/— both resolve from the repo root by default, where the storefront's package.json and lockfile don't exist in the generated layout, failing the workflow outright on pnpm scaffolds. - Stamp
packageManagerinto the generated root package.json on pnpm scaffolds (steers corepack, and doubles as the pnpm version fallback for root-run workflows); omitted for npm/yarn scaffolds. - Install the cloned storefront with
--frozen-lockfileunder pnpm so template manifest/lockfile drift fails loudly instead of resolving silently to an untested tree. - Default the generated README/CLAUDE.md command examples to pnpm, matching the package-manager detection default.
- On yarn scaffolds, run storefront-scoped installs and command examples with pnpm — corepack-managed Yarn refuses to run inside the pnpm-pinned template, while the same corepack setup provisions the pinned pnpm on demand. npm scaffolds keep npm, which ignores the pin and keeps working.
- Point the relocated storefront CI's
1.1.4
Patch Changes
- Generated projects now test the storefront against their own customized
backend, not stock Spree. The storefront's CI workflow is relocated to the
project root (as
storefront-ci.yml, renamed so it doesn't shadow the backend check) and adapted to buildbackend/Dockerfileinto a local image, which the end-to-end suite boots via the newSPREE_IMAGEoverride — so E2E exercises the exact Spree the project deploys, extensions and seed data included.
1.1.3
Patch Changes
- Single-node deployment out of the box: the relocated
render.yamlnow deploys the backend as a Docker service built from the repo root (verbatim from the starter — no morerootDirrewriting), so the ejected backend and your customizedapps/dashboardship in one image with the dashboard served same-origin at/dashboard. New projects also get a root.dockerignorekeeping that build context to sources.
1.1.2
Patch Changes
The React Dashboard is no longer prompted for — it's a work-in-progress Developer Preview, and a yes/no prompt reads as a recommendation. Include it with the new
--react-dashboardflag (or later viaspree add dashboard); the--no-dashboardflag is gone with the prompt.Cut the duplicate output when scaffolding with the React Dashboard: the delegated
spree add dashboardsummary card is suppressed (its content lives in the main card), and the success card plus generated README present the dashboard's dev server as THE admin — thecd apps/dashboard && pnpm devcommand with the admin credentials and a dim classic-admin pointer — instead of two admins where only the classic one carried credentials.spree devco-runs that dev server with the API (one command, whole environment), so the printed URL is live as soon as the stack is up. For testing unreleased CLIs, theSPREE_CLI_VERSIONenv var overrides the scaffolded@spree/clidependency spec (a range or afile:tarball path — same name as the starter Dockerfile's ARG). The scaffolded pin's floor is now^2.4.4— the CLI behavior the scaffold relies on; an older resolve would reject the new flags and silently drop the dashboard phase. Projects scaffolded without the dashboard keep the classic/adminblock exactly as before. User-facing wording now calls the Rails app what it is to a storefront/dashboard developer — the Spree API ("Customize the Spree API", "Start the Spree API") — ahead of the plannedbackend/→api/directory rename. Requires@spree/cli2.4.4.
1.1.1
Patch Changes
- A finished
create-spree-apprun now always means a working app. The optional storefront and React Dashboard phases used to abort the whole scaffold on failure — before the final setup phase (spree init: fresh image pull, seeded database, API keys) ever ran — leaving a project whose first boot silently started a stale, locally cached Spree image. Those phases now warn and continue with a recovery command, cleaning up their partialapps/directory so the recovery command actually works, and setup always runs. Project docs (README.md, CLAUDE.md, dependabot.yml) are generated after those phases from their actual outcomes, so they never document an app whose setup failed. When services can't start during scaffolding (--no-start, Docker off), the firstspree devcompletes setup automatically (requires@spree/cli2.4.2), honoring the sample-data choice now persisted in.env(SPREE_SAMPLE_DATA), and the printed next steps plus the generated README reflect that — nobody has to knowspree initexists.
1.1.0
Minor Changes
- Offer the React Dashboard (Developer Preview) as an optional component: a new
prompt (and
--no-dashboardflag) scaffolds it intoapps/dashboard/by delegating to the project-localspree add dashboard(the CLI bundles the starter template with version pins matching its release), and wires the README, CLAUDE.md, and Dependabot config.
New projects now default to pnpm when it's installed — it's what the
Spree packages and docs are built around. An explicit invoking agent
(pnpm create spree-app, yarn create spree-app) and the
--use-npm/--use-yarn/--use-pnpm flags still win, and npm remains the
fallback when pnpm is absent. The generated README, CLAUDE.md, and next-steps
output now render commands for the chosen package manager instead of
hardcoding npm.
1.0.8
Patch Changes
- Relocate the generated project's Render Blueprint (
render.yaml) to the repository root and addrootDir: backendto every buildable service. In the wrapper layout the Rails app lives underbackend/, so a Blueprint left in that subdirectory is invisible to Render and, withoutrootDir, its services build from the wrong directory — the deploy fails. The commented-out worker template is adjusted too, so uncommenting it still deploys correctly. Managed services (Redis, database) are left untouched.
1.0.7
Patch Changes
- Fix and tidy the generated project's CI for the nested
backend/layout. The relocatedbackend-ci.ymlnow pointsruby/setup-rubyand thebin/rails/bundlesteps atbackend/, soruby/setup-rubyfinds.ruby-versioninstead of failing with "input ruby-version needs to be specified". The starter'srelease.yml(which publishes the official Spree image) and its standaloneREADME.mdare no longer carried into the generated project.
1.0.6
Patch Changes
- Improve generated README and post-create next steps with links to the Spree documentation, Discord, and CLI.
1.0.5
Patch Changes
- Fix the
spree apiproduct-create example in the generated project README and CLAUDE.md. The sample payload now ships apricesarray with a quoted string amount ("29.99") instead of an unsupported top-levelpricescalar, matching the Admin API's expected shape.
1.0.4
Patch Changes
Generated projects now document the Admin API CLI:
api/auth/api-keypassthrough scripts inpackage.json, an Admin API section in the README and CLAUDE.md showingnpx spree api get products(works against the read-only key minted during setup), and the global-install option for a barespreecommand.Scaffolded
.gitignorenow excludes.spree/— the local Admin API credentials directory used byspree api/spree auth.
1.0.3
Patch Changes
- Fix
docker-compose.dev.ymlto bind-mount./backendinstead of the project root. The scaffolded dev compose adjusted the build context for the wrapper layout but kept the starter's.:/railssource mount, sospree ejectfailed withexec: "bin/rails": stat bin/rails: no such file or directory.
1.0.2
Patch Changes
- Scaffolded projects now reference the Spree agent skills (
npx skills add spree/agent-skills) in the generated AGENTS.md/CLAUDE.md and post-create next steps, and the generated README documents the newspree devforeground behavior (streams logs, Ctrl+C stops the app).
1.0.1
Patch Changes
- Remove stale Mailpit references from the generated project README. Mailpit is no longer part of the docker-compose services.
1.0.0
Major Release
Stable release of create-spree-app for Spree Commerce 5.4.0. Scaffolds a complete Spree project with Docker, Meilisearch, and optional Next.js storefront. Now requires stable @spree/cli ^2.0.0.
0.5.1
Patch Changes
- Bump @spree/cli dependency to 2.0.0-beta.7 which includes search index initialization during
spree init.
0.5.0
Minor Changes
- Add Meilisearch to docker-compose.yml for built-in full-text search with typo tolerance, relevance ranking, and faceted filtering. Meilisearch runs automatically alongside PostgreSQL and Redis — no additional setup needed for development.
0.4.0
Minor Changes
- Always include
backend/directory (cloned from spree/spree-starter) with full Rails app for backend customization. Adddocker-compose.dev.ymlfor local builds. Addspree ejectscript. Storefront is now optional via--no-storefrontflag. Upgrade to PostgreSQL 18.
0.3.3
Patch Changes
- Bump
@spree/clidependency to2.0.0-beta.5
0.3.2
Patch Changes
- Bump
@spree/clidependency to2.0.0-beta.4
0.3.1
Patch Changes
- Updated storefront repository URL from
spree/nextjs-starter-spreetospree/storefront
0.3.0
Minor Changes
- Integrate
@spree/clifor day-to-day project management — scaffolded projects now include@spree/clias a dependency with convenience scripts (spree dev,spree stop,spree update,spree logs,spree console, etc.) - Delegate first-run setup to
spree init— database seeding, API key creation, sample data loading, and browser open are now handled by the CLI instead of the scaffolder - Rewrite Docker Compose template: switch from Solid Queue to Sidekiq + Redis, add Mailpit for local email, use YAML anchors for DRY config
- Use sequential port selection via
get-portwithportNumbers()range instead of random ports - Add Mailpit URL to generated README
0.2.2
Patch Changes
- Replace giget with
git clone --depth 1for downloading storefront template — fixes EACCES cache permission errors and reduces bundle size by 75%
0.2.1
Patch Changes
- Fix EACCES permission error when downloading storefront template by pre-creating the giget cache directory
0.2.0
Minor Changes
- Add dynamic port detection using get-port — if port 3000 is in use during scaffold, automatically picks the next available port. Add
--portCLI flag for explicit override. Addnpm run stopcommand.
0.1.2
Patch Changes
- Add background worker service to Docker Compose for Solid Queue job processing, rename service from
spreetoweb/worker
0.1.1
Patch Changes
- Fix Docker compose template: use DATABASE_URL for production, set separate database URLs for cache/queue/cable, disable SSL for local development, and load SECRET_KEY_BASE via env_file