Skip to main content

CLI command reference

Run superflag --help for human help. Run superflag contract --json or superflag --help --json for the complete versioned machine contract bundled with your installed CLI.

Quick commands

Agent skill lifecycle

The default target is .agents/skills/superflag/. install refuses to replace a different existing directory, update performs an explicit staged replacement, and network-free check exits with conflict code 6 on content, provenance, or package-version drift. Skill instructions are byte-exact; provenance JSON may be reformatted, but its exact fields and values must match.

Direct management

--client makes a legacy flag client-deliverable; --no-client explicitly makes it server-only. Variant weights must total 100.

Declarative configuration

Compatible existing-value and advanced structural changes use one atomic bulk request. The plan’s config version is the CAS precondition; never copy a literal version from an example. Source and reason are integrity-bound in the plan and cannot be overridden during apply. Unsupported changes fail before mutation.

History and rollback

History is composite configuration plus experiment state. Rollback plans bind the exact experiment version vector so an old config cannot be silently joined with current experiments.

Metrics

Metric definitions are immutable revisions and support conversion, count, sum, mean, and derived ratio kinds.

Experiments

Declarative experiments validate|plan|apply|recover commands bind the full definition, current config and experiment versions, and immutable target identity. Lifecycle mutations require CAS and caller-stable idempotency. Result and health commands return the server’s effect intervals, sufficient statistics, readiness, health reasons, freshness, and engine version. They do not infer a winner. A collecting or stale result exits 8; invalid analysis exits 9. Recompute is an explicit mutation:
Confirmation cannot bypass a raw-input gap or source-watermark conflict.

Feature insights and exposures

Queries use only allow-listed feature dimensions and measures. Aggregate ranges are at most 90 days; event pages are at most 100 rows across seven days. exposures export streams typed event and checkpoint NDJSON records. Save the latest non-null cursor and resume with --cursor; do not add --json to an NDJSON export.

Inspection and journal

The change journal returns redacted structured changes, safe authority metadata, and before/after versions. Raw credentials and request payloads are excluded.