GH-AUTH-REFRESH(1) GitHub CLI manual GH-AUTH-REFRESH(1) (NAME) gh-auth-refresh - (SYNOPSIS) gh auth refresh [flags] (DESCRIPTION) (scopes) . --scopes gh . . --remove-scopes gh . (idempotent) . ( repo read:org gist) . --reset-scopes gh . gh auth status gh auth switch . OAuth : . (OPTIONS) -c, --clipboard OAuth -h, --hostname --insecure-storage -r, --remove-scopes gh --reset-scopes -s, --scopes gh (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # write:org read:public_key $ gh auth refresh --scopes write:org,read:public_key # $ gh auth refresh # delete_repo $ gh auth refresh --remove-scopes delete_repo # $ gh auth refresh --reset-scopes # OAuth $ gh auth refresh --clipboard (SEE ALSO) gh-auth(1) Sep 2026 GH-AUTH-REFRESH(1)