Skip to main content

wash keys

This command helps a user to generate NATS keys and manage them. Following are the subcommands available under wash keys.

  • gen
  • get
  • list


gen, short for generate. will generate a secret and public key pair. The type of key pair needs to be specified. The following ke types can be used:

  • account
  • user
  • module (Actor)
  • service (Capability Provider)
  • server
  • operator
  • cluster


wash keys gen user
wash keys gen server


This subcommand retrieves a key pair and prints its contents.


wash keys get example_module


Keys generated are stored in $HOME/.wash/keys. This subcommand retrieves all the keys stored in this directory. A different keys directory can be specified using the --directory flag.


wash keys list


--directory (Alias -d) Absolute path to where keypairs are stored. Defaults to $HOME/.wash/keys [env: WASH_KEYS]

--output (Alias -o) Specify output format (text or json) [default: text]

--experimental Whether or not to enable experimental features [env: WASH_EXPERIMENTAL=]