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

mage-remote-run

v0.23.0

Published

The remote swiss army knife for Magento Open Source, Mage-OS, Adobe Commerce

Readme

Mage Remote Run

The remote swiss army knife for Magento Open Source, Mage-OS, Adobe Commerce

Project Status

This tool is in an early stage and not yet stable. Expect breaking changes as the CLI evolves.

Features

  • Connection Management: Easily switch between multiple Magento instances (SaaS/PaaS).
  • Interactive Prompts: User-friendly wizard for configuration and command inputs.
  • Rich Output: Formatted tables and structured data display.
  • Interactive Console (REPL): Run CLI commands or JavaScript in a live session.
  • MCP Server: Expose commands as MCP tools over stdio or HTTP (SSE).
  • Comprehensive API Support:
    • Stores: Manage websites, stores, and store views.
    • Customers: List, search, show, and delete customers.
    • Orders: View latest orders and order details.
    • Products: Inspect product types and attributes.
    • Tax: List tax classes.

Installation

npm install -g mage-remote-run

Or run directly via npx without installation:

npx mage-remote-run [command]

Usage

Configuration

The CLI supports multiple profiles. You can configure them interactively.

  1. Add a Connection:

    node bin/mage-remote-run.js connection add

    Follow the prompts to enter your instance URL and API credentials (Bearer Token).

  2. Select Active Profile:

    node bin/mage-remote-run.js connection select
  3. Check Status:

    node bin/mage-remote-run.js connection status
  4. Test Connections:

    node bin/mage-remote-run.js connection test --all

Key Commands

  • Websites:

    node bin/mage-remote-run.js website list
    node bin/mage-remote-run.js website search <query>
  • Stores:

    node bin/mage-remote-run.js store list
    node bin/mage-remote-run.js store view list
  • Customers:

    node bin/mage-remote-run.js customer list
    node bin/mage-remote-run.js customer show <id>
  • Orders:

    node bin/mage-remote-run.js order latest
    node bin/mage-remote-run.js order show <increment_id>

Interactive Console (REPL)

node bin/mage-remote-run.js console
# or
node bin/mage-remote-run.js repl

Inside the console, you can run commands directly (for example, website list) or evaluate JavaScript with top-level await.

MCP Server

Expose the CLI as an MCP server:

node bin/mage-remote-run.js mcp --transport stdio
node bin/mage-remote-run.js mcp --transport http --host 127.0.0.1 --port 18098

Commands are registered as tools (for example, website list becomes website_list), and tool inputs map to the same CLI arguments and options.

Development

Testing

The project uses Jest for testing.

npm test

Project Structure

  • bin/: CLI entry point.
  • lib/commands/: Command implementations.
  • lib/api/: API client factory and logic.
  • tests/: Unit and integration tests.