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

@cargo-ai/cli

v1.0.8

Published

Command-line interface for the Cargo API

Readme

Cargo CLI

Command-line interface for the Cargo API. Manage workspaces, storage, orchestration, connections, billing, and more from the terminal; for a complete feature overview, see the Cargo CLI Overview.

Requirements

  • Node.js 22.x
  • A Cargo API token (create in your workspace under Settings → API)

Installation

Install from npm (global):

npm install -g @cargo-ai/cli

Or run once with npx without installing:

npx @cargo-ai/cli orchestration workflow list

Authentication

Login (recommended)

cargo-ai login --token <your-api-token>

Credentials are stored in ~/.config/cargo-ai/credentials.json (file mode 0600).

# Check current auth status
cargo-ai whoami

# Remove saved credentials
cargo-ai logout

Environment variables (override)

Environment variables take precedence over saved credentials, useful for CI or temporary overrides.

| Variable | Default | Description | | ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------- | | CARGO_API_TOKEN | — | Your Cargo API token (Bearer auth) | | CARGO_BASE_URL | https://api.getcargo.io | API base URL | | CARGO_WORKSPACE_UUID | — | Workspace UUID for workspace-scoped commands (some commands also accept --workspace-uuid) |

Usage

Command structure: cargo-ai <domain> <sub> <action>.

After a global install, run:

cargo-ai <domain> <sub> <action>

Without installing, use npx:

npx @cargo-ai/cli <domain> <sub> <action>

All commands output JSON to stdout.

Help

cargo-ai --help
cargo-ai orchestration --help
cargo-ai orchestration workflow --help

Domains and example commands

| Domain | Description | Example commands | | ------------------------ | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | | init | Workspace initialisation (user, workspace, datasets, etc.) | cargo-ai init | | orchestration | Workflows, plays, runs, batches, tools, templates | cargo-ai orchestration workflow list, cargo-ai orchestration run list --workflow-uuid <uuid> | | workspace | Workspaces, users, tokens, roles, folders | cargo-ai workspace workspaces list, cargo-ai workspace token list | | storage | Datasets, models, relationships, runs, records | cargo-ai storage dataset list, cargo-ai storage model list | | connection | Connectors and integrations | cargo-ai connection connector list, cargo-ai connection integration list | | billing | Usage and subscription | cargo-ai billing subscription get, cargo-ai billing usage get-metrics --payload '{"from":"2025-01-01","to":"2025-01-31"}' | | segmentation | Segments and changes | cargo-ai segmentation segment list, cargo-ai segmentation change list --payload '{}' | | revenue-organization | Allocations, capacities, members, territories | cargo-ai revenue-organization member list, cargo-ai revenue-organization territory list | | expression | Recipes and expression evaluation | cargo-ai expression recipe list, cargo-ai expression eval evaluate --payload '{}' | | system-of-record | System of record, client, logs | cargo-ai system-of-record sor list, cargo-ai system-of-record log list --payload '{}' | | user-management | Current user (no workspace context) | cargo-ai user-management user get-current | | ai | AI templates, agents, releases, chats, MCP, files | cargo-ai ai template list, cargo-ai ai agent list, cargo-ai ai file list | | context | Context repository, files, and skills | cargo-ai context skill list, cargo-ai context skill get --slug <slug>, cargo-ai context file list |

Commands that accept complex payloads use a --payload <json> option (e.g. cargo-ai orchestration play create --payload '{"name":"My Play",...}'). Use --help on any subcommand for options.

Agent Skills

Cargo Skills teaches AI coding agents (Claude Code, Cursor, Windsurf, GitHub Copilot, etc.) how to use the Cargo CLI. Install the skill to let your agent build, run, and manage revenue automation workflows programmatically:

npx skills add getcargohq/cargo-skills

Development

# Build
npm run build

# Run with tsx (no build)
npm run dev
# then in another terminal: npx tsx src/index.ts orchestration workflow list

# Type-check and lint
npm run type:check
npm run lint:check

License

See the project for license information.