Catalogue des Commandes 11/05/2026 10:00:00 angularforall.com

- Commandes GitHub CLI (gh) : guide complet

Github-Cli Gh Git Devops Pull-Request Github-Actions Workflow Terminal Open-Source Issue-Tracker Release Repository Cli Automation

Maîtrisez GitHub CLI (gh) pour gérer dépôts, pull requests, issues, workflows et releases directement depuis le terminal sans ouvrir le navigateur.

gh auth login
Description :

Authentifie GitHub CLI avec votre compte GitHub

Options :
  • --hostname
  • --scopes
  • --web
  • -w
  • --with-token
gh auth logout
Description :

Déconnecte le compte GitHub actif

Options :
  • --hostname
  • --user
gh auth status
Description :

Affiche le statut de l'authentification GitHub

Options :
  • --hostname
  • --show-token
  • -t
gh auth refresh
Description :

Actualise les jetons d'accès GitHub

Options :
  • --hostname
  • --insecure-storage
  • --remove-scopes ⚠️
  • --reset-scopes ⚠️
  • --scopes
  • -s
gh repo clone
Description :

Clone un dépôt GitHub en local

Options :
  • --
  • -p
gh repo create
Description :

Crée un nouveau dépôt GitHub

Options :
  • --add-readme ⚠️
  • --clone
  • -c
  • --description
  • -d
  • --disable-issues
  • --disable-wiki
  • --gitignore
  • -g
  • --homepage
  • -h
  • --include-all-branches
  • --internal
  • --license
  • -l
  • --private
  • --public
  • --push
  • -p
  • --remote ⚠️
  • -r ⚠️
  • --source
  • -s
  • --template
  • -t
gh repo fork
Description :

Forke un dépôt GitHub dans votre compte

Options :
  • --clone
  • --default-branch-only
  • --fork-name ⚠️
  • --org
  • --remote ⚠️
  • --remote-name ⚠️
gh repo view
Description :

Affiche les détails d'un dépôt GitHub

Options :
  • --branch
  • -b
  • --json
  • --jq
  • -q
  • --template
  • -t
  • --web
  • -w
gh repo list
Description :

Liste les dépôts d'un utilisateur ou d'une organisation

Options :
  • --archived
  • --fork ⚠️
  • --json
  • --jq
  • -q
  • --language
  • -l
  • --limit
  • -L
  • --no-archived
  • --private
  • --public
  • --source
  • --template
  • -t
  • --topic
  • --visibility
gh pr create
Description :

Crée une pull request sur GitHub

Options :
  • --assignee
  • -a
  • --base
  • -B
  • --body
  • -b
  • --body-file ⚠️
  • -F ⚠️
  • --draft
  • -d
  • --fill ⚠️
  • -f ⚠️
  • --fill-first ⚠️
  • --fill-verbose ⚠️
  • --head
  • -H
  • --label
  • -l
  • --milestone
  • -m
  • --no-maintainer-edit
  • --project
  • -p
  • --recover ⚠️
  • --reviewer ⚠️
  • -r ⚠️
  • --template
  • -T
  • --title
  • -t
  • --web
  • -w
gh pr merge
Description :

Fusionne une pull request GitHub

Options :
  • --admin
  • -A
  • --auto
  • --body
  • -b
  • --body-file ⚠️
  • -F ⚠️
  • --delete-branch
  • -d
  • --disable-auto
  • --match-head-commit
  • -c
  • --merge
  • -m
  • --rebase ⚠️
  • -r ⚠️
  • --squash
  • -s
  • --subject
  • -t
gh pr list
Description :

Liste les pull requests d'un dépôt

Options :
  • --app
  • --assignee
  • -a
  • --author
  • -A
  • --base
  • -b
  • --draft
  • --head
  • -H
  • --json
  • --jq
  • -q
  • --label
  • -l
  • --limit
  • -L
  • --search
  • -S
  • --state
  • -s
  • --template
  • -t
  • --web
  • -w
gh pr checkout
Description :

Passe sur la branche d'une pull request

Options :
  • --branch
  • -b
  • --detach
  • --force ⚠️
  • -f ⚠️
  • --recurse-submodules ⚠️
gh pr review
Description :

Soumet une révision sur une pull request

Options :
  • --approve
  • -a
  • --body
  • -b
  • --body-file ⚠️
  • -F ⚠️
  • --comment
  • -c
  • --request-changes ⚠️
  • -r ⚠️
gh pr diff
Description :

Affiche le diff d'une pull request

Options :
  • --color
  • --name-only
  • --patch
  • -p
  • --web
  • -w
gh issue create
Description :

Crée une nouvelle issue GitHub

Options :
  • --assignee
  • -a
  • --body
  • -b
  • --body-file ⚠️
  • -F ⚠️
  • --editor
  • -e
  • --label
  • -l
  • --milestone
  • -m
  • --project
  • -p
  • --recover ⚠️
  • --template
  • -T
  • --title
  • -t
  • --web
  • -w
gh issue list
Description :

Liste les issues d'un dépôt

Options :
  • --app
  • --assignee
  • -a
  • --author
  • -A
  • --json
  • --jq
  • -q
  • --label
  • -l
  • --limit
  • -L
  • --mention
  • -m
  • --milestone
  • --search
  • -S
  • --state
  • -s
  • --template
  • -t
  • --web
  • -w
gh issue close
Description :

Ferme une ou plusieurs issues GitHub

Options :
  • --comment
  • -c
  • --reason ⚠️
  • -r ⚠️
gh workflow run
Description :

Déclenche manuellement un workflow GitHub Actions

Options :
  • --field ⚠️
  • -f ⚠️
  • --json
  • --jq
  • -q
  • --raw-field ⚠️
  • -F ⚠️
  • --ref ⚠️
  • -r ⚠️
  • --template
  • -t
gh workflow list
Description :

Liste les workflows GitHub Actions du dépôt

Options :
  • --all
  • -a
  • --json
  • --jq
  • -q
  • --limit
  • -L
  • --template
  • -t
gh run list
Description :

Liste les exécutions de workflows GitHub Actions

Options :
  • --branch
  • -b
  • --commit
  • -c
  • --created
  • --event
  • -e
  • --exit-status
  • --failed ⚠️
  • --json
  • --jq
  • -q
  • --limit
  • -L
  • --repo ⚠️
  • -R ⚠️
  • --status
  • -s
  • --template
  • -t
  • --user
  • -u
  • --workflow
  • -w
gh run watch
Description :

Surveille en temps réel une exécution de workflow

Options :
  • --exit-status
  • --interval
  • -i
gh release create
Description :

Crée une nouvelle release GitHub

Options :
  • --assets
  • --discussion-category
  • --draft
  • -d
  • --generate-notes
  • --latest
  • --no-fail-on-no-commits ⚠️
  • --notes
  • -n
  • --notes-file ⚠️
  • -F ⚠️
  • --notes-start-tag
  • --prerelease
  • -p
  • --target
  • --title
  • -t
  • --verify-tag
gh release list
Description :

Liste les releases d'un dépôt GitHub

Options :
  • --exclude-drafts
  • --exclude-pre-releases ⚠️
  • --json
  • --jq
  • -q
  • --limit
  • -L
  • --order
  • -O
  • --template
  • -t
gh release download
Description :

Télécharge les assets d'une release GitHub

Options :
  • --archive
  • -A
  • --clobber
  • --dir
  • -D
  • --jq
  • -q
  • --json
  • --output
  • -O
  • --pattern
  • -p
  • --skip-existing
  • --template
  • -t
gh secret set
Description :

Définit un secret dans un dépôt ou organisation GitHub

Options :
  • --app
  • -a
  • --body
  • -b
  • --env
  • -e
  • --no-store
  • --org
  • -o
  • --repos ⚠️
  • -r ⚠️
  • --user
  • -u
  • --visibility
  • -v
gh secret list
Description :

Liste les secrets d'un dépôt ou organisation

Options :
  • --app
  • -a
  • --env
  • -e
  • --org
  • -o
  • --user
  • -u
gh gist create
Description :

Crée un nouveau Gist GitHub

Options :
  • --desc
  • -d
  • --filename ⚠️
  • -f ⚠️
  • --public
  • -p
  • --web
  • -w
gh api
Description :

Effectue une requête directe vers l'API GitHub REST ou GraphQL

Options :
  • --cache
  • --field ⚠️
  • -f ⚠️
  • --header
  • -H
  • --hostname
  • --input
  • --jq
  • -q
  • --method
  • -X
  • --paginate
  • --preview
  • --raw-field ⚠️
  • -F ⚠️
  • --silent
  • --slurp
  • --template
  • -t
  • --verbose
gh browse
Description :

Ouvre le dépôt dans le navigateur web

Options :
  • --branch
  • -b
  • --commit
  • -c
  • --no-browser
  • -n
  • --projects
  • -p
  • --releases ⚠️
  • -r ⚠️
  • --repo ⚠️
  • -R ⚠️
  • --settings
  • -s
  • --wiki
  • -w
gh search repos
Description :

Recherche des dépôts sur GitHub

Options :
  • --archived
  • --created
  • --followers ⚠️
  • --forks ⚠️
  • --good-first-issues ⚠️
  • --help-wanted-issues
  • --include-forks ⚠️
  • --json
  • --jq
  • -q
  • --language
  • -l
  • --license
  • --limit
  • -L
  • --match
  • -m
  • --number-topics
  • --order
  • -O
  • --owner
  • --size
  • --sort
  • -s
  • --stars
  • --template
  • -t
  • --topic
  • --updated
  • --visibility
  • --web
  • -w
gh search issues
Description :

Recherche des issues et pull requests sur GitHub

Options :
  • --app
  • --archived
  • --assignee
  • --author
  • --closed
  • --commenter
  • --comments
  • --created
  • --include-prs
  • --interactions
  • --involves
  • --json
  • --jq
  • -q
  • --label
  • --language
  • --limit
  • -L
  • --locked
  • --match
  • -m
  • --mentions
  • --milestone
  • --no-assignee
  • --no-label
  • --no-milestone
  • --no-project
  • --order
  • -O
  • --owner
  • --project
  • --reactions ⚠️
  • --repo ⚠️
  • --sort
  • -s
  • --state
  • --template
  • -t
  • --updated
  • --visibility
  • --web
  • -w
gh alias set
Description :

Crée un alias pour une commande gh

Options :
  • --clobber
  • --shell
  • -s
gh extension install
Description :

Installe une extension GitHub CLI

Options :
  • --force ⚠️
  • --pin
gh extension list
Description :

Liste les extensions GitHub CLI installées

gh codespace ssh
Description :

Se connecte en SSH à un codespace GitHub

Options :
  • --codespace
  • -c
  • --config
  • --debug
  • -d
  • --debug-file ⚠️
  • --profile
  • --server-port
gh codespace list
Description :

Liste vos codespaces GitHub

Options :
  • --json
  • --jq
  • -q
  • --limit
  • -L
  • --org
  • -o
  • --repo ⚠️
  • -R ⚠️
  • --template
  • -t
  • --user
  • -u
  • --web
  • -w
gh label create
Description :

Crée une étiquette dans un dépôt GitHub

Options :
  • --color
  • -c
  • --description
  • -d
  • --force ⚠️
  • -f ⚠️
gh project list
Description :

Liste les projets GitHub d'un utilisateur ou organisation

Options :
  • --closed
  • --format ⚠️
  • --jq
  • -q
  • --limit
  • -L
  • --owner
  • --template
  • -t
  • --web
  • -w
gh cache list
Description :

Liste les caches GitHub Actions d'un dépôt

Options :
  • --json
  • --jq
  • -q
  • --key
  • -k
  • --limit
  • -L
  • --order
  • -O
  • --ref ⚠️
  • -r ⚠️
  • --sort
  • -s
  • --template
  • -t

Partager