CLI reference
Auth · secrets · telemetry.
briar auth
Acquire and persist credentials interactively. Every subcommand accepts a positional target (the thing you're logging into) and the same --store / --company pair.
Common flags
target TARGETrequiredgithub-devicegithub-patbitbucket-app-passwordaws-staticaws-ssojira-tokenjira-sessionlinear-api-keyfireflies--company COMPANYGITHUB_{COMPANY}_TOKEN etc.).--store STOREenvfileaws-secretsmanagerssmvault$BRIAR_DEFAULT_STORE then envfile. Ignored for bootstrap targets — those always persist locally.$ briar auth login
briar auth login [--company C] [--store S] TARGETRun the interactive flow for a target and write the resulting credentials.
$ briar auth login github-pat --company acme$ briar auth login github-device --company acme # device-flow OAuth$ briar auth login bitbucket-app-password --company acme$ briar auth login aws-sso --company acme$ briar auth login aws-static --company acme$ briar auth login jira-token --company acme$ briar auth login jira-session --company acme # for SSO tenants$ briar auth login linear-api-key --company acme
$ briar auth logout
briar auth logout [--company C] [--store S] [--yes] TARGETDelete the credentials a target's login would have written.
--yes$ briar auth logout github-pat --company acme --yes
$ briar auth refresh
briar auth refresh [--company C] [--store S] TARGETRenew an OAuth / SSO bundle without re-prompting. Useful for aws-sso and github-device.
$ briar auth refresh aws-sso --company acme
$ briar auth list
briar auth list [--store S] [--company C]Show which credential env vars are populated (names only — values are never printed).
$ briar auth list --store envfile
$ briar auth status
briar auth status [--company C] [--store S] TARGETShow one target × company bundle's coverage: which env vars are present, which are missing.
$ briar auth status github-pat --company acme$ briar auth status jira-session --company acme
briar secrets
Two subcommands: doctor audits the coverage of every (company × extractor) / (company × writer) tuple in a runbook directory; bootstrap runs the envfile loader on demand.
$ briar secrets doctor
briar secrets doctor [--examples DIR] [--store STORE]Walk every YAML in the directory and report, per(company, extractor, provider) tuple, which env vars are present and which are missing. Same audit for (company, messages, writer).
--examples DIRdefault: ./examples--store STOREdefault: envfileenvfileaws-secretsmanagerssmvault$ briar secrets doctor --examples runbooks/$ briar secrets doctor --examples runbooks/ --store aws-secretsmanager
$ briar secrets bootstrap
briar secrets bootstrap [--kind {envfile}] [--dry-run]One-off invocation of a credential bootstrap. Normally bootstraps run automatically at CLI startup; this is for debugging.
--kind {envfile}envfileis_available().--dry-runos.environ. Prints the keys that would be set, without revealing values.$ briar secrets bootstrap --dry-run$ briar secrets bootstrap --kind envfile
briar telemetry
Telemetry is opt-out — full by default. The six subcommands let you inspect, preview, and change the tier.
Tier ladder
off— no events sent. Persists.errors-only— only Sentry-captured exceptions.full— errors + usage analytics (which command, exit code, duration). No PII. The default.
Per-process and industry overrides
BRIAR_TELEMETRY=off for the current invocation; DO_NOT_TRACK=1 overrides everything (industry standard).$ briar telemetry status
briar telemetry statusPrint the current tier and the config source.
$ briar telemetry status
$ briar telemetry preview
briar telemetry preview [--for-command CMD]Print the exact JSON event that would be sent for the next invocation. Lets you audit the payload before trusting the system.
--for-command CMD$ briar telemetry preview$ briar telemetry preview --for-command plan.run
$ briar telemetry off
briar telemetry offDisable telemetry entirely. Persists to the config file.
$ briar telemetry off
$ briar telemetry errors-only
briar telemetry errors-onlyOpt into errors-only (default tier). Persists.
$ briar telemetry errors-only
$ briar telemetry full
briar telemetry fullOpt into errors + usage analytics. Persists.
$ briar telemetry full
$ briar telemetry reset
briar telemetry resetRegenerate the install ID (rotate the anonymous identity used to bucket events).
$ briar telemetry reset
See also
- Configuration — every env var and credential store on one page.
- briar journal — the structured log every command writes.