lighthouse:tldr:694f6
lighthouse: Generate a report using the browser in headless mode without logging to `stdout`.
$ lighthouse --quiet --chrome-flags="${--headless}" ${https:--example-com}
try on your machine
The given command is using the tool "Lighthouse" to perform a website audit with certain configurations.
Here is a breakdown of each part of the command:
lighthouse
: This is the main command that executes the Lighthouse tool.--quiet
: This flag sets Lighthouse to only display error messages and final results, suppressing any other output.--chrome-flags="${--headless}"
: This flag passes a specific set of flags to the underlying Chrome browser. In this case, it enables the headless mode (a mode where Chrome runs without a graphical user interface).${https:--example-com}
: This is the URL being audited. It should be replaced with the actual URL you want to audit. Make sure to remove the${}
around it if you're directly running the command in the terminal.
To summarize, this command runs Lighthouse with a quiet mode, runs Chrome in headless mode, and performs a website audit on the specified URL.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.