mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Share Development Environment Variables Via CLI as vercel til
This commit is contained in:
@@ -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).
|
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)
|
- [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)
|
- [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
|
### Vim
|
||||||
|
|
||||||
|
|||||||
19
vercel/share-development-environment-variables-via-cli.md
Normal file
19
vercel/share-development-environment-variables-via-cli.md
Normal file
@@ -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.
|
||||||
Reference in New Issue
Block a user