Reference

CLI

Run posturanet with no arguments, or any command with --help, to see every option with examples. Most commands take --format json.

Commands

CommandWhat 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.jsonGate a Terraform plan against the contracts
posturanet contract check --sourceThe 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 fixesEvery 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-codeClaude Code hook that checks every .tf edit
posturanet mcpRun 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.

CommandWhat it does
posturanet license statusThe installed key, its features and expiry
posturanet contract refreshPropose contract updates from new evidence, as PRs
posturanet contract liveCompare live resources with their contracts; open issues on drift
posturanet evidence keygen | record | exportSigned audit evidence and its OSCAL export
posturanet evidence verifyCheck signed audit evidence; runs without a license key
posturanet triggers templateCloudFormation 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 slackPost each run's outcome to Slack
posturanet gate --org-config <file>The contract check with an org-wide config

Exit codes

CodeMeaning
0Success, including dry runs and report-only results
2Usage or config error
3Stopped: UNKNOWN or fail-closed, no PR
4Validation FAIL, or evidence that doesn't verify
5Contract gate BLOCK
6A license key that lists this feature is needed
10Internal error
Next: MCP server