Skip to main content
The np command-line interface lets you manage compute nodes, SSH public keys, and authentication directly from your terminal.

Installation

You can install the np CLI using uv (recommended) or pip.
uv installs np into an isolated environment without modifying system Python packages.

Global Options

The np 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:
Set NODEPICK_API_KEY in non-interactive CI/CD pipelines to authenticate without interactive logins.

Configuration File

The CLI stores non-sensitive configuration settings (such as base_url) in:
API keys are stored separately in your operating system’s secure keyring service (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 keyring or env var NODEPICK_API_KEY.

Example Output


Clear Credentials (np auth clear)

Remove the stored API key from your OS keyring.
Clearing credentials removes the stored key from your local OS keyring. You will need to run np auth save or set NODEPICK_API_KEY before running subsequent CLI commands.

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.