open-vault/website/pages/docs/commands/policy/fmt.mdx
Jeff Escalante 4f87851926 [website] Link Cleaning (#8205)
* update dependencies

* remove hard-coded vaultproject.io on local links

* remove 'index.html' from internal links

* remove '.html' at end of internal links

* manual review cleanup

Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
2020-01-22 12:05:41 -08:00

29 lines
687 B
Plaintext

---
layout: docs
page_title: policy fmt - Command
sidebar_title: <code>fmt</code>
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)
included on all commands.