SQLStreams

the messaging platform that is just Postgres

You last visited on 9999-99-99 Show what's new since then

SQLStreams CLI

Edit this page
Client · Related pages
Posted: 2026-09-16 · Report this thread
brandon Site Admin brandon profile Posts: 96
sqlstreams --help
sqlstreams stream list --output json

The CLI administers a SQLStreams installation, including registrations, migrations, maintenance, metrics, and alerts. It does not run application consumer handlers or declare application streams and consumer groups.

Installation

Homebrew (macOS)

brew install --cask allegedlyreliable/tap/sqlstreams

Chocolatey (Windows)

choco install sqlstreams

Go

go install github.com/allegedlyreliable/sqlstreams/cmd/sqlstreams@latest

Use the CLI version matching the library version you deploy. To pin a release, replace latest with that release tag.

Connection and global flags

Flag Default Description
--database-url SQLSTREAMS_DATABASE_URL PostgreSQL URL or keyword/value connection string. Required for database commands. An explicit flag takes precedence over the environment.
--schema SQLSTREAMS_SCHEMA, then sqlstreams Installation schema. Must match ^[a-z_][a-z0-9_]*$.
--output text text or json.
--help Off Show command usage and flags.
--version Off Show CLI version.
export SQLSTREAMS_DATABASE_URL='postgres://username:password@localhost:5432/quickstart?sslmode=disable'
sqlstreams system get --schema sqlstreams

This connection example uses the local Quickstart database. Connection-string options such as sslmode, connect_timeout, and pool_max_conns are parsed by pgx. A connection string containing search_path is rejected. Select the installation with --schema instead.

Output and exit status

Status Meaning
0 The command succeeded. Empty list commands also succeed.
1 An operation failed, a requested object/report was absent, or interactive confirmation was declined. Individual commands document absence behavior.
2 Usage or validation error, such as an invalid flag or missing argument.

Structured error fields

Field Meaning
code SQL diagnostic code, when available.
problem Failure description.
recovery Transient or permanent classification, when available.
values Attached diagnostic attributes.
cause Underlying error text.
fix Suggested action.
docs Code documentation URL.

Optional fields are omitted when absent. Plain failures may contain only problem. Use Explain to inspect declared codes and diagnostic queries offline.

Destructive commands

The CLI enables the library’s AllowDestroy capability. Commands that require confirmation prompt on an interactive terminal. Use --yes for non-interactive or JSON destruction. A command’s --force bypasses only the documented resource guard, not confirmation or database failures.

Command references