metricly-cli v0.12.1

Metricly CLI
Metricly command line interface to the Metricly API.
This project originated from the awesome work done on netuitive-package-validator
Table of Contents
Installation
metricly is available as an OS specific binary or simple NPM installation.
OS Specific
Attached to the latest GitHub release there are binaries for each
Download the binary for your system, add it to your path, make it executable, and run metricly -h.
NPM
npm i -g metricly-cli
metricly -hProfiles
metricly supports the concept of profiles. You can run certain commands with --profile
metricly creates a default profile when you run metricly config
Creating a new profile
metricly config --profile new-profile
Using a profile
metricly --profile new-profile package list
to see if your command supports --profile see Verbose help
Formats
metricly supports a couple different formats for outputing the responses from Metricly API
- JSON: if you use
--format jsononlistandgetcommands thenmetriclywill format the response as json when printing to stdout - Text: by default,
metriclytries to print a nice sorted summary of names or titles along with an ID.
commands that support
--format jsonarelistandgetsee Verbose help
Commands
Help
metricly --help

Verbose help
You can get verbose help on specific commands
metricly package list --help --verbose
Development
npm i -g yarn
git clone https://github.com/metricly/metricly-cli.git
cd metricly-cli/
yarn
// Compile and run Node
yarn run compile
node js/bin/metricly.js
// Run directly with TypeScript
npm install -g ts-node
ts-node ts/bin/metricly.ts
// Do it in Docker
docker build -t metricly-cli .
docker run -it --entrypoint=/bin/bash metricly-cli
yarn run compile
node js/bin/metricly.js
or
npm install -g ts-node
ts-node ts/bin/metricly.tsTesting
// run tests
yarn test
// continuous testing
yarn run watch
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago