Skip to content

Commit

Permalink
cli: update acl bootstrap help to match docs (#18961)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael authored Nov 2, 2023
1 parent 142884b commit 78f0c6b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/18961.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
cli: Added help text to `acl bootstrap` about reading the initial token from a file
```
12 changes: 11 additions & 1 deletion command/acl_bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,20 @@ type ACLBootstrapCommand struct {

func (c *ACLBootstrapCommand) Help() string {
helpText := `
Usage: nomad acl bootstrap [options]
Usage: nomad acl bootstrap [options] [<path>]
Bootstrap is used to bootstrap the ACL system and get an initial token.
The acl bootstrap command can be used in two ways:
- If you provide no arguments it will return a system generated bootstrap
token.
- If you would like to provide an operator generated token it is possible to
provide the token using a file located at <path>. The Token can be read
from stdin by setting <path> to "-". Please make sure you secure this token
in an appropriate manner as it could be written to your terminal history.
General Options:
` + generalOptionsUsage(usageOptsDefault|usageOptsNoNamespace) + `
Expand Down

0 comments on commit 78f0c6b

Please sign in to comment.