Socket
Socket
Sign inDemoInstall

@lhci/cli

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lhci/cli

[![npm version](https://badge.fury.io/js/%40lhci%2Fcli.svg)](https://badge.fury.io/js/%40lhci%2Fcli)


Version published
Weekly downloads
174K
decreased by-5.85%
Maintainers
0
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 20 Jun 2024

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc