(24)
https://qiita.com/cointoss1973/items/54ce4967ed2d09c3bbc1
https://github.com/cli/cli/blob/trunk/docs/install_linux.md
https://qiita.com/ryo2132/items/2a29dd7b1627af064d7b
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/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 -y
gh --version
gh auth login
gh --help
gh repo list
gh repo create repo20240529 --public --clone --add-readme
gh repo view repo20240529
cd repo20240529
gh issue list
gh pr list
(12)
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/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 -y
gh --version
gh auth login
gh --help
gh repo list
gh repo create repo20240529 --public --clone --add-readme
gh repo view repo20240529
cd repo20240529
gh issue list
gh pr list
(RL9)
sudo dnf install 'dnf-command(config-manager)'
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh
gh --version
gh auth login
gh --help
gh repo list
gh repo create repo20240529 --public --clone --add-readme
gh repo view repo20240529
cd repo20240529
gh issue list
gh pr list
- Windows Server
(2022)
https://zenn.dev/torihazi/articles/882ab5c2b14850
Gitインストール必要
gh --version
gh auth login
gh --help
gh repo list
gh repo create repo20240529 --public --clone --add-readme
gh repo view repo20240529
cd repo20240529
gh issue list
gh pr list