Requirements
Before installing Nelson CLI, make sure you have:Node.js 18+
Nelson requires Node.js version 18 or higher
Anthropic API Key
You’ll need an API key from Anthropic
Install via npm
The recommended way to install Nelson CLI:Install via yarn
Install via pnpm
API Key Setup
Get Your API Key
1
Create an Anthropic account
Go to console.anthropic.com and sign up or log in.
2
Navigate to API Keys
Click on API Keys in the sidebar.
3
Create a new key
Click Create Key and copy the generated key.
Configure the API Key
Set theANTHROPIC_API_KEY environment variable:
- macOS/Linux
- Windows
Verify Installation
Run Nelson to verify everything is working:Updating Nelson
To update to the latest version:Uninstalling
To remove Nelson CLI:Troubleshooting
Command not found: nelson
Command not found: nelson
Make sure npm’s global bin directory is in your PATH. Run
npm bin -g to find the directory and add it to your PATH.No API key found
No API key found
Ensure you’ve set the
ANTHROPIC_API_KEY environment variable. Try running echo $ANTHROPIC_API_KEY to verify it’s set.Permission denied
Permission denied
On Unix systems, you may need to run with sudo:
sudo npm install -g nelson-muntz-cli