📄️ arcctl
arcctl is the operator-facing CLI for Arc. It replaces hand-crafted curl calls with a familiar workflow modeled on influx, kubectl, and clickhouse-client.
📄️ Connection Management
arcctl stores connection profiles in ~/.arcctl/config.toml (mode 0600 — plaintext tokens, same posture as ~/.aws/credentials). One profile is marked active and used by default; you can override per-command via flags or env vars.
📄️ Querying
arcctl query runs SQL against an Arc cluster and renders the result in your chosen format. Defaults are operator-friendly: pretty table on stdout, errors on stderr, exit 0 on success, exit 1 on any failure.
📄️ Writing Line Protocol
arcctl write POSTs line-protocol records to Arc's /api/v1/write/line-protocol endpoint. Body is streamed — large files / pipes never buffer in memory — so cat huge.lp | arcctl write works at line-rate.
📄️ Database Administration
arcctl db manages databases on an Arc cluster. The subcommands map directly onto Arc's /api/v1/databases endpoints.
📄️ Measurement Listing
arcctl measurement list shows the measurements inside one database. It's a thin wrapper over GET /api/v1/databases/:name/measurements — the same data as arcctl db show , but presented measurement-first.