np command-line interface lets you manage compute nodes, SSH public keys, and authentication directly from your terminal.
Installation
You can install thenp CLI using uv (recommended) or pip.
uv installs np into an isolated environment without modifying system Python packages.Global Options
Thenp CLI supports global options that apply to all subcommands.
Debug Logging
To output detailed diagnostic logs during command execution, pass the--debug flag before the subcommand:
Output Formatting
Commands that list or display resources support output formatting via the--format (-f) option:
table: Render formatted interactive tables (default).json: Return raw structured JSON output for scripting and pipe processing.
Environment Variables
You can configure CLI behavior using the following environment variables:Configuration File
The CLI stores non-sensitive configuration settings (such asbase_url) in:
nodepick-cli).
Authentication (np auth)
Use np auth commands to store, test, and remove API authentication credentials.
Save Credentials (np auth save)
Save your API key securely in the OS keyring and set an optional base URL.
Options
Examples
Test Access (np auth test)
Verify your stored API key against the nodepick.ai API and display your account details.
Output Information
- Authentication status: Confirms valid API access.
- User email: Account email associated with the key.
- Organization: Associated organization name.
- Base URL: Target API base URL.
- Key source: Indicates whether credentials came from
OS keyringorenv var NODEPICK_API_KEY.
Example Output
Clear Credentials (np auth clear)
Remove the stored API key from your OS keyring.
Next Steps
Manage Nodes
Learn how to list, create, boot, shutdown, reboot, inspect, and delete compute nodes.
SSH Keys
Register public SSH keys for automatic injection into new compute nodes.