Skip to content

Instantly share code, notes, and snippets.

@syoh
Created February 21, 2024 21:10
Show Gist options
  • Save syoh/dc7b8a2beb57f98e49b92eddc0da2967 to your computer and use it in GitHub Desktop.
Save syoh/dc7b8a2beb57f98e49b92eddc0da2967 to your computer and use it in GitHub Desktop.
  1. Download gh tool:
    GH_VERSION=2.30.0
    GH_URL=https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_amd64.tar.gz
    GH_DIR=/opt/conda/bin
    wget "${GH_URL}" -O - | tar xvzf - -C ${GH_DIR} gh_${GH_VERSION}_linux_amd64/bin/gh --strip-components=2
    After this step, gh is located in /opt/conda/bin/gh.
  2. Login to GitHub:
    gh auth login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment