octocat-cli
v0.0.0-pre.4
Published
A CLI for the GitHub API
Downloads
10
Readme
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
forcanjs
org and indent the output.
- Get all
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