Skip to main content
The OrbitFlare CLI is the single entry point for everything a developer needs: streaming on-chain data via gRPC, querying the blockchain, scaffolding projects from templates, and managing your account through an interactive dashboard.
The CLI stores credentials in your OS keychain and supports multiple auth profiles, so you can switch between accounts or networks instantly.

Installation

Requires Rust 1.85+. Verify the installation:

Quick Start: Existing Users

If you already have an OrbitFlare account and API key from the dashboard:
A fresh install starts with an empty config. After login, set at least rpc.url so commands like ping and rpc know where to connect. Your endpoint URLs are available in the Services section of your dashboard.
Endpoint URLs follow this format:

Quick Start: New Users

1

Create an Account

Sign up at orbitflare.com and choose a plan.
2

Authenticate

The CLI supports three login methods. Pick the one that suits your workflow:
The CLI fetches and stores your RPC license key automatically during login. To set it manually:
Keep your API key and license key secret. Do not commit them to version control or expose them in client-side code.
3

Configure Your Endpoints

A fresh install starts with an empty config. Point the CLI to your OrbitFlare endpoints:Your endpoint URLs are in the Services section of your dashboard. They follow the format http://{region}.rpc.orbitflare.com.
See Authentication & Limits for all available region endpoints.
4

Start Building

Authentication

Credentials are stored securely in your OS keychain. The CLI supports multiple named profiles so you can manage separate accounts or environments.

Auth Methods

Authenticate with your API key from the dashboard. The key is passed via the X-ORBIT-KEY header to the Customer API.

Key Resolution Order

  1. --x-orbit-key flag on the command (highest priority)
  2. --profile flag to select a stored profile
  3. Default profile in ~/.orbitflare/config.yml

Command Reference

The CLI has top-level commands spanning authentication, configuration, blockchain queries, real-time streaming, project scaffolding, and account management.

Core Commands

RPC Commands

Query the Solana blockchain directly from your terminal.

WebSocket Commands

Subscribe to live Solana pubsub events over WebSocket. Each subscription runs until you press Ctrl+C and prints events as they arrive (use --json for machine-readable output).
The endpoint is derived from your configured rpc.url: http:// becomes ws:// and https:// becomes wss://. To target a different host for a single command, pass --ws-url:

Streaming Commands

Stream real-time Solana data over gRPC. Both commands take a YAML config file that defines your filters and reconnection strategy.
Jetstream provides ultra-low-latency transaction and account streaming.
stream.yml
Both streaming commands support automatic endpoint failover and exponential backoff reconnection. Environment variables can be used in config files with ${VAR} syntax.

Template Commands

Scaffold projects from production-ready starter templates.
Templates are fetched from the orbitflare/templates repository and cached locally for offline use.

Plan Commands

Browse and compare available RPC plans. Plan data is cached locally for 6 hours.

Payment Commands

Manage your account balance, purchase plans, and handle invoices. Only topup requires a Solana wallet — everything else uses your account balance.
The topup command defaults to ~/.config/solana/id.json for the wallet keypair. Use --wallet to specify a different path. Billing periods: monthly, quarterly, semi-annual, annual.
The purchase command runs a dry-run validation first, showing you the pricing breakdown and whether your balance is sufficient before confirming.

Dashboard

Launch an interactive TUI for managing your OrbitFlare account without leaving the terminal.
The dashboard provides full keyboard-driven access to your profile, services, API keys, and invoices.

JSON Output

All commands support --json for machine-readable output, making the CLI easy to integrate into scripts and automation pipelines.
Example output:

Configuration

Configuration is stored in ~/.orbitflare/config.yml. Manage it with the config command:
Devnet endpoints are preconfigured by default:
  • RPC: http://devnet.rpc.orbitflare.com (fallback: https://api.devnet.solana.com)
  • gRPC: http://devnet.rpc.orbitflare.com:10000
Use --network devnet to switch at runtime.

File Locations

API keys, tokens, and license keys are stored in your OS Keychain, not on disk.

Global Flags

These flags work with every command and override the corresponding config value for that invocation.

Full Workflow Example

A complete walkthrough from installation to querying:

What’s Next?

RPC Methods

Explore the full Solana RPC method reference.

Jetstream Streaming

Learn about real-time gRPC data streaming.

Yellowstone gRPC

Complete Geyser plugin data via Yellowstone.

Starter Templates

Browse production-ready project templates.

Support

Discord

Join the community for help and discussions.

GitHub

Report issues or contribute to the CLI.