Add deploy to GitHub from command line.
Install with npm:
npm install -g add-deploy-key-to-github
Requirement: Node.js v6 >=
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/
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu