# strazactl policy diff

Diff the stored PolicySet against a local file


## Synopsis

Renders the difference between the named stored PolicySet and a local
file: rule-level added/changed/removed first, then a unified line diff.
Exit codes speak diff(1): 0 identical, 1 differs, 2 error.
There is no rollback: the way back is apply a previous file, then activate.

```
strazactl policy diff <name> [flags]
```

## Options

```
  -f, --file string   local PolicySet YAML file to compare
```

## Options inherited from parent commands

```
      --server string   strazad base URL (overrides $STRAZA_SERVER)
```

## See also

* [strazactl policy](https://docs.straza.ai/reference/cli/strazactl/strazactl_policy/index.md): Validate and manage PolicySets



