Skip to content

Print port number when starting Dev Proxy in detach mode #1590

@waldekmastykarz

Description

@waldekmastykarz

When you start Dev Proxy using devproxy --port 0 --output json --detach it shows the following output:

Dev Proxy started in background.

  PID:       6456
  API URL:   http://127.0.0.1:8897
  Log file:  C:\Users\scope\AppData\Local\dev-proxy\logs\devproxy-6456-2026-03-05-14-22-42.log

Use 'devproxy status' to check status.
Use 'devproxy logs' to view logs.
Use 'devproxy stop' to stop.

--port 0 means that a random port should be assigned to Dev Proxy. The output however doesn't show which port was assigned making it impossible to use Dev Proxy.

Between PID and API URL print the actual proxy URL and assigned port (even when explicitly specified through args)

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions