Welcome to the GitKraken CLI — an AI-powered, premium developer experience that enhances Git workflows across any repository.

GitKraken CLI is available on macOS, Windows, and Unix systems.
Documentation
Check out the installation instructions and examples below. To view full command references, see the GitKraken CLI documentation.
Installation
macOS
Install gk
using Homebrew:
brew install gitkraken-cli
Or download a binary from the releases page:
mv ~/Downloads/gk /usr/local/bin/gk
Unix / Ubuntu
Snap
Install via Snap:
sudo snap install gitkraken-cli
Downloadable Binary
From the releases page:
mv ~/Downloads/gk /usr/local/bin/gk
Alternatively:
mkdir "$HOME/cli"
mv ~/Downloads/gk "$HOME/cli"
export PATH="$HOME/gk:$PATH"
Install .deb
or .rpm
packages:
sudo apt install ./gk.deb
or
sudo rpm -i ./gk.rpm
Windows
Install via Winget:
winget install gitkraken.cli
Or download from the releases page, move gk.exe
to your chosen directory, and update your system PATH:
- Search for Environment Variables.
- Click Edit the system environment variables.
- Click Environment Variables….
- In System Variables, locate or create the PATH variable.
- Append the path to
gk.exe
.
Troubleshooting
Oh-My-Zsh alias conflict
Oh-My-Zsh may alias gitk
as gk
. To remove the alias:
unalias gk
Get Started with GitKraken CLI
GitKraken CLI works out of the box without requiring login. For advanced features such as AI commit and PR generation, cloud workspace support, and integration sync, log in to your GitKraken account:
gk auth login
This command opens your default browser to complete authentication.
Set Your GitKraken Organization
To verify your current organization:
gk organization list
Set your organization (required for AI features):
gk organization set <ORG_NAME>

gk organization list
to confirm and set the correct GitKraken Organization.Synchronize Your Integrations
Once authenticated and your organization is set, synchronize integrations:
gk provider list --sync
To add a provider manually:
gk provider add
See gk provider add --help
for available options.
Supported integrations include GitHub, GitLab, and Jira.
Load Your Repositories
To work within a GitKraken workspace:
- List available workspaces:
gk workspace list
- Set your desired workspace:
gk workspace set <NAME>
- Clone a repository into the workspace:
gk ws clone <name> <root-path>
