1.1.9 • Published 4 years ago
github-pubkey-manager v1.1.9
gpm
gpm allows you to fetch public keys from GitHub users using their API. No token/authentication required. Windows isn't supported and probably never will be (create a PR/issue if you'd like to see support added otherwise I honestly don't give a damn).
Basic usage
gpm <command> [options]
Commands:
help [options] Show help
fetch [options] Fetches the public key from one or more GitHub users into the keyfile
Options:
-u, --user Specify the user (or users, comma seperated)
-o, --override Override the keyfile (default: append to keyfile)
-k, --keyfile Specify a custom keyfile (default: $HOME/.ssh/authorized_keys)
-v, --verbose Run with verbose logging
-q, --quiet Suppress all logging
For more information run
gpm help
Installation
1. The easy way (npm)
npm install github-pubkey-manager
or global
sudo npm install -g github-pubkey-manager
2. Custom via make (~/.local/bin)
I like to have my own binaries and scripts in ~/.local/bin for arbitrary reasons
Build dependencies: make, npm, node.js
Note: Make sure you add ~/.local/bin to your PATH variable!
git clone https://github.com/fr9ncis/gpm.git
cd gpm && make install
cd .. rm -r gpm/ # Clean up
This will create the following directory tree:
$HOME
│ ...
└───.local
│ ...
└───bin
│ | ...
│ │ gpm -> $HOME/.local/lib/gpm/gpm.js
└───lib
| ...
└───gpm
| gpm.js
| argv.js
| package.json
| package-lock.json
└───node_modules/