Skip to content

imaustink/octocat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Setup

Upon running the first time, Octocat will ask for a GiHub Access Token. Once a token is entered, it will ask you to create a password. The token will be encrypted with this password, using AES192, and any subsequent runs will only need your password.

Usage

  • $ octocat -e repos -m getForOrg -d '{"org": "skunkworks"}' --pretty
    • Get all repos for skunkworks 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'}
-p, --pass [password]      A password to unlock the token file
--meta                     Include meta data (headers) in the output
--debug                    Enabled logging
--pretty                   Indent output
-h, --help                 output usage information

About

A CLI for the GitHub API

Resources

License

Stars

Watchers

Forks

Packages

No packages published