github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/commands/acl/policy-apply.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: acl policy apply'
     4  sidebar_title: policy apply
     5  description: |
     6    The policy apply command is used to create or update ACL policies.
     7  ---
     8  
     9  # Command: acl policy apply
    10  
    11  The `acl policy apply` command is used to create or update ACL policies.
    12  
    13  ## Usage
    14  
    15  ```plaintext
    16  nomad acl policy apply [options] <name> <path>
    17  ```
    18  
    19  The `acl policy apply` command requires two arguments, the policy name and path
    20  to file. The policy can be read from stdin by setting the path to "-".
    21  
    22  This command requires a management ACL token.
    23  
    24  ## General Options
    25  
    26  @include 'general_options_no_namespace.mdx'
    27  
    28  ## Apply Options
    29  
    30  - `-description`: Sets the human readable description for the ACL policy.
    31  
    32  ## Examples
    33  
    34  Create a new ACL Policy:
    35  
    36  ```shell-session
    37  $ nomad acl policy apply my-policy my-policy.json
    38  Successfully wrote 'my-policy' ACL policy!
    39  ```