open-vault/website/source/docs/commands/policy/fmt.html.md
RJ Spiker fca7cb3794 website: update sidebar_title in front matter to use <code> (#5636)
* website: replace deprecated <tt> with <code> in front matter sidebar_title

* website: wrap front matter sidebar_title in <code> for commands pages
2018-10-29 15:58:37 -04:00

30 lines
748 B
Markdown

---
layout: "docs"
page_title: "policy fmt - Command"
sidebar_title: "<code>fmt</code>"
sidebar_current: "docs-commands-policy-fmt"
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":
```text
$ vault policy fmt my-policy.hcl
```
## Usage
There are no flags beyond the [standard set of flags](/docs/commands/index.html)
included on all commands.