lprs/docs/commands/get.md
Awiteb f9d36a2dd7
All checks were successful
Write changelog / write-changelog (push) Successful in 3s
Rust CI / Rust CI (push) Successful in 1m59s
feat: Lprs docs (#49)
Reviewed-on: #49
Co-authored-by: Awiteb <a@4rs.nl>
Co-committed-by: Awiteb <a@4rs.nl>
2024-05-17 01:29:37 +03:00

1.1 KiB

Getting a vault

Usage

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

Arguments:
  <INDEX-or-NAME>
          Whether the index of the vault or its name

  [FIELD]
          A Specific field to get.
          
          Can be [name, username, password, service, note, totp_secret, totp_code, "string"]
          
          where the string means a custom field

Options:
  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Get a single field from a vault, if the field is not provided, the whole vault will be printed. If the field is a custom field, you need to provide it as a string.

Also, if the vault you specified does not contained the field you provided, an error will be returned.

Examples

Get the whole vault by its index:

lprs get 1

Get the whole vault by its name:

lprs get my-vault

Get a specific field from a vault by its name:

lprs get my-vault password

Get a custom field from a vault by its name:

lprs get matrix_home_server "host"

Notes

  • The index is one-based (the first vault is 1).