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

@nevermined-io/cli

v1.13.0

Published

CLI for Nevermined Payments SDK

Downloads

822

Readme

Nevermined Payments CLI

Official command-line interface for the Nevermined Payments SDK.

Installation

Via npm (global)

npm install -g @nevermined-io/cli

Via npx (no installation)

npx @nevermined-io/cli <command>

From source

git clone https://github.com/nevermined-io/payments
cd payments/cli
pnpm install
pnpm build
./bin/run.js --help

Quick Start

1. Initialize Configuration

nevermined config init

This will prompt you for:

  • Your Nevermined API key
  • Target environment (sandbox, live)

Configuration is saved to ~/.config/nvm/config.json.

2. List Plans

nevermined plans get-plans

3. Get Plan Details

nevermined plans get-plan did:nvm:abc123

4. Get X402 Access Token

nevermined x402token get-x402-access-token did:nvm:plan123

Usage

nevermined [COMMAND]

TOPICS
  agents   Manage AI agents
  config   Manage CLI configuration
  plans    Manage payment plans
  x402     X402 protocol operations

COMMANDS
  help     Display help for nevermined

Configuration

Using Environment Variables

Instead of nevermined config init, you can set environment variables:

export NVM_API_KEY=nvm-your-api-key
export NVM_ENVIRONMENT=sandbox

Using Configuration Profiles

Support for multiple profiles:

# Initialize a production profile
nevermined config init --profile production

# Use a specific profile
nevermined plans get-plans --profile production

# Show all profiles
nevermined config show --all

Output Formats

All commands support multiple output formats:

# Table format (default)
nevermined plans get-plans

# JSON format
nevermined plans get-plans --format json

# Quiet mode (no output, useful for scripts)
nevermined plans get-plans --format quiet

Commands

Configuration Commands

  • nevermined config init - Initialize CLI configuration
  • nevermined config show - Display current configuration
  • nevermined config set <key> <value> - Set a configuration value

Plan Commands

  • nevermined plans get-plans - List all payment plans
  • nevermined plans get-plan <planId> - Get details of a specific plan
  • nevermined plans get-plan-balance <planId> - Get plan balance for a subscriber
  • nevermined plans register-plan - Register a new payment plan (flexible)
  • nevermined plans register-credits-plan - Register a credits-based plan
  • nevermined plans register-time-plan - Register a time-based plan
  • nevermined plans register-credits-trial-plan - Register a trial credits plan
  • nevermined plans register-time-trial-plan - Register a trial time plan

Agent Commands

  • nevermined agents get-agent <agentId> - Get details of a specific agent
  • nevermined agents get-agent-plans <agentId> - Get plans associated with an agent
  • nevermined agents register-agent - Register a new AI agent
  • nevermined agents register-agent-and-plan - Register an agent with a plan
  • nevermined agents add-plan-to-agent <planId> - Associate a plan with an agent
  • nevermined agents remove-plan-from-agent <planId> - Remove a plan from an agent
  • nevermined agents update-agent-metadata <agentId> - Update agent metadata

X402 Commands

  • nevermined x402token get-x402-access-token <planId> - Get an X402 access token for a plan

Examples

Register a Plan and Agent

# Initialize config
nevermined config init

# Get X402 token for a plan
nevermined x402token get-x402-access-token did:nvm:abc123 --format json

# Get plan details
nevermined plans get-plan did:nvm:abc123

Using JSON Config Files

# Register plan from JSON config
nevermined plans register-plan --config plan-config.json

# Register agent from JSON config
nevermined agents register-agent did:nvm:plan123 --config agent-config.json

Development

Building

pnpm build

Testing

pnpm test

Linting

pnpm lint

License

Apache-2.0

Links