0.12.1 • Published 3 years ago

metricly-cli v0.12.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

alt text

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 -h

Profiles

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 json on list and get commands then metricly will format the response as json when printing to stdout
  • Text: by default, metricly tries to print a nice sorted summary of names or titles along with an ID.

commands that support --format json are list and get see Verbose help

Commands

Help

  • metricly --help

consolehelp

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.ts

Testing

// run tests yarn test // continuous testing yarn run watch

0.12.1

3 years ago

0.12.0

3 years ago

0.11.1

3 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.2

4 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago