Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update
  • Loading branch information
theskumar committed Mar 9, 2026
commit cf72b8521910a99cdf6ba7e3a2ee4e1072a64608
22 changes: 17 additions & 5 deletions docs/guides/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,28 @@ terminal.

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

```shell
pip install "python-dotenv[cli]"
```
=== "`pip`"

```shell
pip install "python-dotenv[cli]"
```

=== "`uv`"

The CLI can also be invoked as a Python module:
```shell
uv add "python-dotenv[cli]"
```

Verify the installation by checking the version:

```shell
python -m dotenv
dotenv --version
```

!!! info

The CLI can also be invoked as a Python module: `python -m dotenv`

## Set up your .env from the terminal

Use `set`, `get`, and `unset` to manage key-value pairs:
Expand Down
2 changes: 1 addition & 1 deletion src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def dotenv_values(
dotenv_path: Absolute or relative path to the .env file.
stream: `StringIO` object with .env content, used if `dotenv_path` is `None`.
verbose: Whether to output a warning if the .env file is missing.
interpolate: Whether to interpolate variables using POSIX variable expansion.
interpolate: Whether ``${VAR}`` references in values are resolved.
encoding: Encoding to be used to read the file.

If both *dotenv_path* and *stream* are ``None``, :func:`find_dotenv` is
Expand Down