---
title: "nctl compliance audit"
diataxis: reference
applies_to:
  product: "nctl"
audience: ["developer","platform-engineer"]
last_updated: 2026-03-07
url: https://docs.nirmata.io/docs/nctl/commands/nctl_compliance_audit/
---

## nctl compliance audit

Collect compliance evidence from a Kubernetes cluster

```bash
nctl compliance audit [flags]
```

### Examples

```bash
  # Collect SOC2 evidence package
  nctl compliance audit --standard soc2

  # Collect NIST 800-53 evidence for specific namespaces
  nctl compliance audit --standard nist-800-53 --namespace production,staging

  # Write evidence to a custom directory
  nctl compliance audit --standard soc2 --output-dir /tmp/evidence
```bash

### Options

```text
  -h, --help                   help for audit
      --kube-context string    the kube context from configured kubeconfig. Default is the current or sole context
      --kubeconfig string      kubeconfig path (defaults to $HOME/.kube/kubeconfig)
      --mappings-file string   Override path to mappings YAML file
  -o, --output string          Output format for the collection summary (text, json, yaml) (default "text")
      --output-dir string      Directory for evidence output (default: ~/.nirmata/nctl/compliance/evidence/)
      --standard string        Compliance standard (soc2, nist-800-53, nsa-cisa, iso27001, pci-dss, etc.)
```text

### Options inherited from parent commands

```text
  -v, --v Level   number for the log level verbosity
```

### SEE ALSO

* [nctl compliance](nctl_compliance.md)	 - Compliance management commands


