Home / Docs / Command-Line Interface
Feature docs

Command-Line Interface

A single static binary: schedule, publish, and analyze from the terminal.

What it does

The spa CLI brings the platform to the terminal as one static binary plus npx support: auth:login through an OAuth device flow, posts:create with channels, text, media, and schedule time, posts:list with filters, upload with progress, analytics:platform and analytics:post rollups, and integrations:list. Every command emits JSON for scripting, pipes compose with jq and xargs, and SPA_API_URL plus SPA_API_KEY point the CLI at a self-hosted instance. Cron plus the CLI is a complete headless publishing pipeline.

Configuration

  • {'label': 'Output format', 'kind': 'select', 'options': ['JSON', 'Table', 'Quiet']}
  • {'label': 'Target instance', 'kind': 'select', 'options': ['Cloud', 'Self-hosted']}
  • {'label': 'Default channel set', 'kind': 'text'}

Why it's better

Terminal-first teams get a real CLI, not a curl cookbook: device-flow login, JSON on every command, self-hosted targeting via environment variables, and pipe-friendly output for automation.

Telemetry

  • CLI installs
  • Commands run
  • Scripted publishes

Try it live

Open Command-Line Interface in the workspace →