Skip to main content
The Lighthouse CLI is the most flexible way to run audits. It exposes all configuration options as command-line flags and supports multiple output formats.

Installation

Basic usage


Logging flags


Configuration flags

--gather-mode and --audit-mode can be combined as -GA to run the full audit while also saving artifacts to disk for later re-analysis.

Output flags

Output path behavior


Other flags


Usage examples


Lifecycle (gather/audit) mode

Separate the gather and audit phases to reuse collected artifacts or integrate with external tools.
When using -A (audit-only mode), Lighthouse skips the browser entirely and reads artifacts from disk. The URL argument is still required for report metadata but no network request is made.

Connecting to an existing Chrome instance

To audit a page that requires authentication or a specific browser state, launch Chrome manually with chrome-debug (installed globally alongside the CLI), log in, then point Lighthouse at the running instance.

Real device testing

Disable emulation when auditing against a real connected Android device via ADB port forwarding.