Skip to Content
CLIInstallation

Installation

Install the CLI globally so the spectrum binary is on your PATH.

npm

npm install -g @spectrumnodes/cli

yarn

yarn global add @spectrumnodes/cli

pnpm

pnpm add -g @spectrumnodes/cli

Verify

spectrum --version spectrum --help

One-off runs

To try the CLI without a global install, run it with npx:

npx @spectrumnodes/cli prices price ETH

Requirements

  • Node.js 20 or later. The CLI uses native fetch, so no polyfill is needed.

Next steps

Configure your API URL and default chain once, then start querying:

spectrum config set api https://your-endpoint.simplystaking.xyz/YOUR_API_KEY/spectrumapi/v1/ spectrum config set default-chain ethereum

See Configuration for the full precedence rules and config file details.