gh auth refresh -s repo,workflow

Category: GitHub CLI

gh auth refresh -s repo,workflow

Add scopes to the current token

-s requests additional scopes, here repo for full repository access and workflow for updating Actions files. Scopes are the permission grants attached to your token. Refresh interactively confirms via the browser and merges the new scopes in.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.