Installation
Install the CLI globally so the spectrum binary is on your PATH.
npm
npm install -g @spectrumnodes/cliyarn
yarn global add @spectrumnodes/clipnpm
pnpm add -g @spectrumnodes/cliVerify
spectrum --version
spectrum --helpOne-off runs
To try the CLI without a global install, run it with npx:
npx @spectrumnodes/cli prices price ETHRequirements
- 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 ethereumSee Configuration for the full precedence rules and config file details.