Skip to main content

Other Commands

Reference guide for additional CLI commands including configuration, facilitator operations, organizations, and utilities.

Configuration Commands

Login

Authenticate via browser login. Opens your browser, waits for you to sign in, and saves the API key to your CLI config:

Logout

Remove your API key from the local configuration so you need to authenticate again:

Initialize Configuration

Set up your CLI configuration interactively:
Interactive prompts:
  • NVM API Key
  • Environment (sandbox, live)
  • Profile name (optional)
Flags:
  • --api-key — Provide API key non-interactively
  • --environment — Set environment (sandbox, live)
  • -i, --interactive — Interactive mode (default: true)

View Configuration

Display your current configuration:
Output:

Set Configuration Values

Update specific configuration values:

Configuration File Structure

The config file at ~/.config/nvm/config.json:

Facilitator Commands

Facilitator commands are used by agent owners to verify and settle permissions (credit burning).

Verify Permissions

Verify that a subscriber has permission to use credits from a payment plan. This simulates credit usage without actually burning credits:
verify.json:

Settle Permissions

Settle (burn) credits from a subscriber’s payment plan. This executes the actual credit consumption:
settle.json:

Organizations Commands

Manage organization members and settings.

List Members

View all members in your organization:

Create Member

Add a new member to your organization:
Flags:
  • --user-email — Member’s email address (optional)
  • --user-role — Member’s role (optional)

Connect Stripe Account

Connect a user with Stripe for fiat payments:
All flags are required:
  • --user-email — User’s email address
  • --user-country-code — Two-letter country code
  • --return-url — URL to redirect after Stripe connection

X402 Token Commands

Get X402 Access Token

Generate an access token for a plan with delegated permissions:
Example:
Optional flags:
  • --agent-id — Target agent ID
  • --redemption-limit — Maximum credits that can be redeemed
  • --order-limit — Maximum number of orders
  • --expiration — Token expiration time
Example with options:
Output:

Save Token

Save token for later use:

Global Flags

All commands support these global flags:

Format Flag

Control output format:

Profile Flag

Use a specific configuration profile:

Verbose Flag

Enable verbose output with detailed logging:
Output includes:
  • Request/response details
  • Stack traces for errors
  • Debug information

Utility Commands

Version Information

Check CLI version:

Help

Get help for commands:

Scripting Examples

Environment Switcher

Switch between environments easily:

Multi-Profile Operations

Run commands across multiple profiles:
Usage:

Integration Examples

CI/CD Pipeline

Use CLI in CI/CD:

Common Issues

”Config file not found”

Initialize configuration:

“Invalid profile”

Check available profiles:

“Permission denied”

Fix config file permissions:

Next Steps