Skip to content

docs: show how to choose a dotenv file in the CLI - #757

Open
Mohamedajab wants to merge 1 commit into
theskumar:mainfrom
Mohamedajab:docs/cli-file-selection
Open

Mohamedajab wants to merge 1 commit into
theskumar:mainfrom
Mohamedajab:docs/cli-file-selection

Conversation

@Mohamedajab

Copy link
Copy Markdown

Add a short example showing how to choose a file with the CLI's --file option. Explain that the default is .env in the current working directory and that the CLI does not search parent directories.

Checked the example with a real Python child process, the default file in the current directory, and a missing local .env with another .env in the parent directory. All three checks passed. The CLI test module passed 53 tests with one skip on Windows / Python 3.14, using Git's printenv on PATH. Click reported existing isolated_filesystem deprecation warnings. git diff --check passed.

Documentation only. I did not run the full library suite or build the documentation site.

Signed-off-by: Mohamed Ajab <mohamedajab8@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant