Skip to content

Commit

Permalink
Add --no-expand to readme (#118)
Browse files Browse the repository at this point in the history
Include information about `--no-expand` from #86 in the readme.
  • Loading branch information
mdmower-csnw authored Oct 24, 2024
1 parent 425aae7 commit 6491c9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ APP_URL=http://${IP}:${PORT}
```
Using the above example `.env` file, `process.env.APP_URL` would be `http://127.0.0.1:1234`.

#### Disabling variable expansion
If your `.env` variables include values that should not be expanded (e.g. `PASSWORD="pas$word"`), you can pass flag `--no-expand` to `dotenv-cli` to disable variable expansion.

For example:
```bash
dotenv --no-expand <command>
```

### Variable expansion in the command

If your `.env` file looks like:
Expand Down

0 comments on commit 6491c9a

Please sign in to comment.