npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@spree/cli

v2.0.0

Published

CLI for managing Spree Commerce projects

Readme

@spree/cli

CLI for managing Spree Commerce projects.

Automatically included in projects created with create-spree-app. Can also be installed standalone.

Installation

Already included when you scaffold a project with create-spree-app. To install separately:

npm install @spree/cli

Or run directly with npx:

npx @spree/cli <command>

Or install globally:

npm install -g @spree/cli
spree <command>

Commands

Run these from your Spree project directory.

spree dev

Start Docker services, print connection info, and stream web server logs.

spree dev

Press Ctrl+C to stop streaming logs (services keep running).

spree stop

Stop all running services.

spree stop

spree update

Pull the latest Spree Docker image and recreate containers. Database migrations run automatically on startup via db:prepare.

spree update

To pin a specific version, edit SPREE_VERSION_TAG in your .env file:

SPREE_VERSION_TAG=5.4

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.

spree eject

After ejecting, edit files in backend/ and run spree dev to rebuild and restart.

spree logs [service]

Stream logs from a service. Defaults to web.

spree logs          # web server logs
spree logs worker   # background job logs

spree console

Open an interactive Rails console inside the running container.

spree console

spree user create

Create an admin user. Prompts interactively for email and password, or accepts flags for scripting.

# Interactive
spree user create

# Non-interactive
spree user create --email [email protected] --password secret123

The user is automatically assigned the admin role on the default store.

spree api-key create

Create a Store API (publishable) or Admin API (secret) key. Prompts interactively for name and type, or accepts flags.

# Interactive
spree api-key create

# Non-interactive
spree api-key create --name "My Storefront" --type publishable
spree api-key create --name "Admin Integration" --type secret

Important: Secret key tokens are displayed only once at creation time and cannot be retrieved later. Save them immediately.

spree api-key list

List all API keys for the default store with their name, type, token/prefix, creation date, and status.

spree api-key list

spree api-key revoke

Revoke an API key by its token (publishable) or token prefix (secret).

spree api-key revoke pk_abc123def456...

spree seed

Run database seeds.

spree seed

spree sample-data

Load sample products, categories, customers, and images.

spree sample-data

How It Works

The CLI detects your project by looking for docker-compose.yml in the current directory. All commands execute via docker compose against the running Spree containers.

  • Port is read from SPREE_PORT in your .env file (default: 3000)
  • User and API key commands run Ruby scripts via docker compose exec web bin/rails runner
  • Service commands (dev, stop, update) are thin wrappers around docker compose

Using with npm scripts

Projects created with create-spree-app include convenience scripts in package.json:

npm run dev             # spree dev
npm run stop            # spree stop
npm run update          # spree update
npm run eject           # spree eject
npm run logs            # spree logs
npm run logs:worker     # spree logs worker
npm run console         # spree console
npm run seed            # spree seed
npm run load-sample-data # spree sample-data

Learn More

License

MIT