Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lhci/cli

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lhci/cli

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
155K
decreased by-28.57%
Maintainers
2
Weekly downloads
 
Created

What is @lhci/cli?

@lhci/cli is a command-line interface for Lighthouse CI, a tool for running Lighthouse audits on your web applications and tracking their performance over time. It allows you to set up, run, and manage Lighthouse CI in your CI/CD pipeline.

What are @lhci/cli's main functionalities?

Running Lighthouse CI

This command runs the Lighthouse CI autorun, which automatically sets up and runs Lighthouse audits on your web application. It is useful for integrating performance checks into your CI/CD pipeline.

npx @lhci/cli autorun

Collecting Data

This command collects Lighthouse reports for the specified URL. It can be used to gather performance data for different pages of your web application.

npx @lhci/cli collect --url=https://example.com

Uploading Data

This command uploads the collected Lighthouse reports to a specified target, such as temporary public storage or a custom server. It is useful for sharing and storing performance data.

npx @lhci/cli upload --target=temporary-public-storage

Setting Up Server

This command starts a Lighthouse CI server on the specified port. The server can be used to store and visualize Lighthouse reports over time.

npx @lhci/cli server --port=9001

Running Assertions

This command runs assertions based on Lighthouse scores and configurations. It is useful for enforcing performance budgets and ensuring that your web application meets certain performance criteria.

npx @lhci/cli assert --preset=lighthouse:recommended

Other packages similar to @lhci/cli

FAQs

Package last updated on 12 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc