0.0.0-pre.4 • Published 7 years ago

octocat-cli v0.0.0-pre.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Octocat

Octocat is a CLI for the GitHub.com API. It's great for testing API calls and doing maintenance stuff.

Octocat CLI leverages the github package to handle API calls. For the complete API reference, visit their docs.

Install

  • $ npm i octocat-cli -g

Usage

  • $ octocat -e repos -m getForOrg -d '{"org": "canjs"}' --pretty - Get all repos for canjs org and indent the output.

Options

-V, --version              output the version number
-e, --endpoint [endpoint]  API endpoint, e.g. "repos"
-m, --method [method]      API method, e.g. "getForOrg"
-d, --data [data]          Data payload, e.g {org: 'skunkworks'}
--meta                     Include meta data (headers) in the output
--debug                    Enabled logging
--pretty                   Indent output
-h, --help                 output usage information