View Source mix scr.show (SecretVault v1.2.2)

Shows an existing secret in the specified environment and under the specified name.

If the name of a secret is not provided, it lists all the existing secrets.

It uses configuration of the current application to retrieve the keys and so on.

Usage

To show the secret use

$ mix scr.show prod database_url

If you want to list all the available secrets for the environment, you can run

$ mix scr.show prod

Config override

You can override config options by providing command line arguments.

  • :cipher - specify a cipher to use;
  • :priv_path - path to priv directory;
  • :prefix - prefix to use (defaults to default);
  • :password - use a password that's different from the one that's configured.