Skip to content

Commit cf72b85

Browse files
committed
update
1 parent b97f793 commit cf72b85

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

docs/guides/cli.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,28 @@ terminal.
1111

1212
The CLI requires the `click` package. Install it with the `cli` extra:
1313

14-
```shell
15-
pip install "python-dotenv[cli]"
16-
```
14+
=== "`pip`"
15+
16+
```shell
17+
pip install "python-dotenv[cli]"
18+
```
19+
20+
=== "`uv`"
1721

18-
The CLI can also be invoked as a Python module:
22+
```shell
23+
uv add "python-dotenv[cli]"
24+
```
25+
26+
Verify the installation by checking the version:
1927

2028
```shell
21-
python -m dotenv
29+
dotenv --version
2230
```
2331

32+
!!! info
33+
34+
The CLI can also be invoked as a Python module: `python -m dotenv`
35+
2436
## Set up your .env from the terminal
2537

2638
Use `set`, `get`, and `unset` to manage key-value pairs:

src/dotenv/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def dotenv_values(
511511
dotenv_path: Absolute or relative path to the .env file.
512512
stream: `StringIO` object with .env content, used if `dotenv_path` is `None`.
513513
verbose: Whether to output a warning if the .env file is missing.
514-
interpolate: Whether to interpolate variables using POSIX variable expansion.
514+
interpolate: Whether ``${VAR}`` references in values are resolved.
515515
encoding: Encoding to be used to read the file.
516516
517517
If both *dotenv_path* and *stream* are ``None``, :func:`find_dotenv` is

0 commit comments

Comments
 (0)