Skip to content

Installing GitHub CLI

David Carpenter edited this page Jul 31, 2022 · 2 revisions

Flappy Duck and SEC uses the GitHub CLI to interact with GitHub repositories.

Installing on WSL and Linux (Ubuntu)

Run the following commands:

curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh

If you ever want to update the GitHub CLI, you can simply run sudo apt update && sudo apt upgrade in the future.

Installing on Mac OS

Run the following command:

brew install gh
Clone this wiki locally