Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ $ dotenv list --format=json
$ dotenv run -- python foo.py
```

By default, the CLI reads `.env` from the current working directory. It does
not search parent directories. Use `--file` before the subcommand to choose
another file:

```shell
$ dotenv --file .env.development run -- python foo.py
```

Run `dotenv --help` for more information about the options and subcommands.

## File format
Expand Down