The CLI publishes as
@craveup/cli. The older unscoped craveup package on npm is
unmaintained and stops at 1.0.3 — install the scoped name. The installed command is still
craveup, so craveup login and the rest are unchanged.Install & run
Run the CLI anywhere you want to create the project directory:- Choosing a template (
storefront-default, Tomodachi Sushi, or Xichuan Noodles) - Authorizing with the Crave dashboard to obtain an API key
- Naming the project directory
- Installing dependencies with your detected package manager
- Optionally starting
pnpm devso you can preview immediately
Sign in
Scaffolding needs only an API key, but account-level commands — and the login-gated MCP tools — need a signed-in session:~/.config/craveup/credentials.json, and is shared with the CraveUp MCP server — signing in through either one satisfies the other. On a headless or remote machine, use craveup login --device to pair with a code you open on any other device.
Non-interactive usage
Prefer automation or CI pipelines? Use flags to skip prompts.
Example:
Environment variables
The CLI creates.env.local with placeholders. Update them before running the app:
Tip: keep separate API keys per environment. The CLI respectsCRAVEUP_DASHBOARD_URLandCRAVEUP_PARTNER_API_URLif you need to point at staging.
Project anatomy
Every template ships with:- Next.js 15 + App Router for modern server-first rendering
@craveup/storefront-sdkpreconfigured insrc/lib/storefront-client.ts- Typed API helpers co-located with app routes
- Component library for menu browsing, cart management, and checkout