> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# proving redact

> Apply the redaction policy: write redacted sessions and signed reports

## Usage

```text theme={null}
Apply the redaction policy: write redacted sessions and signed reports

Usage: proving redact [flags]

Flags:
      --policy <path>  The redaction policy file (default: the project's)
      --new-key        Make a new redaction key although earlier reports were made with another
      --preview        Show what redaction would do, with samples, and change nothing

Global flags:
      --project <path>  The project file (default: the nearest proving.yaml upward)
      --json            Print a single JSON document
      --quiet           Print errors only
      --verbose         Print more detail
      --no-color        Print without color
      --workspace <id>  The workspace to act on
  -h, --help            Show help for the command
```

## Flags

| Flag | Value | What it does |
| - | - | - |
| `--policy` | `<path>` | The redaction policy file (default: the project's) |
| `--new-key` | none | Make a new redaction key although earlier reports were made with another |
| `--preview` | none | Show what redaction would do, with samples, and change nothing |

## Global flags

| Flag | Value | What it does |
| - | - | - |
| `--project` | `<path>` | The project file (default: the nearest proving.yaml upward) |
| `--json` | none | Print a single JSON document |
| `--quiet` | none | Print errors only |
| `--verbose` | none | Print more detail |
| `--no-color` | none | Print without color |
| `--workspace` | `<id>` | The workspace to act on |
| `--help` (`-h`) | none | Show help for the command |

## Exit codes

The command exits with one of the [exit codes](https://docs.hex65.com/reference/exit-codes.md). Each has a page with its fixes under [Troubleshooting](https://docs.hex65.com/troubleshooting/exit-codes.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.