CLI and Programmatic Lighthouse
Learn to run Lighthouse audits from the command line and integrate its API into custom scripts and applications.
Beyond the Browser
You've likely used Lighthouse in your browser's DevTools. But what if you want to run audits automatically or integrate them into your workflow?
This lesson explores how to use Lighthouse from the command line (CLI) for quick checks and programmatically via its Node.js API for advanced automation.
Automate & Integrate
Running Lighthouse from the CLI or programmatically opens up powerful possibilities:
- Automation: Schedule regular audits without manual intervention.
- CI/CD Integration: Catch performance regressions early in your development pipeline.
- Custom Reports: Generate reports tailored to your specific needs.
- Large-Scale Testing: Audit many pages efficiently across a website.
All lessons in this course
- CLI and Programmatic Lighthouse
- Custom Audits and Assertions
- Integrating Lighthouse into CI/CD
- Performance Budgets with Lighthouse