CmdID

CmdID / Commands

lighthouse

Analyze web applications and web pages. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Analyze web applications and web pages. Collects modern performance metrics and insights on developer best practices.

Generate an HTML report for a specific website and save it to a file in the current directory

lighthouse https://example.comIdentify

Generate a JSON report and print it

lighthouse --output json https://example.comIdentify

Generate a JSON report and save it to a specific file

lighthouse --output json --output-path path/to/file.json https://example.comIdentify

Generate a report using the browser in headless mode without logging to stdout

lighthouse --quiet --chrome-flags="--headless" https://example.comIdentify

Generate a report, using the HTTP header key/value pairs in the specified JSON file for all requests

lighthouse --extra-headers=path/to/file.json https://example.comIdentify

Generate a report for specific categories only

lighthouse --only-categories=performance,accessibility,best-practices,seo,pwa https://example.comIdentify

Generate a report with device emulation and all throttling disabled

lighthouse --screenEmulation.disabled --throttling-method=provided --no-emulatedUserAgent https://example.comIdentify

Display help

lighthouse --helpIdentify