Skip to content

Commit

Permalink
docs(env-file): improve document description
Browse files Browse the repository at this point in the history
Signed-off-by: Black-Hole1 <bh@bugs.cc>
  • Loading branch information
BlackHole1 committed Jul 31, 2023
1 parent 170a786 commit c67ef7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/source/markdown/options/env-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
####> are applicable to all of those.
#### **--env-file**=*file*

Read in a line-delimited file of environment variables.
Read the environment variables from the file, supporting prefix matching: `KEY*`, as well as multiline values in double quotes and single quotes, but not multiline values in backticks.
The env-file will ignore comments and empty lines. And spaces or tabs before and after the KEY.
If an invalid value is encountered, such as only an `=` sign, it will be skipped. If it is a prefix match (`KEY*`), all environment variables starting with KEY on the host machine will be loaded.
If it is only KEY (`KEY`), the KEY environment variable on the host machine will be loaded.
Compatible with the `export` syntax in **dotenv**, such as: `export KEY=bar`.

0 comments on commit c67ef7c

Please sign in to comment.