gk-login
This package enables to sign in to a GitKraken account from the command line, supporting multiple providers and GitKraken profiles.
It securely handles OAuth tokens, updates the GitKraken configuration, and manages encrypted secrets for both global and profile-specific authentication.
WE ARE NOT RESPONSIBLE FOR NUKING YOUR CONFIGURATION
The package will modify GitKraken's configuration file as well as secret files (global and profile-specific), and loss of configuration is a possible outcome, although we strive to make it as safe as possible.
Please back up your configuration before use.
Usage
txt
usage: .gk-login-wrapped [-h] [-p PROVIDER] [-P PROFILE_ID] [--token [TOKEN]]
[--token-file PATH] [--generate-completion SHELL]
[--debug] [-v]
Login to GitKraken from command line.
options:
-h, --help show this help message and exit
-p, --provider PROVIDER
provider to login with (available:
github,gitlab,bitbucket,azure,google)
-P, --profile PROFILE_ID
profile ID to use
--token [TOKEN] access token (literal string, '-' for stdin, or omit
value to read from stdin)
--token-file PATH path to file containing access token
--generate-completion SHELL
generate shell completion script (bash, zsh, fish)
--debug output debug information
-v, --version show program's version number and exit
Example: .gk-login-wrapped --provider=github --profile=defaultHow to Run
sh
# Using the raw Bash script
$ ./pkgs/login/script.shsh
# ...or using new Nix commands
$ nix run '.#login'sh
# ...or using classic Nix commands
$ nix-build ./pkgs -A login && ./result/bin/gk-loginsh
# ...or from the Nix development shell (nix develop / nix-shell)
$ gk-loginFor further details, refer to the actual script code.