apiary-cli v0.1.1
apiary-cli
A command-line client for Apiary API.
Installing
Using npm:
$ npm install --global apiary-cliUsing docker:
$ docker run --rm bugyik/apiary-cli --helpUsage
$ 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
--beareroption. There is also authentication token and this should be used using--tokenoption. Both of them you can store intotmp/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 upTIP: 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 shNOTE: Assumes
docker-composer upwas finished.
Tests
$ npm run mock
$ npm run testTests & Code Coverage
$ npm run coverageCoding Style
$ npm run csLicense
MIT @ Petr Bugyík