Skip to content

CLI Reference

ComplyForm CLI reference — all commands and options.

These flags apply to every command:

FlagTypeDefaultDescription
--verbose / --no-verboseboolfalseShow debug output
--quiet / --no-quietboolfalseSuppress non-error output
--no-progressboolfalseSuppress progress indicators
--config, -cpath~/.complyform/config.yamlConfig file path
--versionflagShow version and exit
--install-completionflagInstall shell completion
--show-completionflagShow shell completion script
--helpflagShow help and exit
CodeMeaning
0Success (all controls pass)
1Compliance failures found
2Runtime error
3Partial failure (batch mode)
130Interrupted (Ctrl+C)
  • scan — Discover existing Terraform resources from state files or cloud APIs
  • assess — Map resources to framework controls and produce compliance findings
  • remediate — Generate surgical Terraform patches for failing controls
  • validate — Confirm patched state passes compliance checks
  • report — Generate compliance reports (terminal, HTML, PDF)
  • export — Export results to audit/GRC platforms (Vanta, Drata, Secureframe)
  • init — Interactive setup wizard for new projects
  • generate — Generate .tf files from complyform.init.yaml (see below)
  • frameworks — List, inspect, and compare compliance frameworks
  • policy-gen — Generate policy-as-code artifacts (Checkov, OPA, GitHub Action)
  • update — Check for CLI and profile updates
  • doctor — Check environment health
  • activate — Activate a license key
  • feedback — Report bugs or request features
  • version — Show version information
  • drift — Configure drift monitoring

These commands don’t have dedicated sidebar pages.

Alias for the remediatevalidate pipeline. Runs remediation then validation in sequence.

Terminal window
complyform fix --frameworks=soc2

Accepts all flags from both remediate and validate. Exit code is remediate’s code if it fails, otherwise validate’s code. --interactive and --open-pr are mutually exclusive.

Explain a finding from a cached assessment.

Terminal window
complyform explain CC6.1
complyform explain CC6.1 --ai --frameworks=soc2
FlagTypeDefaultDescription
<target>positionalControl ID or finding ID
--frameworksstringFramework context for explanation
--aiboolfalseAI-enhanced explanation (Pro+)
--formatjson|terminalterminalOutput format

Generate .tf files from a complyform.init.yaml configuration (created by init).

Terminal window
complyform generate --config=./complyform.init.yaml
FlagTypeDefaultDescription
--configpath./complyform.init.yamlConfig file path
--forceboolfalseOverwrite existing files
--estimate-costboolfalseInclude cost estimation
--dry-runboolfalsePreview without writing

After generating, run complyform validate to verify compliance.

Verify an attestation signature and integrity (SPEC-017).

Terminal window
complyform verify ./attestation.json
FlagTypeDefaultDescription
<attestation-file>positionalPath to attestation file
--assessmentpathAssessment file to verify against
--formatjson|terminalterminalOutput format

Launch an MCP (Model Context Protocol) server on stdio for AI assistant integration. This is a hidden command — it does not appear in --help output.

Terminal window
complyform mcp-server

Exposes 8 read-only tools over stdio transport. Intended for use with AI coding assistants that support the MCP protocol.