Add deploy to GitHub from command line.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

add-deploy-key-to-github

Add deploy to GitHub from command line.

Install

Install with npm:

npm install -g add-deploy-key-to-github

Requirement: Node.js v6 >=

Usage

CLI usage

Usage
  $ add-deploy-key-to-github --repo azu/add-deploy-key-to-github --key path/to/key.pub --token $GH_TOKEN

Options
  --repo <owner>/<name>
  --key path to deploy key file(.pub)
  --token GitHub API token
  --read_only if it is set, deploy key as read_only key 
    Default: false (write)
  --debug debug print

Examples
  $ add-deploy-key-to-github --repo azu/add-deploy-key-to-github --key path/to/key.pub --token XXX

Get GitHub API Token from https://help.github.com/articles/creating-an-access-token-for-command-line-use/

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu