Skip to content

Commit 1fa0799

Browse files
committed
Update README
1 parent dbcfc64 commit 1fa0799

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# deploy-env
22
Deploy environment variables from `.env` and `.env-cmdrc.json` files to Vercel
33

4+
45
## Installation
56
``` bash
67
npm add -g deploy-env
78
```
89
> Note: `deploy-env` expects the Vercel CLI to be installed globally with `npm add -g vercel`
910
11+
1012
## Usage
1113
In your Vercel project directory:
1214

13-
Make at least one `.env.production`, `.env.preview`, or `.env.development` file with your environment variables in the following format:
15+
Make at least one `.env`, `.env.production`, `.env.preview`, or `.env.development` file with your environment variables in the following format:
1416
``` env
1517
API_KEY=top_secret_api_key
1618
...
@@ -40,6 +42,9 @@ deploy-env [production|preview|development] [ENV_VAR]...
4042
```
4143
> Note: You can use `dpl-env` as an alias for `deploy-env`
4244
45+
> If a `.env.[environment]` file doesn't exist when running: `deploy-env [environment]`, the `.env` file will be used as a fallback and deployed to the environment specified in the command
46+
47+
4348
## Examples
4449
Deploy all `preview` environment variables to the Preview deployment
4550
``` bash

0 commit comments

Comments
 (0)