GitHub CLI (gh) 逆引き
初期設定
gh auth login
状態確認
gh auth status
リポジトリ操作
リポジトリ一覧
gh repo list
リポジトリ作成
gh repo create 名前 --public --clone
リポジトリ削除
gh repo delete owner/repo --yes
ブラウザで開く
gh repo view --web
Issue(課題)
Issue一覧
gh issue list
Issue作成
gh issue create --title "タイトル" --body "本文"
Issue詳細
gh issue view 123
Issue閉じる
gh issue close 123
自分の担当Issue
gh issue list --assignee @me
Pull Request
PR一覧
gh pr list
PR作成
gh pr create --title "タイトル" --body "本文"
PR詳細
gh pr view 456
PRをマージ
gh pr merge 456 --squash
PRのチェック状態
gh pr checks 456
ローカルにチェックアウト
gh pr checkout 456
Actions(CI/CD)
実行履歴
gh run list
特定の実行を確認
gh run view
リアルタイム監視
gh run watch
Gist
Gist作成
gh gist create file.txt --public
Gist一覧
gh gist list
便利な使い方
API直接叩く
gh api repos/owner/repo/issues
JSONで出力
gh issue list --json title,state,url
リリース作成
gh release create v1.0.0 --title "v1.0.0" --notes "変更内容"
← ガイド一覧に戻る