apiary-cli
v0.1.1
Published
A command-line client for Apiary API
Downloads
14
Readme
apiary-cli
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 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 [email protected]: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