open-vault/website/content/docs/commands/policy/fmt.mdx
Bryce Kalow b76a56d40c
feat(website): migrates nav data format and updates docs pages (#11242)
* migrates nav data format and updates docs pages

* removes sidebar_title from content files
2021-04-06 13:49:04 -04:00

28 lines
664 B
Plaintext

---
layout: docs
page_title: policy fmt - Command
description: |-
The "policy fmt" formats a local policy file to the policy specification. This
command will overwrite the file at the given PATH with the properly-formatted
policy file contents.
---
# policy fmt
The `policy fmt` formats a local policy file to the policy specification. This
command will overwrite the file at the given PATH with the properly-formatted
policy file contents.
## Examples
Format the local file "my-policy.hcl":
```shell-session
$ vault policy fmt my-policy.hcl
```
## Usage
There are no flags beyond the [standard set of flags](/docs/commands)
included on all commands.