Getting Started
Complete guide to installing and configuring the Nevermined CLI.Prerequisites
Before installing the CLI, ensure you have:- Node.js >= 18.0.0
- npm or yarn package manager
- A Nevermined account with API key
Getting Your API Key
- Visit nevermined.app and sign in
- Navigate to your account settings
- Generate a new API key from the “API Keys” section
- Save your API key securely - you’ll need it for CLI configuration
nvm-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Installation
Option 1: Global Installation (Recommended)
Install the CLI globally to use thenvm command from anywhere:
Option 2: Using npx (No Installation)
Run the CLI without installing:Option 3: From Source
For development or contributing:Configuration
Interactive Setup
The easiest way to configure the CLI is using the interactive setup:- NVM API Key: Your API key from nevermined.app
- Environment: Choose from:
sandbox- Testing with real blockchain (requires test tokens)staging_sandbox- Development testing (recommended for learning)live- Production environmentstaging_live- Staging production environment
Configuration File
The CLI stores configuration in~/.config/nvm/config.json:
Multiple Profiles
Create multiple profiles for different environments or accounts:Environment Variables
Override configuration with environment variables:- CI/CD pipelines
- Temporary configuration changes
- Scripting
View Configuration
Display your current configuration:Verify Setup
Test your configuration by listing available plans:Environment Guide
Choose the right environment for your use case:| Environment | Use Case | Blockchain | Payments |
|---|---|---|---|
staging_sandbox | Development, learning, testing | Test network | Test credits |
sandbox | Integration testing | Test network | Test tokens |
staging_live | Pre-production validation | Mainnet | Test credits |
live | Production | Mainnet | Real payments |
staging_sandbox for development and testing.
Common Issues
”Command not found: nvm”
After global installation, ifnvm command is not found:
- Verify installation:
npm list -g @nevermined-io/cli - Check your PATH includes npm global bin directory
- Restart your terminal
- Try using the full path:
npx @nevermined-io/cli
”API Key not found”
If you get an API key error:Permission Errors
If you get permission errors during global installation:Next Steps
Now that you’ve installed and configured the CLI, explore:- Plans - Create and manage payment plans
- Agents - Register AI agents
- Purchases - Order plans and make payments
- Querying - Query agents with access tokens
Getting Help
Get help for any command:- Documentation: https://nevermined.ai/docs
- Issues: https://github.com/nevermined-io/payments/issues
- Discord: https://discord.gg/nevermined