Skip to content

DevToolsPlugin opens browser when running CLI commands #1722

@garrytrinder

Description

@garrytrinder

Description

When a devproxyrc.json file in the project has the DevToolsPlugin enabled, running Dev Proxy CLI commands (e.g., devproxy jwt create) causes the DevToolsPlugin to be invoked, which opens a browser and navigates to the dev tools URL.

Expected behavior

CLI commands like devproxy jwt create should execute without triggering plugins. These commands don't require the proxy to be running and shouldn't invoke plugin lifecycle events.

Actual behavior

The DevToolsPlugin is invoked when executing CLI commands, causing an unwanted browser window to open and navigate to the dev tools URL.

Steps to reproduce

  1. Create a devproxyrc.json with the DevToolsPlugin enabled
  2. Run a CLI command like devproxy jwt create
  3. Observe that a browser window opens navigating to the dev tools URL

Additional context

This is not a crash or error, but an annoying behavior that disrupts the developer workflow when using CLI commands.

Metadata

Metadata

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions