flowctlv0.0.12 GitHub ↗
Stellar pipeline operations

Run your pipeline. Know how it’s doing.

flowctl supervises Stellar data pipelines, connects their components, and gives you a repeatable way to inspect runs and health. Start locally with a single command, then use the same operator workflow as your pipeline grows.

Prototype with nebu. Supervise the pipeline with flowctl.

First success
go install github.com/withobsrvr/flowctl@latest
export PATH="$HOME/go/bin:$PATH"
flowctl init --preset testnet-duckdb
flowctl run stellar-pipeline.yaml

The DuckDB starter downloads components automatically and does not need a local Docker daemon. On NixOS, enable nix-ld so the downloaded DuckDB binary can start.

Get flowctl

Install

Go install

go install github.com/withobsrvr/flowctl@latest
export PATH="$HOME/go/bin:$PATH"
flowctl version

Requires Go 1.26.10 or newer.

Install script

curl -sSL https://flowctl.withobsrvr.com/install.sh | sh
flowctl version

Downloads a release binary. No Go toolchain required.

Build from source

git clone https://github.com/withobsrvr/flowctl.git
cd flowctl
make build
./bin/flowctl version

For contributors working in this repository.

Your first pipeline

Start with DuckDB

Generate a starter configuration, validate it, then run the pipeline. flowctl uses process orchestration by default and keeps the control plane embedded.

  1. Generate and validate
    flowctl init --preset testnet-duckdb
    flowctl validate stellar-pipeline.yaml
  2. Run and inspect
    flowctl run stellar-pipeline.yaml
    
    # in another terminal
    flowctl status
    flowctl pipelines active
  3. Query the local DuckDB file
    duckdb stellar-pipeline.duckdb "SELECT event_type, COUNT(*) FROM contract_events GROUP BY event_type"

    Stop the pipeline first if you need exclusive access from the DuckDB CLI.

Operate

A repeatable operator workflow

Validate before you run. Check health while it is active, then use the run ID to inspect or stop a specific run.

flowctl init
flowctl validate stellar-pipeline.yaml
flowctl run stellar-pipeline.yaml
flowctl status
flowctl pipelines active
flowctl pipelines run-info <run-id>
flowctl pipelines stop <run-id>
Choose the right tool

nebu and flowctl

flowctl

Supervised pipelines, run tracking, health visibility, and operational workflows. Use it when a pipeline needs to keep running reliably.

nebu

Rapid extraction, Unix pipes, local experimentation, and processor prototyping. Use it to explore and compose Stellar data streams.

Build and test a processor with nebu, then connect it to a supervised pipeline with flowctl.

Troubleshooting

Common first-run issues

Port already in use

flowctl run --control-plane-port 0 stellar-pipeline.yaml

Or choose a fixed port and use that address and port for status commands.

Component download failed

flowctl run stellar-pipeline.yaml --log-level=debug

The first run needs internet access to pull component images from Docker Hub. flowctl extracts and caches their binaries under ~/.flowctl/; a local Docker daemon is not required.

DuckDB CLI missing

The pipeline still works without the DuckDB CLI. Install duckdb separately to query its output from your shell.

NixOS: DuckDB sink exits 127

The published DuckDB component is dynamically linked against glibc. NixOS needs nix-ld enabled to run generic Linux binaries. Add this to your NixOS configuration, rebuild, then log out and back in:

programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
  stdenv.cc.cc.lib
];

Status cannot connect

flowctl status --control-plane-address 127.0.0.1 --control-plane-port 9090

Use the address and port where the pipeline’s control plane is listening.