Skip to main content

Installation options

The quickest way to get started. Scaffolds a full Spree project with Next.js Storefront (optional).Requirements: Node.js 20+ and Docker running.
npx create-spree-app@latest my-store
The CLI walks you through an interactive setup:
  1. Choose Full-stack (Backend + Next.js Storefront) or Backend only
  2. Optionally load sample data (products, categories, images)
Once complete, your store should be running at http://localhost:3000/admin. The port can be different if 3000 is already used on your system.See the full create-spree-app documentation for all CLI flags and options.

Accessing Admin Panel

Navigate to http://localhost:3000/admin and log in with the default credentials:
Emailspree@example.com
Passwordspree123
Upon successful authentication, you should see the admin screen:

Using the Spree CLI

Projects scaffolded with create-spree-app include @spree/cli for managing the backend and calling the Admin API. Because it’s a project dependency, run it with npx (or any package-manager script):
npx spree dev               # boot the Docker stack
npx spree api get products  # query the Admin API (read-only key preconfigured)
Project setup mints a read-only Admin API key into .spree/credentials.json (and spree api mints it on first use if you skipped setup), so spree api works without any extra configuration. To call spree directly without the npx prefix, install the CLI globally:
npm install -g @spree/cli
spree api get products
See the Spree CLI guide for all commands and the Admin API from the CLI for querying your store’s data.

Next Steps

Build with AI Agents

Install the Spree agent skills and connect the docs MCP server — Claude Code, Cursor, Copilot, and 60+ other tools learn Spree’s conventions and build features with you.

Customization Tutorial

Build a complete custom feature — model, admin UI, API, and TypeScript SDK — step by step.

Core Concepts

Understand how Spree models commerce — stores, products, orders, payments.

Next.js Storefront

Customize and extend the headless storefront.
Using an AI coding agent? Run npx skills add spree/agent-skills in your new project — it teaches your agent the customization patterns before you write a line of code. See Agentic Development.

Congrats! You’ve set up your Spree Commerce and it’s looking amazing! Give Spree a GitHub Star, why don’t ya? Thank you for supporting Spree open-source! Need support or want to give some feedback? Join our Discord