@spree/cli) does two things from your terminal:
- Manages your Spree project — boot the Docker stack, run generators and migrations, tail logs, open a console, upgrade versions.
- Calls the Admin API — generic
get/post/patch/deletecommands to read, write, and explore your store’s data, with zero-config credentials in local dev. See Admin API CLI.
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 withcreate-spree-app. You can also install it globally:
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 withspree add ai), and the Claude Code plugin adds /spree:doctor (stack diagnosis) and /spree:audit-upgrade (upgrade-readiness audit) on top. See Agentic Development.
