From a6d513138d8b490a2fe0e52df688ffe619818c9a Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Mon, 16 Nov 2020 19:25:21 -0600 Subject: [PATCH] Add Share Development Environment Variables Via CLI as vercel til --- README.md | 3 ++- ...velopment-environment-variables-via-cli.md | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 vercel/share-development-environment-variables-via-cli.md diff --git a/README.md b/README.md index 9509ca9..a02597e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud). -_960 TILs and counting..._ +_961 TILs and counting..._ --- @@ -944,6 +944,7 @@ _960 TILs and counting..._ - [Add Web Server Layer Redirects](vercel/add-web-server-layer-redirects.md) - [Naming Of The Vercel Config File](vercel/naming-of-the-vercel-config-file.md) +- [Share Development Environment Variables Via CLI](vercel/share-development-environment-variables-via-cli.md) ### Vim diff --git a/vercel/share-development-environment-variables-via-cli.md b/vercel/share-development-environment-variables-via-cli.md new file mode 100644 index 0000000..19c5eeb --- /dev/null +++ b/vercel/share-development-environment-variables-via-cli.md @@ -0,0 +1,19 @@ +# Share Development Environment Variables Via CLI + +[Vercel](https://vercel.com/)'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.