mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-07 10:31:54 +01:00
* implement mdx remote * fix an unfenced code block * fix partials path Co-authored-by: Jim Kalafut <jkalafut@hashicorp.com>
29 lines
696 B
Plaintext
29 lines
696 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":
|
|
|
|
```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.
|