A new platform for documentation and tutorials is launching soon.
We are migrating Vault documentation into HashiCorp Developer, our new developer experience.
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.
Format the local file "my-policy.hcl":
$ vault policy fmt my-policy.hcl
There are no flags beyond the standard set of flags included on all commands.