Lens commands
Use the lens command to start the local traffic inspector, open the findings dashboard in your browser, and manage the inspector on your machine. To view findings in the terminal, run passport to open the terminal dashboard.
passport lens
Usage
Commands
passport lens run
Run one command through a temporary local proxy. Use this to inspect a single command’s API traffic and credential usage without setting up environment variables or running the traffic inspector in the background. The proxy starts, intercepts traffic for the duration of the command, then stops.
Usage
Options
Scan request bodies for secrets in addition to headers and URLs.
Stream findings as JSON to stderr. Secret values are masked in the output.
Example
passport lens start
Start a long-lived background process that observes traffic across multiple commands and shells. Unlike passport lens run, which wraps a single command, this enables you to point any tool at the inspector and review findings at any time.
Usage
Options
Port to listen on.
Scan request bodies for secrets in addition to headers and URLs.
Start the traffic inspector without opening the report in the browser.
To configure your shell to route traffic through the proxy, see passport lens env.
passport lens status
Report the traffic inspector state and finding count.
Usage
Options
Output status as JSON instead of formatted text.
Example output
passport lens report
Serve the findings report at a local URL and open it in your browser.
Usage
Options
Port to serve on. Defaults to an available port.
Print the report URL without opening it in the browser.
Examples
passport lens env
Print the proxy environment variables that tell curl and other HTTP clients to route traffic through the local proxy.
Usage
Route traffic through the proxy
To route traffic through the proxy, follow the steps in Route traffic through the proxy.
passport lens stop
Stop the traffic inspector.
Usage
passport lens clean
Remove certificate-authority material left by an unclean shutdown.