apiary-cli

0.1.1 • Public • Published

apiary-cli

NPM info

build status docker pulls docker pulls

A command-line client for Apiary API.

Installing

Using npm:

$ npm install --global apiary-cli

Using docker:

$ docker run --rm bugyik/apiary-cli --help

Usage

$ apiary-cli --help

Usage: apiary-cli [options] [command]
 
  A command-line client for Apiary API
 
 
  Options:
 
    -V, --version         output the version number
    --api-host [apiHost]  set API host (default: https://api.apiary.io)
    --bearer [bearer]     set authorization token (default: XXX)
    --token [token]       set authentication token (default: YYY)
    -h, --help            output usage information
 
 
  Commands:
 
    user-api-list                      print a user's list of APIs from apiary.io
    publish-blueprint <api-subdomain>  publish an API Blueprint to apiary.io (requires input from STDIN)

NOTE: This project is in development process. If you want to use it, you have to manually obtain authorization token via POST /authorization and use --bearer option. There is also authentication token and this should be used using --token option. Both of them you can store into tmp/cache.json.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Developing

Pull Requests are welcome!

Do you hate contributing to projects where you have to install direct version of Node.js? I know there are tools like nvm but there is also Docker to rescue! To begin developing, you just need docker and docker-compose installed and do this:

$ git clone git@github.com:o5/apiary-cli.git && cd apiary-cli/
$ docker-compose up

TIP: If you're new to Docker, Docker Community Edition is the best choice for you

Do you need to go inside the container?

$ docker exec -it apiary-cli sh

NOTE: Assumes docker-composer up was finished.

Tests

$ npm run mock
$ npm run test

Tests & Code Coverage

$ npm run coverage

Coding Style

$ npm run cs

License

MIT @ Petr Bugyík

Readme

Keywords

none

Package Sidebar

Install

npm i apiary-cli

Weekly Downloads

4

Version

0.1.1

License

MIT

Unpacked Size

41.8 kB

Total Files

15

Last publish

Collaborators

  • o5