Skip to Content
ReferenceRunner CLI

Runner CLI

The trustacks CLI is the operator-facing surface of the Runner. It drives rule authoring, manages the Environment Profile, and inspects agent state.

This page documents commands that are stable as of the public Beta. The full surface area is still settling; commands marked Coming soon are reserved names whose exact shape may change before they ship.

Conventions

  • Every command exits 0 on success, non-zero on any failure.
  • Every command prints structured output. --output json switches to machine-readable JSON; the default is human-readable.
  • Path arguments are relative to the current working directory unless qualified with ./ or an absolute path.
  • The CLI reads ~/.trustacks/config.yaml for the active runner endpoint and overlay-signing identity. trustacks login populates it.

Rule authoring

The four-step authoring flow for a customer-overlay rule.

trustacks rule new

Scaffold a new overlay rule with a stub implementation, a positive test, a negative test, and a citation block.

trustacks rule new ./overlay/deploy-windows.rego

The scaffold drops a working rule that denies every change. Tests pass on the stub. You replace the rule logic with your actual rule and update the tests.

trustacks rule test

Run the rule’s tests via the OPA test harness. Exits non-zero if any test fails or if positive / negative coverage is missing.

trustacks rule test ./overlay/deploy-windows.rego

trustacks rule lint

Prove that the rule ratchets stricter than the constitution and any active Specialist Packs. Validates citation, signature shape, and waiver shape (if the rule is a waiver). See the policy linter reference for what is checked.

trustacks rule lint ./overlay/deploy-windows.rego trustacks rule lint ./overlay # lint the whole overlay

trustacks rule sign

Sign the rule with your overlay key. The signing identity must be registered with the Control Plane. Signed rules are accepted by the Runner; unsigned or mis-signed rules are rejected.

trustacks rule sign ./overlay/deploy-windows.rego

Rule inspection

Inspect the active rule set the Runner has loaded.

trustacks rule list

List all active rules from a specific layer.

trustacks rule list --layer constitution trustacks rule list --layer specialist-pack --pack soc2 trustacks rule list --layer overlay trustacks rule list # all layers, grouped

trustacks rule show

Show the full text of a specific rule by ID, including its citation, its tests, and its signature metadata.

trustacks rule show CONST-CRED-001

Environment Profile

Manage the declarative inventory of your stack.

trustacks env declare

Add or update a Profile entry. Coordinator-assisted authoring is the default; --non-interactive reads from stdin for use in CI.

trustacks env declare ci-platform=azure-devops trustacks env declare scanner=clair-v5

trustacks env validate

Validate the Profile against its schema. Exits non-zero on any schema violation.

trustacks env validate ./environment-profile.yaml

trustacks env diff

Show drift between the declared Profile and what the Discovery agent observes in your repositories. Useful before approving a Discovery-proposed Profile PR.

trustacks env diff

Operator commands

Commands the platform operator runs against the Runner directly.

trustacks login

Authenticate the CLI against the Control Plane and the Runner endpoint. Writes the active config to ~/.trustacks/config.yaml.

trustacks login

trustacks status

Print a health summary of the Runner: connected MCP servers, active rule bundle versions, current Environment Profile version, agent crew loaded.

trustacks status

trustacks version

Print the CLI version, the Runner version, and the constitution and Specialist Pack versions currently loaded.

trustacks version

Coming soon

The following command groups are reserved and will ship in post-Beta releases. Names are stable; flag surfaces may evolve.

  • trustacks app · Application-level operations (one Application groups multiple Services under a single platform repo)
  • trustacks service · per-Service connection management
  • trustacks pack · subscribe, unsubscribe, list active Specialist Packs
  • trustacks trace · inspect agent traces (prompt, tool calls, model output, rule citations)
  • trustacks gap · generate a Gap Analysis Report against the active rules and Profile

Where to go next

Last updated on