Giter VIP home page Giter VIP logo

cli's Introduction

PageSpeed Green official Command Line Client (CLI)

codecov

The CLI is for integration with PageSpeed Green service. It can be used for integration with CD/CI pipeline that automatically tracks the code changes for web performance degradations.

Version 1.0.x has two features:

  • sending task for running audit for a specific webpage that is already added to PageSpeed Green

  • sending multiple tasks for running audit for all webpages that are already added to PageSpeed Green

Installation

npm i -g pagespeed-green

Usage

pagespeed-green <cmd> [options]

Commands

pagespeed-green audit ( run audit for a page or all in a specific region )

Options

--token, -t ( access token for your pagespeed.green account [required] )

--region, -r ( region code for running audit in [required] [choices: "AU-SYD", "EU-WEST", "US-WEST"] )

--url ( URL of a Page for audit. Eg. --url=test.com/about or --url=https://test.com/about )

--all ( run audit for all pages in specified region )

-h, --help ( show help )

--version, -v ( show version number )

Examples

Run an audit for all webpages in a region

pagespeed-green audit --token=90416a72-0925-11ea-8514-0242ac130002 --region=AU-SYD --all

Run an audit for a webpage in a region

pagespeed-green audit --token=90416a72-0925-11ea-8514-0242ac130002 --region=AU-SYD --url=https://pagespeed.green/web-performance-blog

cli's People

Contributors

dependabot[bot] avatar olex-green avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.