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

748 B

layout page_title sidebar_title sidebar_current description
docs policy fmt - Command <code>fmt</code> docs-commands-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.

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":

$ vault policy fmt my-policy.hcl

Usage

There are no flags beyond the standard set of flags included on all commands.