@spree/cli) manages Docker-based Spree projects created with create-spree-app.
Installation
The CLI is included automatically when you scaffold a project withcreate-spree-app. You can also install it globally:
npx without installing:
Commands
spree init
First-run setup. Starts Docker services, seeds the database, generates an API key, and optionally loads sample data.
spree dev
Start services and stream logs.
spree stop
Stop all services.
spree update
Pull the latest Spree Docker image and recreate containers. Migrations run automatically on startup.
spree eject
Switch from the prebuilt Docker image to building from your local backend/ directory. This lets you customize the Rails app — add gems, override models, add migrations, etc.
backend/Dockerfile. Edit files in backend/ and run spree dev to rebuild and restart with your changes.
See Customizing the Backend for details on what you can customize.

