Reference
CLI
Run posturanet with no arguments, or any command with --help, to see every option with examples. Most commands take --format json.
Commands
| Command | What it does |
|---|---|
| posturanet fix <finding> [--dry-run | --open-pr] | Turn a finding into a validated fix, and optionally a PR |
| posturanet verify <pr> | After merge: the fix applied, the finding passes, nothing it kept got blocked |
| posturanet contract build <resource> | Build a behavior contract from evidence |
| posturanet contract check --plan tfplan.json | Gate a Terraform plan against the contracts |
| posturanet contract check --source | The same gate, offline, from your code |
| posturanet findings list <scan.json>... | Which findings in one or more scans PosturaNet can fix |
| posturanet findings split <scan.json>... | One file per fixable finding |
| posturanet fixes | Every control PosturaNet fixes |
| posturanet init [--changeset-preview] | Print the read-only IAM policy (or the opt-in preview role's) |
| posturanet connect [target] [--write] | Set up a scanner, coding agent or CI |
| posturanet hook claude-code | Claude Code hook that checks every .tf edit |
| posturanet mcp | Run the read-only MCP server over stdio |
| posturanet outcomes preview <run.json> | What the opt-in outcome share would send; sends nothing |
Team commands (PosturaNet Pro)
These need the posturanet-pro package and a license key that lists the feature, except evidence verify, which runs without one.
| Command | What it does |
|---|---|
| posturanet license status | The installed key, its features and expiry |
| posturanet contract refresh | Propose contract updates from new evidence, as PRs |
| posturanet contract live | Compare live resources with their contracts; open issues on drift |
| posturanet evidence keygen | record | export | Signed audit evidence and its OSCAL export |
| posturanet evidence verify | Check signed audit evidence; runs without a license key |
| posturanet triggers template | CloudFormation for the EventBridge rule that starts runs on new findings |
| posturanet dispatch <event.json> | Run fix for each fixable finding in an event |
| posturanet notify slack | Post each run's outcome to Slack |
| posturanet gate --org-config <file> | The contract check with an org-wide config |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success, including dry runs and report-only results |
| 2 | Usage or config error |
| 3 | Stopped: UNKNOWN or fail-closed, no PR |
| 4 | Validation FAIL, or evidence that doesn't verify |
| 5 | Contract gate BLOCK |
| 6 | A license key that lists this feature is needed |
| 10 | Internal error |