LinuxCommandLibrary

lighthouse

google's automated web auditing tool

TLDR

Audit a URL

$ lighthouse [https://example.com]
copy
Output to specific file
$ lighthouse [https://example.com] --output-path [report.html]
copy
Output as JSON
$ lighthouse [https://example.com] --output json
copy
Audit specific categories
$ lighthouse [https://example.com] --only-categories=performance,accessibility
copy
Use headless Chrome
$ lighthouse [https://example.com] --chrome-flags="--headless"
copy
Set viewport
$ lighthouse [https://example.com] --screenEmulation.width=[1920]
copy

SYNOPSIS

lighthouse url [options]

DESCRIPTION

lighthouse is Google's automated web auditing tool. Tests performance, accessibility, best practices, SEO, and progressive web app features. Generates detailed reports with improvement recommendations. Simulates mobile devices by default.

PARAMETERS

--output format

Output format (html, json, csv).
--output-path file
Path to save report.
--only-categories list
Categories to audit.
--chrome-flags flags
Chrome launch flags.
--preset preset
Audit preset (desktop, perf).
--view
Open report in browser.
--quiet
Suppress output.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community