Cyclop CLI
CLI to run Lighthouse-CLI multiple times, get aggregated value, and generate a raw report for you.
Installation
$ npm i -g cyclop-cli
$ yarn add -g cyclop-cli
$ pnpm i -g cyclop-cli
Usage
Version Check
$ cyclop-cli -v
$ cyclop-cli --version
Help Command
$ cyclop-cli -h
$ cyclop-cli --help
Interactive Command
$ cyclop-cli interactive
CLI Command
$ cyclop-cli cli -u=YOUR_URL --n=3 -c=cookieA=valueA -c=cookieB=valueB
Available Arguments on CLI
Argument | Alias | Description | Data Type | Default Value |
---|
--url | -u | URL to be tested | String | required |
--num | -n | Number do you want to run the job | Number | 1 |
--desktop | -d | Use desktop device instead of mobile | Boolean | false |
--show-ui | -ui | Show the browser UI when testing | Boolean | false |
--raw | -r | Generate raw report | Boolean | false |
--cookie | -c | Additional cookies pair (key=value) | Array | empty |
Use latest configuration
$ cyclop-cli file ./config.json
The root path will refer to ./cyclop-cli-reports/{YOUR_CONFIG_FILE}
Maintainers
© 2019 {code} by Web Platform Team @ Tokopedia