Skip to main content
The Spree CLI (@spree/cli) does two things from your terminal:
  1. Manages your Spree project — boot the Docker stack, run generators and migrations, tail logs, open a console, upgrade versions.
  2. Calls the Admin API — generic get/post/patch/delete commands to read, write, and explore your store’s data, with zero-config credentials in local dev. See Admin API CLI.
The spree api commands work against any Spree 5.5+ instance and are built for both humans and AI agents — see the dedicated Admin API CLI guide. Every other command is listed in Commands.

Installation

The CLI is included automatically when you scaffold a project with create-spree-app. You can also install it globally:
Then run commands from your project directory:
Or use npx without installing:

Pair with AI agents

The CLI’s predictable command surface is what AI coding agents drive when working on Spree projects. The Spree agent skills teach agents these commands and conventions (install them with spree add ai), and the Claude Code plugin adds /spree:doctor (stack diagnosis) and /spree:audit-upgrade (upgrade-readiness audit) on top. See Agentic Development.