github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/acl/policy/list.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: acl policy list'
     4  description: |
     5    The policy list command is used to list available ACL policies.
     6  ---
     7  
     8  # Command: acl policy list
     9  
    10  The `acl policy list` command is used to list available ACL policies.
    11  
    12  ## Usage
    13  
    14  ```plaintext
    15  nomad acl policy list
    16  ```
    17  
    18  This command requires a management ACL token to view all policies. A
    19  non-management token can query its own policies.
    20  
    21  ## General Options
    22  
    23  @include 'general_options_no_namespace.mdx'
    24  
    25  ## List Options
    26  
    27  - `-json` : Output the policies in their JSON format.
    28  - `-t` : Format and display the policies using a Go template.
    29  
    30  ## Examples
    31  
    32  List all ACL policies:
    33  
    34  ```shell-session
    35  $ nomad acl policy list
    36  Name      Description
    37  policy-1  The first policy
    38  policy-2  The second policy
    39  ```