KNIFE-USER(1) | knife user | KNIFE-USER(1) |
knife-user - The man page for the knife user subcommand.
The knife user subcommand is used to manage the list of users and their associated RSA public key-pairs.
NOTE:
The following options may be used with any of the arguments available to the knife user subcommand:
The create argument is used to create a user. This process will generate an RSA key pair for the named user. The public key will be stored on the Chef server and the private key will be displayed on STDOUT or written to a named file.
Syntax
This argument has the following syntax:
$ knife user create USER_NAME (options)
Options
This argument has the following options:
Examples
$ knife user create "Radio Birdman" -f /keys/user_name
The delete argument is used to delete a registered user.
Syntax
This argument has the following syntax:
$ knife user delete USER_NAME
Options
This command does not have any specific options.
Examples
$ knife user delete "Steve Danno"
The edit argument is used to edit the details of a user. When this argument is run, knife will open $EDITOR. When finished, knife will update the Chef server with those changes.
Syntax
This argument has the following syntax:
$ knife user edit USER_NAME
Options
This command does not have any specific options.
Examples
None.
The list argument is used to view a list of registered users.
Syntax
This argument has the following syntax:
$ knife user list (options)
Options
This argument has the following options:
Examples
None.
The reregister argument is used to regenerate an RSA key pair for a user. The public key will be stored on the Chef server and the private key will be displayed on STDOUT or written to a named file.
NOTE:
Syntax
This argument has the following syntax:
$ knife user reregister USER_NAME (options)
Options
This argument has the following options:
Examples
$ knife user reregister "Robert Younger"
The show argument is used to show the details of a user.
Syntax
This argument has the following syntax:
$ knife user show USER_NAME (options)
Options
This argument has the following options:
Examples
To view a user named Dennis Teck, enter:
$ knife user show "Dennis Teck"
to return something like:
chef_type: user json_class: Chef::User name: Dennis Teck public_key:
To view information in JSON format, use the -F common option as part of the command like this:
$ knife user show "Dennis Teck" -F json
(Other formats available include text, yaml, and pp, e.g. -F yaml for YAML.)
Chef
Chef 12.0 |