Skip to content

vercel secrets

Learn how to list, add, remove, and manage secrets used in environment variables from the command line.
Note: Environment Variables are now encrypted by default, so it's no longer necessary to use vercel secrets. This command will eventually be deprecated.

The vercel secrets command is used to manage Secrets used in Environment Variables under an account, providing functionality to list, add, rename, and remove Secrets.

vercel secrets list

Using the vercel secrets command to list all Secrets under an account.

vercel secrets add [secret-name] [secret-value]

Using the vercel secrets command to add a Secret to an account.

vercel secrets rename [old-name] [new-name]

Using the vercel secrets command to rename a Secret under an account.

vercel secrets remove [secret-name]

Using the vercel secrets command to remove a Secret from an account.

The following global options can be passed when using the vercel secrets command:

  • --cwd
  • --debug
  • --global-config
  • --help
  • --local-config
  • --scope
  • --token

For more information on global options and their usage, refer to the options section.