airshipctl/docs/source/cli/airshipctl_secret_generate_encryptionkey.md
Sirisha Gopigiri 07b66906ad Cmd changes to add regex support
Added support to accept regex parameter as part of `airshipctl secret
generate encryptionkey` command. This allows user to pass regex parameter
so that the passphrase generated matches the regex.

Relates-To: #398

Change-Id: I3914e6a896bb669e3974fe67c466336e15989a8d
2020-11-18 11:32:28 +05:30

1.1 KiB

airshipctl secret generate encryptionkey

Generates a secure encryption key or passphrase

Synopsis

Generates a secure encryption key or passphrase.

If regex arguments are passed the encryption key created would match the regular expression passed.

airshipctl secret generate encryptionkey [flags]

Examples


# Generates a secure encryption key or passphrase.
airshipctl secret generate encryptionkey

# Generates a secure encryption key or passphrase matching the regular expression
airshipctl secret generate encryptionkey \
  --regex Xy[a-c][0-9]!a*

Options

  -h, --help           help for encryptionkey
      --limit int      Limit number of characters for + or * regex (default 5)
      --regex string   Regular expression string

Options inherited from parent commands

      --airshipconf string   Path to file for airshipctl configuration. (default "$HOME/.airship/config")
      --debug                enable verbose output

SEE ALSO