datahub-cli

0.6.3 • Public • Published

Build Status XO code style Issues

Usage

Install

To install datahub-cli, you need to download the package from the releases section.

Once it is downloaded and installed run the following command to see all available options:

$ data --help

Configuration

Configuration is in ~/.config/datahub/config.json. In general, you should not need to edit this by hand. You can also override any variables in there using environment variables or on the command line by using the same name e.g.

$ data login --api https://api-testing.datahub.io

NB: you can set a custom location for the config.json config file using the DATAHUB_JSON environment variable e.g.:

export DATAHUB_JSON=~/.config/datahub/my-special-config.json

For developers

You need to have Node.js version >7.6

Install

$ npm install

Running tests

We use Ava for our tests. For running tests use:

$ [sudo] npm test

To run tests in watch mode:

$ [sudo] npm run watch:test

Lint

We use XO for checking our code for JS standard/convention/style:

# When you run tests, it first runs lint: 
$ npm test
 
# To run lint separately: 
$ npm run lint # shows errors only 
 
# Fixing erros automatically: 
$ xo --fix

Readme

Keywords

Package Sidebar

Install

npm i datahub-cli

Weekly Downloads

1

Version

0.6.3

License

ISC

Last publish

Collaborators

  • anuveyatsu
  • datahubio
  • mikanebu
  • rufuspollock