diff --git a/website/source/docs/commands/acl.html.md.erb b/website/source/docs/commands/acl.html.md.erb index b3e60d032..801c0aebe 100644 --- a/website/source/docs/commands/acl.html.md.erb +++ b/website/source/docs/commands/acl.html.md.erb @@ -20,6 +20,8 @@ Run `nomad acl -h` for help on that subcommand. The following subcommands are available: * [`acl bootstrap`][bootstrap] - Bootstrap the initial ACL token +* [`acl policy apply`][policyapply] - Create or update ACL policies [bootstrap]: /docs/commands/acl/bootstrap.html +[policyapply]: /docs/commands/acl/policy-apply.html diff --git a/website/source/docs/commands/acl/bootstrap.html.md.erb b/website/source/docs/commands/acl/bootstrap.html.md.erb index 6bbd92aed..2934753a4 100644 --- a/website/source/docs/commands/acl/bootstrap.html.md.erb +++ b/website/source/docs/commands/acl/bootstrap.html.md.erb @@ -3,7 +3,7 @@ layout: "docs" page_title: "Commands: acl bootstrap" sidebar_current: "docs-commands-acl-bootstrap" description: > - The deployment list command is used to list deployments. + The bootstrap command is used to create the initial ACL token. --- # Command: acl bootstrap diff --git a/website/source/docs/commands/acl/policy-apply.html.md.erb b/website/source/docs/commands/acl/policy-apply.html.md.erb new file mode 100644 index 000000000..5f57df9c8 --- /dev/null +++ b/website/source/docs/commands/acl/policy-apply.html.md.erb @@ -0,0 +1,37 @@ +--- +layout: "docs" +page_title: "Commands: acl policy apply" +sidebar_current: "docs-commands-acl-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 + +``` +nomad acl policy apply [options] +``` + +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 + +<%= partial "docs/commands/_general_options" %> + +## Apply Options + +* `-description`: Sets the human readable description for the ACL policy. + +## Examples + +Create a new acl policy + +``` +$ nomad acl policy apply my-policy my-policy.json +Successfully wrote 'my-policy' ACL policy! +``` diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index cb98350fd..64b54b7b6 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -173,6 +173,9 @@ > acl bootstrap + > + acl policy apply + >