2017-09-08 02:11:00 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "policy list - Command"
|
|
|
|
sidebar_current: "docs-commands-policy-list"
|
|
|
|
description: |-
|
|
|
|
The "policy list" command Lists the names of the policies that are installed
|
|
|
|
on the Vault server.
|
|
|
|
---
|
|
|
|
|
|
|
|
# policy list
|
|
|
|
|
|
|
|
The `policy list` command Lists the names of the policies that are installed on
|
|
|
|
the Vault server.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
List the available policies:
|
|
|
|
|
|
|
|
```text
|
|
|
|
$ vault policy list
|
|
|
|
default
|
|
|
|
root
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2018-02-12 23:12:16 +00:00
|
|
|
The following flags are available in addition to the [standard set of
|
|
|
|
flags](/docs/commands/index.html) included on all commands.
|
|
|
|
|
|
|
|
### Output Options
|
|
|
|
|
|
|
|
- `-format` `(string: "table")` - Print the output in the given format. Valid
|
|
|
|
formats are "table", "json", or "yaml". This can also be specified via the
|
|
|
|
`VAULT_FORMAT` environment variable.
|
|
|
|
|