1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/vercel/share-development-environment-variables-via-cli.md

661 B

Share Development Environment Variables Via CLI

Vercel's web UI as well as it's CLI make it easy to store and manage environment variables for your different environments. It is also safe because it encrypts them.

You and your team can safely access the environment variables for the development environment with the following CLI command.

$ vercel env pull

Assuming you have already connected with and authenticated yourself for the current project, this command will fetch the env vars and write them to the .env file.

If the env vars are ever updated, you can run the command again and it will rewrite the local file.