Skip to content

Conversation

@bbc2
Copy link
Collaborator

@bbc2 bbc2 commented Jan 11, 2026

Changes for users:

  • (BREAKING) Forward flags passed after dotenv run to the given command instead of interpreting them.
    • This means that an invocation such as dotenv run ls --help will show the help page of ls instead of that of dotenv run.
    • To pass flags to dotenv run itself, pass them right after run: dotenv run --help or dotenv run --override ls.
    • As usual, generic options should be passed right after dotenv: dotenv --file path/to/env run ls

This supersedes #592 which only fixes this problem for commands with one component.

Changes for users:

- (BREAKING) Forward flags passed after `dotenv run` to the given
  command instead of interpreting them.
    - This means that an invocation such as `dotenv run ls --help` will
      show the help page of `ls` instead of that of `dotenv run`.
    - To pass flags to `dotenv run` itself, pass them right after `run`:
      `dotenv run --help` or `dotenv run --override ls`.
    - As usual, generic options should be passed right after `dotenv`:
      `dotenv --file path/to/env run ls`
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