Command - User
Manage user credentials for connecting to the message broker protocol
Usage: foxmq user <COMMAND>
Subcommands
generate
Generate a user record and print it to stdout
#generate
add
addAdd a user record to the credentials file, creating it if it doesn't exist.
If a username and/or password are not provided, you will be prompted for them interactively.
Usage: foxmq user add [OPTIONS] [USERNAME] [PASSWORD]
Arguments
USERNAMEThe username of the user. Must be unique within the users file. If omitted, you will be prompted to enter it interactively.PASSWORDThe password for the user. If omitted, you will be prompted to enter it interactively, or be given the option to generate a random one.
Options
--log,-lSet the format of log output.Default:
fullOptions:
full,compact,pretty,jsonjsonis structured and is intended for usage by tools that process structured logs in production environments, and is not optimized for human readability.
--output-file,-OThe path to write the address book and secret key files to. If any parent directories in the path do not already exist, they will be created.Default:
foxmq.d/users.toml
--write-mode,-mControls how this command writes to--output-file.Default:
appendPossible values:
append: Append to the file if it already exists, or create it if it doesn't.truncate: Truncate the file if it already exists, or create it if it doesn't.
generate
generateGenerate a user record and write it to stdout
Usage: foxmq user generate [OPTIONS] <USERNAME> [PASSWORD]
Arguments
USERNAMEThe username of the user. Must be unique within the users file.
PASSWORDThe password for the user. If omitted, the password will be read from the first line onstdin.
Options
--log, -l
Set the format of log output.
Default:
fullOptions:
full,compact,pretty,jsonjsonis structured and is intended for usage by tools that process structured logs in production environments, and is not optimized for human readability.
Last updated