---
title: "complyform validate"
description: "Confirm patched state passes compliance checks."
---

Confirm that patched Terraform state passes compliance checks.

## Usage

```bash
complyform validate [options]
```

## Options

| Flag | Type | Default | Description |
|---|---|---|---|
| `--frameworks` | string | all configured | Validate against specific framework |
| `--fix` | bool | `false` | Auto-apply safe remediations for failed controls (checks marked `auto_fix_safe: true` only) |
| `--format` | `json\|terminal\|html\|sarif` | `terminal` | Report format. SARIF = v2.1.0 (all tiers). |

## Examples

Validate after remediation:

```bash
complyform validate
```

Validate a specific framework:

```bash
complyform validate --frameworks=soc2
```

Auto-fix safe issues:

```bash
complyform validate --fix
```

After generating greenfield configs with `complyform generate`, run `complyform validate` to verify compliance.

## Related Commands

- [`remediate`](/cli-reference/remediate/) — Generate patches before validation
- [`report`](/cli-reference/report/) — Generate compliance reports
