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

shopify-partner-cli

v1.1.0

Published

CLI tool to manage and access Shopify merchant stores

Readme

Shopify Partner CLI

A CLI tool to help manage and access Shopify merchant stores via the Shopify CLI.

What is this?

Shopify Partner CLI Companion (sp) is a command-line tool that simplifies working with multiple Shopify stores. Instead of remembering or typing store handles every time you need to run Shopify CLI commands, you can store your stores once and quickly search and select them.

What problem does it solve?

When working as a Shopify Partner with multiple client stores, you frequently need to run commands like shopify theme dev --store <handle> or shopify theme pull --store <handle>. This becomes tedious when:

  • You have many stores to manage
  • Store handles are hard to remember (e.g., acme-store-2024, acme-store-v2)
  • Store handles change - Sometimes merchants change their store handle, making it difficult to track which handle corresponds to which store
  • You need to quickly switch between stores during development

This tool solves these problems by:

  • Storing store information (name and handle) in a centralized location
  • Providing fuzzy search to quickly find stores by name
  • Automatically using the correct handle when executing Shopify CLI commands
  • Displaying the selected handle so you can verify you're working with the right store

Installation

Install from npm (Recommended)

npm install -g shopify-partner-cli

After installation, verify it works:

sp --help

Install from GitHub

npm install -g https://github.com/ThreeAcresAgency/shopify-partner-cli.git

Development Installation

Clone and install for development:

git clone https://github.com/ThreeAcresAgency/shopify-partner-cli.git
cd shopify-partner-cli
npm install
npm link

Uninstallation

To uninstall:

npm uninstall -g shopify-partner-cli

Usage

Add a merchant

sp add "Acme Store" "acme-store"

The command will automatically:

  • Construct the myshopify.com URL from the handle
  • Verify the store exists
  • Detect the frontend URL (custom domain if available)

Bulk add merchants

Import multiple merchants from a CSV or JSON file:

sp bulk-add merchants.csv
sp bulk-add merchants.json

CSV Format:

name,handle
Acme Store,acme-store
Another Store,another-store
Example Store,example-store

JSON Format:

[
  {"name": "Acme Store", "handle": "acme-store"},
  {"name": "Another Store", "handle": "another-store"}
]

Options:

  • --skip-validation - Skip store validation (faster, but no URL detection)
  • --format csv|json - Force file format (auto-detected by extension)

The command will show progress and provide a summary of added, skipped (duplicates), and failed entries.

Remove a merchant

sp remove [name]

If no name is provided, you'll get an interactive menu to select which merchant to remove.

List all merchants

sp list

Displays a numbered list of all merchants with their names, handles, and URLs.

Open stores.json in editor

sp --open
# or
sp -o

Opens the stores.json file in your code editor. The command will automatically detect and use:

  • Cursor (if running in Cursor or if cursor command is available)
  • VS Code (if running in VS Code or if code command is available)
  • System default editor (if no editor is detected)

Search and execute commands

Search for a merchant (interactive):

sp Acme
# or just
sp

This will:

  1. Show an interactive search/selection menu for merchants (with fuzzy search)
  2. Display the selected store handle
  3. Let you select a Shopify CLI command to run:
    • shopify theme dev --store <handle>
    • shopify theme pull --store <handle>
    • shopify theme push --store <handle>
  4. Execute the selected command

Data Storage

Merchant data is stored in ~/.shopify-partner/stores.json.

Autocomplete

To enable tab autocomplete for the sp command:

./install-completion.sh
source ~/.zshrc

After installation, you can use tab completion:

  • sp <TAB> - shows available commands (add, remove)
  • sp add <TAB> - shows command help
  • sp remove <TAB> - shows command help

Contributing

Made by Brendan Quigley at Three Acres