fca7cb3794
* website: replace deprecated <tt> with <code> in front matter sidebar_title * website: wrap front matter sidebar_title in <code> for commands pages
30 lines
748 B
Markdown
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.
|