Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: update acl bootstrap help to match docs #18961

Merged
merged 3 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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