lprs/docs/commands/gen.md
Awiteb 5e4fb0ea7c
All checks were successful
Write changelog / write-changelog (push) Successful in 5s
Rust CI / Rust CI (push) Successful in 3m7s
feat: Support entering custom keys value via STDIN (#64)
Reviewed-on: https://git.4rs.nl///awiteb/lprs/pulls/64
Co-authored-by: Awiteb <a@4rs.nl>
Co-committed-by: Awiteb <a@4rs.nl>
2024-08-17 17:23:33 +02:00

912 B

Generating a password

Usage

Usage: lprs get <INDEX-or-NAME> [FIELD]

Arguments:
  [LENGTH]  The password length [default: 18]

Options:
  -u, --uppercase  With uppercase letters (A-Z)
  -l, --lowercase  With lowercase letters (a-z)
  -n, --numbers    With numbers (0-9)
  -s, --symbols    With symbols (!,# ...)
  -h, --help       Print help

Generate a password with the specified length, by default the length is 18, you can specify the length by passing the LENGTH argument.

This command is useful when you need to generate a password for a new vault.

Examples

Generate a password of length 20 with uppercase letters, lowercase letters, numbers, and symbols:

lprs gen 20 -ulns

Generate a password of length 20 for a new vault:

lprs add my-vault -u 'username' -p $(lprs gen 20 -ulns)

Notes

  • You must specify at least one of the options to generate a password.