cli: update acl bootstrap help to match docs (#18961)

See https://developer.hashicorp.com/nomad/docs/commands/acl/bootstrap
This commit is contained in:
Michael Schurter
2023-11-02 08:52:21 -07:00
committed by GitHub
parent 142884b384
commit 78f0c6b2a9
2 changed files with 14 additions and 1 deletions

3
.changelog/18961.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:improvement
cli: Added help text to `acl bootstrap` about reading the initial token from a file
```

View File

@@ -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) + `