flare CLI reference
Exact command, layout, and configuration reference for Flare.Cli (the
flare command). For installing and using it, see
../how-to/deploy/run-with-cli.md; for why this
install path exists alongside Aspire/standalone, see
../explanation/architecture.md.
Status: new, unreleased. Published to nuget.org as
Flare.Cliunder tagflare-cli-v*.*.*. Package ID isFlare.Cli, notflare(that id is already taken on nuget.org, an old unrelated unlisted package) — the installed command is stillflare;ToolCommandNameandPackageIdare independent, the same trick this repo used for the deprecatedFlare.Hosting.Aspire/Aspire.Hosting.Flare.
Command reference
Every command accepts -n/--name <NAME> to target a named instance
instead of the default one at ~/.flare/ — see
Instance naming below. FLARE_INSTANCE
is an opt-in env var shorthand for the same thing.
| Command | What it does |
|---|---|
flare start [--cluster] |
First run initializes ~/.flare/; every run brings the stack up and waits for it to become healthy. --cluster (first-init only) stands the instance up as a multi-node ClickHouse cluster instead of the single-node default — see Cluster mode. |
flare stop |
Stops containers, keeps data volumes — a pause, not a teardown. |
flare status |
Table of each service's state/health/port. |
flare ingestion [--since range] |
OTLP ingestion health via Flare.Api's GET /api/ingestion/stats + GET /api/ingestion/pipeline — the CLI-native equivalent of the dashboard's Ingestion page. A colored Healthy/Degraded/Down verdict with reasons, ingress/event/data rates, a Receivers table (gRPC/HTTP, Healthy/Idle/Degraded/Down), and a per-signal Pipeline table (buffer %, pending, last flush, status, last error). Same thresholds as the dashboard's own verdict, so the two never disagree. --since defaults to 1h (e.g. 15m, 6h, 24h). |
flare open |
Opens the dashboard in your default browser. |
flare update [--tag TAG] |
Pulls the latest images for the currently pinned tag, recreates containers, prints a per-service digest diff. Never touches data. --tag rewrites ~/.flare/.env's FLARE_IMAGE_TAG to TAG first — the CLI-native way to move an existing install onto a newer pin instead of hand-editing .env. |
flare logs [service] [-f] |
Shows or follows container logs (raw Docker stdout). Omit the service for all of them. |
flare tail [-s service]... [-l level]... [--trace-id id] [--search text [--search-all-fields]] |
Live-tails app-level structured log events via Flare.Api's live-tail WebSocket — the CLI-native equivalent of the dashboard's Logs Explorer live-tail, not the same thing as flare logs. -l/--level accepts trace/debug/info/warn/error/fatal, repeatable. |
flare search [-s service]... [-l level]... [--trace-id id] [--span-id id] [--pattern-id id] [--search text [--search-all-fields]] [--attr key=value]... [--attr-not key=value]... [--attr-exists key]... [--attr-absent key]... [--trace-span-service name]... [--trace-span-error] [--trace-span-name name]... [--trace-span-min-duration d] [--since range] [--limit count] |
One-shot log search via Flare.Api's POST /api/logs/search — the CLI-native equivalent of the dashboard's Logs Explorer, without live-tail (that's flare tail). --since defaults to 1h (e.g. 15m, 6h, 24h, 7d). --limit defaults to 20. --attr/--attr-not/--attr-exists/--attr-absent filter the log attribute bag (Equals/NotEquals/Exists/Absent); repeatable and ANDed together — always against the default Log bag, no way to target Resource/Scope from the CLI yet. --trace-span-service/--trace-span-error/--trace-span-name/--trace-span-min-duration keep only logs of traces that contain a span matching all the given conditions (e.g. --trace-span-service payments --trace-span-error); --trace-span-min-duration takes 500ms/2s/1.5m. |
flare export [-s service]... [-l level]... [--trace-id id] [--span-id id] [--pattern-id id] [--search text] [--since range] [--format ndjson\|csv] [-o path] [--limit count] |
Streams a time range of log events to NDJSON (default) or CSV via Flare.Api's POST /api/logs/search, paginating in the background — a support-bundle-for-a-bug-report command. Omit -o/--output to stream to stdout (composes with \| jq, > file, etc). --limit defaults to 100000 as a safety cap, not a hard ceiling like the dashboard's own CSV/XLSX export dialog. Field set matches that dialog's for parity: EventId, Timestamp, Severity, SeverityNumber, Service, EventName, Message, TraceId, SpanId, LogAttributes(Json). Attribute filters aren't exposed here yet (unlike flare search/flare traces) — its own Settings still duplicates the pre-attribute-filter flag set rather than reusing SearchCommand's. |
flare export --trace-id id [--include-trace] [--include-logs] [--include-metrics] [--margin range] -o path.zip |
Incident bundle mode — any --include-* flag switches export from the logs-only stream above into a zip archive scoped to one trace: fetches the trace via GET /api/traces/{traceId}, derives a time window (the trace's own span min/max, padded by --margin, default 5m) and its distinct service list, then writes manifest.json (always: trace id, window, services, which sections were included) plus whichever of trace.json, logs.ndjson (always NDJSON here, regardless of --format; still honors -s/-l/--search/etc as extra log filters), and metrics.json (every metric for the trace's services over that window, capped at 100) were requested. Requires both --trace-id and -o — a zip isn't streamed to stdout. Falls back to --since (and an empty service list) if the trace has already aged out of retention. |
flare alerts list / flare alerts test <ID> / flare alerts send-test <ID> / flare alerts history <ID> |
list tables saved alert rules (name, enabled, threshold, window, notification channel — webhook/Slack, Telegram, Email, or PagerDuty) via Flare.Api's GET /api/alerts. test <ID> dry-runs a saved rule's condition/threshold against current data via POST /api/alerts/{id}/test — ignores cooldown, sends no notification — safe to run repeatedly without triggering anything real. If the rule has absent-data alerting enabled and its condition matched nothing over that window, it prints No data (and the no-data window) instead of an observed count. If a metric rule's window has fewer data points than its minimum, it prints Insufficient data and the point count. For an anomaly rule it prints the observed value, the baseline mean and the z-score, or Not enough history when fewer than 3 baseline windows had data. list shows an anomaly rule's threshold as its z-score and baseline (e.g. |z| >= 3 vs 7 days). history <ID> [--limit N] shows a rule's recent fired and resolved events via GET /api/alerts/{id}/history, followed by the AI incident summary for any fire that has one. send-test <ID> actually sends a test notification through the rule's configured channel via POST /api/alerts/{id}/send-test, to verify a Slack/webhook/email/Telegram/PagerDuty/Teams/Discord channel is wired correctly before relying on it for a real breach. For an SLO burn-rate rule it prints the long-window burn rate, and list shows its threshold as burn >= 14.4x over 1h and 5m; see Define SLOs. |
flare alerts export [--output FILE] / flare alerts import <FILE> [--dry-run] |
Move alert rules between instances or keep them in git. export writes every rule as portable JSON via GET /api/alerts/export — notification channels and SLOs are referenced by name, ids are dropped, and credentials are never included (a rule that uses a legacy inline channel is flagged and can't be imported). import posts that file to POST /api/alerts/import and prints a per-rule create/skip/error table; a rule whose name already exists is skipped, never overwritten, and a rule naming a channel or SLO the target doesn't have is reported as an error. --dry-run previews without creating anything; the exit code is 1 if any rule errored. The dashboard's Alerts page has matching Import/Export buttons (export honours the active filter). Maintenance windows aren't part of this export; to move everything at once, use flare config export/apply. |
flare config export [--output FILE] / flare config apply -f FILE [--dry-run] |
Keep the whole configuration in git or move it between instances. export writes alert rules, notification channels, SLOs, pipeline rules, metric attribute rules, maintenance windows and ingest-key rate limits as one JSON file (sections notificationChannels, slos, pipelineRules, metricAttributeRules, forwardingTargets, archive, alerts, maintenanceWindows, ingestKeys). References are by name, ids and timestamps are dropped, and credentials (webhook URLs, bot tokens, routing/API keys) become ${ENV_VAR} placeholders such as ${FLARE_NOTIFICATIONCHANNELS_SLACK_OPS_WEBHOOKURL} — never values; ingest keys export only their name and limits. apply makes an instance match the file in dependency order (channels, SLOs, pipeline rules and metric attribute rules, then alert rules, then maintenance windows, then ingest-key limits): entries are matched by name, missing ones are created, changed ones updated, identical ones reported Unchanged. ${VAR} in any string is read from the environment; an unset credential variable keeps the stored secret on an existing channel and is an error for a new one. A stored credential only comes back masked, so a channel whose credentials are supplied from the environment is updated on every run. Nothing is deleted — resources absent from the file are left alone — and ingest keys are never created from a file (an unmatched key is skipped; use flare apikey create). --dry-run previews without changing anything; the exit code is 1 if any entry errored. Forwarding targets (forwardingTargets) and the S3 archive (archive, a single object) are included: every header value, the archive access key and the secret key become placeholders such as ${FLARE_FORWARDINGTARGETS_GRAFANA_HEADERS_AUTHORIZATION} and ${FLARE_ARCHIVE_ACCESSKEY}, a target's ingest keys are listed by name as ingestKeyNames, and an unset placeholder keeps the stored value on an update. Ingest keys also export expiresAt; apply sets it when the file names one, and a file without expiresAt leaves the key's expiry alone. |
flare alerts ack <ID> [--note TEXT] / flare alerts snooze <ID> --minutes N [--note TEXT] / flare alerts unack <ID> |
Acknowledge, snooze or clear a firing rule's current incident from the terminal, via POST /api/alerts/{id}/ack, POST /api/alerts/{id}/snooze and DELETE /api/alerts/{id}/ack. An ack silences re-notifications and stops escalation until the rule resolves; a snooze (1 to 10080 minutes) only mutes re-notifications. Exit code 1 if the rule doesn't exist or isn't firing. See Acknowledge and snooze alerts. |
flare apikey create <NAME> [--origin URL]... [--service NAME]... [--expires-in-days N] / flare apikey scope <NAME> [--origin URL]... [--service NAME]... [--clear-origins] [--clear-services] |
Mints a new ingest API key via Flare.Api's POST /api/ingest-keys — scripted/CI OTLP setup without clicking through the dashboard's Settings page. The raw key is printed once; Flare never stores or shows it again. --origin and --service restrict a key meant for browser code to the sites it may be used from (ADR-0149) and the service.name values it may write for (ADR-0150); both are repeatable. scope changes them on an existing key: a list you give replaces the current one, a list you leave out is untouched, and --clear-origins/--clear-services lift a restriction. Changes reach Flare.Ingest within 30 seconds. --expires-in-days N makes the key stop working after N days (ADR-0207). apikey list/apikey revoke aren't implemented yet even though the underlying endpoints exist. |
flare sourcemaps upload <PATH>... --service S --release V [--url URL] [--token PAT] / list / delete --service S --release V [--bundle B] |
Manage JavaScript source maps for browser stack traces on /errors via Flare.Api's /api/source-maps (ADR-0152; Admin). upload takes .map files or directories (searched recursively) and stores each under its path with .map removed. It targets the local instance unless --url points at another Flare.Api, in which case --token (or FLARE_API_TOKEN) supplies a personal access token, which is the usual CI setup. delete removes one release's maps, or one bundle's with --bundle. upload-dotnet <DLL|DIR>... --service S --release V does the same for .NET: it builds a symbols file from each assembly and its portable PDB and uploads it as {mvid}.dotnet.json, so Mono-style frames of trimmed/AOT MAUI builds ([0x0001a] in <mvid>:0) show file and line (ADR-0168). upload-native <DSYM>... --service S --release V does the same for Native AOT builds (iOS/macOS PublishAot): it reads the .dSYM and uploads a function-to-line table as {uuid}.native.json, so frames like at Cart.Add(String) + 0x48 show file and line. With --managed <DLL|DIR> (repeatable) it also reads the dll and PDB the app was compiled from, so overloaded methods resolve by the parameter types in the frame (ADR-0171). |
flare notification-channels list / create <NAME> --type T ... / update <ID> [...] / delete <ID> [--yes] / send-test <ID> |
CRUD for saved NotificationChannels via Flare.Api's /api/notification-channels — the CLI-native equivalent of the dashboard's Alerts → Channels tab, for wiring channels without clicking through the UI. create/update take --type webhook\|telegram\|email\|pagerduty\|teams\|discord\|jira\|incidentio\|jsmops (teams and discord take --webhook-url) plus the matching destination flag(s) (--webhook-url, --telegram-bot-token+--telegram-chat-id, --email-to, --pagerduty-routing-key, or --jira-base-url+--jira-email+--jira-api-token+--jira-project-key with optional --jira-issue-type, --webhook-url+--incidentio-token, or --jsmops-api-key) and --description, plus --send-resolved true|false (whether a recovering rule sends a "Resolved" notification through the channel; defaults to true, and update leaves it unchanged unless passed); update <ID> fetches the existing channel first and only overrides flags you actually pass, so e.g. update <ID> --rename new-name alone doesn't require re-entering the destination (--rename, not --name — that's already the instance-targeting flag every command shares). delete prompts for confirmation unless --yes. send-test fires a synthetic (non-breaching) test notification through that one channel, independent of any alert rule. list and every API read show credentials (bot tokens, routing/API keys, webhook URLs) masked as •••••••• plus the last 4 characters (a URL keeps its scheme and host), for every role; sending a masked value back unchanged on update keeps the stored secret, so only pass a credential flag to replace it. flare alerts list's own rule summary still shows only a referenced channel count, not names — resolving ChannelIds to names there remains a follow-up. |
flare alert-templates list / create <NAME> --title T --body B ... / update <ID> [...] / delete <ID> [--yes] |
CRUD for shared notification templates via /api/alert-templates. create and update take --description, --title, --body, --resolved-body, --channel-body TYPE=TEXT (repeatable; replaces all existing per-channel bodies on update) and --default true\|false; update <ID> fetches the existing template and overrides only the flags you pass. delete prompts unless --yes, and the API refuses it while rules use the template. |
flare synthetic-monitors list / create <NAME> --target T [--kind http\|tcp\|tls\|dns\|udp\|icmp] / update <ID> [...] / delete <ID> [--yes] |
CRUD for synthetic monitors via /api/synthetic-monitors. list shows each monitor's latest result (up or down, and the probe time in ms). create also takes --description, --method, --expected-status, --interval <SECONDS>, --timeout <SECONDS> and --enabled true\|false; update <ID> fetches the existing monitor and overrides only the flags you pass, so update <ID> --enabled false pauses a probe. delete prompts unless --yes. create and update also take --header 'Name: value' (repeatable), --body (POST), --body-contains and --body-not-contains. --location <NAME> (repeatable) restricts a monitor to the workers with that Synthetic__Location; omit it to run from every location, and on update it replaces the existing list. |
flare checkin-monitors list / create <NAME> (--cron EXPR \| --interval SECONDS) / update <ID> [...] / delete <ID> [--yes] |
CRUD for check-in monitors (cron and job heartbeats) via /api/checkin-monitors. list shows each monitor's schedule, state (ok, running, late, failed, overran, pending, disabled), last ping and next expected ping. create takes exactly one of --cron (a five-field expression or macro such as @daily, read in --timezone, UTC by default) and --interval <SECONDS>, plus --slug (the name in the ping URL, derived from NAME when omitted and fixed afterwards), --grace <SECONDS>, --max-runtime <SECONDS>, --description and --enabled true\|false. update <ID> fetches the existing monitor and overrides only the flags you pass; --cron replaces an interval schedule and --interval replaces a cron one; --rename changes the label, not the slug. delete prompts unless --yes. |
flare status-pages list / create <SLUG> --title T / update <ID> [...] / delete <ID> [--yes] |
CRUD for status pages via /api/status-pages. create takes --description, --enabled true\|false (a page stays unpublished until enabled) and --component 'Display name=monitor:<id>' or ...=slo:<id> (repeatable); --subscriber <channel-id> (repeatable) tells that notification channel about every incident, and on update replaces the existing subscribers. update <ID> fetches the existing page and overrides only the flags you pass, so update <ID> --enabled true publishes it; --component replaces all existing components, and --slug changes the URL. delete prompts unless --yes. Incidents: flare status-pages incidents list <PAGE_ID> / open <PAGE_ID> --title T --message M [--status S] [--component <id>] / update <PAGE_ID> <INCIDENT_ID> --status S --message M [--component <id> | --clear-components] / delete <PAGE_ID> <INCIDENT_ID> [--yes]; --component takes a monitor or SLO id and is repeatable. Subscribers (visitor emails): flare status-pages subscribers list <PAGE_ID> / remove <PAGE_ID> <SUBSCRIBER_ID> [--yes]. |
flare retention show / set <SIGNAL> [--days N] [--cold-after N] [--rule ATTR=VALUE:DAYS]... [--clear-rules] [--no-wait] |
Data retention via Flare.Api's /api/retention, the CLI equivalent of Settings > Retention. show prints each signal's live TTL, cold-after, per-resource rules and the status of the last change. set changes one signal (logs, traces, metrics or profiles; Admin) and waits until ClickHouse has applied it, or returns at once with --no-wait. --days 0 keeps the signal forever, --cold-after N moves data to cold storage after N days (0 turns tiering off), and --rule is repeatable and replaces the existing per-resource rules. Options you leave out keep their current value. See Set data retention. |
flare erasure preview / run / status [ID] / export --id KEY=VALUE... [--confirm VALUE] [--no-wait] [--output FILE] |
Data-subject erasure and export via Flare.Api's /api/erasure (Admin). --id is repeatable (user.id=42, user.email=a@b.c, client.address=10.0.0.1); a row matches if any identifier does. preview counts matching rows per table, export streams them as NDJSON to stdout or --output, and run permanently deletes them and waits for ClickHouse to finish (or returns at once with --no-wait). run requires --confirm equal to the first --id value. status lists recent requests, or shows one with per-table progress. See Erase or export one person's telemetry. |
flare forwarding list / create <NAME> --endpoint URL [--header NAME=VALUE]... [--signal S]... [--service S]... [--ingest-key-id ID]... [--no-gzip] [--disabled] / update <ID> [...] / delete <ID> [--yes] / status |
Managed OTLP forwarding targets via Flare.Api's /api/forwarding/* (Admin), the CLI equivalent of Settings > Telemetry export. update fetches the target and changes only what you pass: --header sets one header and keeps the rest (--clear-headers empties them), and --signal, --service and --ingest-key-id replace their filter (--all-signals, --all-services, --any-ingest-key clear it). Header values are masked. status shows each target's queue depth, sent and failed counts and last error, including targets defined in configuration. See Forward telemetry to another OTLP endpoint. |
flare archive show / set [--endpoint URL] [--access-key K] [--secret-key K] [--prefix P] [--format parquet\|ndjson] [--signal S]... [--enabled true\|false] / reset [--yes] / status |
The S3 archive settings via /api/archive/*. set needs --endpoint and both keys the first time (Admin); afterwards options you leave out keep their value. reset deletes the saved settings so the archive follows the worker's Archive configuration again. status shows the last exported hour and any error per table. See Archive telemetry to S3. |
flare traces [-s service]... [--status s]... [--kind k]... [--trace-id id] [--attr key=value]... [--attr-not key=value]... [--attr-exists key]... [--attr-absent key]... [--min-duration d] [--max-duration d] [--entry] [--span spec]... [--where expr] [--since range] [--limit count] [--sort time\|duration\|spans] [--asc] |
Searches recent traces (root spans) via Flare.Api's Query API — the CLI-native equivalent of the dashboard's Trace List. --status accepts ok/error/unset, repeatable. --kind accepts internal/server/client/producer/consumer, repeatable. --attr/--attr-not/--attr-exists/--attr-absent filter the span attribute bag (Equals/NotEquals/Exists/Absent); repeatable and ANDed together — always against the default Span bag, no way to target Resource/Scope from the CLI yet. --min-duration/--max-duration take e.g. 500ms/2s/1.5m. --entry lists each service's entry spans (no parent, or a parent in a different service) instead of one root span per trace — the requests every service in a call chain handled, not just the first. --span/--where keep only traces whose spans relate as described: --span "B:service=payment,status=error" defines a lettered span condition (keys service, name, status, min-duration; repeatable), and --where combines the letters with -> (direct child), => (any descendant), AND, OR, NOT — see Find traces by how their spans relate. --since defaults to 1h (e.g. 15m, 6h, 24h, 7d). --sort orders by time (default, newest first), duration (slowest first) or spans (most spans first); --asc reverses it. One-shot only, no live-tail equivalent. |
flare trace <TRACE_ID> |
Renders one trace as a text waterfall (indented span tree, colored duration bar, tick axis) via Flare.Api's GET /api/traces/{traceId} — the CLI-native equivalent of the dashboard's trace-detail page. No critical-path highlighting or service-map yet (planned as a follow-up). |
flare metrics [-s service]... [--since range] [--limit count] |
Lists discoverable metrics via Flare.Api's POST /api/metrics/names — the CLI-native equivalent of the dashboard's Metric Picker sidebar. Table of name/service/type (Gauge/Sum/Histogram/ExponentialHistogram)/unit/series count. |
flare metric <NAME> [-s service] [--group-by key] [--mode mode] [--since range] |
Charts one metric as ASCII sparklines via Flare.Api's POST /api/metrics/query — the CLI-native equivalent of the dashboard's Metrics chart. -s/--service disambiguates when more than one service emits the name. --mode mirrors the chart's aggregation picker: sum/rate(default)/count for Sum, percentiles(default)/mean/p75/p95/max for Histogram, not valid for Gauge. Values print in the metric's own declared unit (no ms↔s/B↔MB rescaling — a v1 simplification of the dashboard's axis scaling). |
flare mcp [--api-url url] [--token pat] |
Runs a read-only Model Context Protocol server over stdio so AI assistants (Claude Code, Cursor, VS Code) can query Flare: search_logs, search_traces, get_trace, list_metrics, query_metric, list_exceptions, list_firing_alerts, list_checkin_monitors, list_runs, diff_traces, compare_runs. Not meant to be run by hand; the client launches it. Targets the local instance (-n for a named one) unless --api-url points at another Flare.Api, in which case --token (or FLARE_API_TOKEN) supplies a personal access token. See Let an AI assistant query Flare. |
flare doctor |
Read-only diagnostics, framed as "why isn't Flare working" rather than a bare checklist: Docker/Compose versions, per-container health (reads each service's own Docker healthcheck, not just process state), host-port availability (while the stack is down), ClickHouse/Redis reachability plus a row-count sanity check, API/Dashboard HTTP health, and OTLP gRPC/HTTP listening checks. Passing groups (ports, containers) collapse to one summary row; any failure expands back to a per-item row with a "suggested action" line. Ends with a single Result: HEALTHY/UNHEALTHY line. |
flare destroy [--yes] [--purge-config] |
Destructive. Removes containers and data volumes. Refuses to run without --yes (or an interactive confirm) — never proceeds silently on a non-interactive invocation. Keeps .env unless --purge-config is also passed. |
flare instances list |
Tables every Flare instance on this machine — the default one (if initialized) plus every named one — with mode (standalone/cluster), directory, running-service count, and pinned image tag. |
flare --version |
Prints the installed CLI version. |
Where Flare's data lives (~/.flare/)
~/.flare/
docker-compose.yml # default instance - generated on first `flare start`; never overwritten afterward
.env # default instance - generated on first init: RANDOM CLICKHOUSE_PASSWORD/REDIS_PASSWORD/FLARE_CH_*_PASSWORD
db/clickhouse/*.sql # default instance - ClickHouse init scripts, materialized from the CLI's own build
db/clickhouse/config/flare-users.xml # default instance - ClickHouse service users (mounted into users.d), re-extracted every run
state.json # default instance - last-pulled image digests, for `flare update`'s diff output
instances/
work/ # `flare start -n work` - same layout as above, scoped to this instance
docker-compose.yml
.env
db/clickhouse/*.sql
state.json
bignode/ # `flare start --cluster -n bignode` - a cluster-mode instance instead
docker-compose.yml
.env
db/clickhouse-cluster/config/*.xml # keeper/macros/remote-servers/nginx-lb config + flare-users.xml, not db/clickhouse/*.sql
state.json
Instance naming and resolution
- Instance names: lowercase letters, digits, and hyphens only, not
leading/trailing.
defaultis reserved (it's what omitting--namealready means). - Ports are auto-assigned on a named instance's first-ever start — the
CLI probes for the next free host port at or after each service's
documented default (
8123,4317,4318,8080,7777) and bakes the result into that instance's own.env. Assigned once;.envis still yours to hand-edit afterward for different values. FLARE_INSTANCEenv var is an opt-in shorthand for-n/--name— set once in a shell profile, CI job, or.envrcand everyflareinvocation targets that instance without repeating-n. An explicit-n/--nameon the command line always wins over the env var.FLARE_INSTANCE=defaultexplicitly targets the default instance.- Resolution when
--nameis omitted and the env var is unset/empty: the default instance if initialized; otherwise the sole named instance, if there's exactly one. Once a second named instance exists with still no default, omitting--nameresolves to the (uninitialized) default instance again rather than guessing which one you meant. Once the default instance itself exists, it's always the implicit target regardless of how many named instances also exist. - Passwords are randomly generated per instance, not the repo's
docker-compose.ymlflare/flaredefault — generated once at first init, never rotated afterward (rotating would breakidentity-data/ClickHouse auth on the next start). The file is plain text and yours to hand-edit if you'd rather set your own.
Cluster mode
flare start --cluster stands an instance up as a real 4-node ClickHouse
cluster (2 shards × 2 replicas) coordinated by a 3-node ClickHouse Keeper
quorum, plus two Flare.Ingest replicas sharing one Redis Streams consumer
group, instead of the single-node default — the no-checkout-required
equivalent of running
docker-compose.cluster.yml directly.
See ../explanation/clustering.md for the
full topology/design writeup and
../how-to/deploy/run-cluster-mode.md for running
it directly — those stay the source of truth for the cluster itself; this
section only covers the CLI surface.
Orthogonal to naming: either the default instance or any named one can be
cluster mode, independent of every other named/default instance on the same
machine. Decided once at an instance's first flare start and persisted —
not a live migration path, same as docker-compose.cluster.yml itself:
flare start --cluster against an already-initialized standalone instance
(or plain flare start against an already-initialized cluster one) fails
with a clear error. Point --cluster at a fresh --name (or
flare destroy --purge-config first) to switch an instance's mode.
Defaults to FLARE_IMAGE_TAG=0.7.0, kept as its own pin, independent of
the standalone instance's own default (currently also 0.7.0) —
cluster-mode support merged after v0.2.0 was tagged, and v0.3.0 was the
first stable release that included it; both pins have since caught up to
v0.5.0, the first release with a published flare-alert-worker image.
flare update --tag TAG still works normally to move a cluster instance
onto a newer pin later.
What's different from a standalone instance:
- More containers, more
flare status/flare doctorrows:keeper-1..3,clickhouse-1..4,clickhouse-lb(an nginx reverse proxy round-robining the 4 ClickHouse nodes with passive failover),redis,ingest-1,ingest-2,api,dashboard— 13 services instead of 5. - Fewer host ports: only
ingest-1/ingest-2(distinctFLARE_INGEST_*_PORT/FLARE_INGEST2_*_PORTpairs, default4317/4318and4319/4320),api(FLARE_API_PORT), anddashboard(FLARE_DASHBOARD_PORT) are published to the host — noCLICKHOUSE_HTTP_PORThere, since none of the ClickHouse nodes (orclickhouse-lb) publish a host port in cluster mode; everything ClickHouse-side is reached throughclickhouse-lbfrom inside the compose network only. ~/.flare/db/clickhouse-cluster/config/(keeper/macros/remote-servers/ nginx-lb config, materialized from the CLI's own build, the same trickdb/clickhouse/already uses for the standalone init scripts) instead of~/.flare/db/clickhouse/— cluster schema itself isn't applied via a bind-mounted init script at all; it's already embedded in the publishedflare-ingest/flare-apiimages and applied byClickHouseMigrationRunnerat startup, the same way it already works fordocker-compose.cluster.yml.flare updateonly diffsingest-1,ingest-2,api,dashboard— ClickHouse/Keeper/Redis stay on their own floating upstream tags, untracked byFLARE_IMAGE_TAG, same exclusion the standaloneclickhouse/redisservices already have today.
Image tag policy
~/.flare/.env defaults FLARE_IMAGE_TAG to the latest stable Flare
release this CLI version was tested against (currently 0.7.0 for both
standalone and cluster mode — see
Cluster mode above; see
../../.github/workflows/docker-publish.yml
for how vX.Y.Z tags get cut). Deliberately not the floating edge/latest
tags — see ../explanation/architecture.md
for why. Plain flare update (no --tag) re-pulls that same pinned tag.
flare update --tag TAG rewrites ~/.flare/.env's FLARE_IMAGE_TAG in
place, then pulls — hand-editing .env still works too, --tag is the same
edit without leaving the CLI. Set FLARE_IMAGE_TAG=edge (via either route)
to track Flare's unreleased main branch instead, or
flare destroy --purge-config to reset to the currently-installed CLI
version's own default.
Minimum tag. An instance created by Flare.Cli 0.1.12 or later runs the
ClickHouse migrations in a one-shot clickhouse-migrate service, and its
ingest, api and alert-worker never get the ClickHouse default
password. That job needs the migrate command, which the api image has from
0.7.0. So flare start and flare update refuse a FLARE_IMAGE_TAG that is
a release older than 0.7.0 (0.6.0, 0.6), and flare update --tag leaves
.env unchanged when it refuses. Tags that aren't a version number (edge,
latest, sha-…) are always accepted. An instance created by an older CLI
keeps its compose file, which migrates at service startup, and accepts any
tag. To move it onto the job, recreate it with flare destroy --purge-config
and flare start. That deletes its data.
Version history (standalone instance's own default):
Flare.Cli version |
Default FLARE_IMAGE_TAG (standalone) |
|---|---|
| 0.1.0 (2026-08-16) | edge |
| 0.1.1 (2026-08-19) | 0.2.0 |
| 0.1.2 (2026-08-19) | 0.2.0 (unchanged — this release's own changes were the dashboard port default and the flare start/doctor port-availability check, plus adding --tag above) |
| 0.1.4 (2026-08-23) | 0.2.0 (unchanged — this release added cluster mode, whose own separate default started at edge since no stable release included it yet) |
| 0.1.5 (2026-08-23) | 0.2.0 (unchanged — cluster mode's own default moved edge → 0.3.0 the same day, once that first cluster-capable stable release shipped) |
| 0.1.6 (2026-09-10) | 0.5.0 (both standalone and cluster pins bumped together, once v0.5.0 shipped the first published flare-alert-worker image) |
| 0.1.7 (2026-09-28) | 0.5.1 (both pins; 0.1.6's 0.5.0 pointed at apardev/* images that only exist from 0.5.1, so a fresh install failed to pull) |
| 0.1.9 (2026-10-13) | 0.6.0 (both pins; 0.1.8 added flare mcp and was never published, so 0.1.9 is its first release) |
| 0.1.11 (2026-11-27) | 0.7.0 (both pins; first release with the migrate command, ADR-0284) |
| 0.1.12 | 0.7.0 (unchanged; new instances run migrations in a clickhouse-migrate job, and start/update refuse release tags older than 0.7.0, ADR-0285) |
Last updated: