open-nomad/website/pages/docs/commands/acl/policy-apply.mdx
2020-05-18 16:53:06 -04:00

38 lines
803 B
Plaintext

---
layout: docs
page_title: 'Commands: acl policy apply'
sidebar_title: policy apply
description: |
The policy apply command is used to create or update ACL policies.
---
# Command: acl policy apply
The `acl policy apply` command is used to create or update ACL policies.
## Usage
```plaintext
nomad acl policy apply [options] <name> <path>
```
The `acl policy apply` command requires two arguments, the policy name and path
to file. The policy can be read from stdin by setting the path to "-".
## General Options
@include 'general_options.mdx'
## Apply Options
- `-description`: Sets the human readable description for the ACL policy.
## Examples
Create a new ACL Policy:
```shell-session
$ nomad acl policy apply my-policy my-policy.json
Successfully wrote 'my-policy' ACL policy!
```