1GH-AUTH-REFRESH(1)             GitHub CLI manual            GH-AUTH-REFRESH(1)
2
3
4

NAME

6       gh-auth-refresh - Refresh stored authentication credentials
7
8
9

SYNOPSIS

11       gh auth refresh [flags]
12
13
14

DESCRIPTION

16       Expand or fix the permission scopes for stored credentials.
17
18
19       The  --scopes  flag  accepts  a comma separated list of scopes you want
20       your gh credentials to have. If absent, this command  ensures  that  gh
21       has access to a minimum set of scopes.
22
23
24

OPTIONS

26       -h, --hostname <string>
27              The GitHub host to use for authentication
28
29
30       -s, --scopes <strings>
31              Additional authentication scopes for gh to have
32
33
34

EXAMPLE

36              $ gh auth refresh --scopes write:org,read:public_key
37              # => open a browser to add write:org and read:public_key scopes for use with gh api
38
39              $ gh auth refresh
40              # => open a browser to ensure your authentication credentials have the correct minimum scopes
41
42
43
44
45

SEE ALSO

47       gh-auth(1)
48
49
50
51                                   Jan 2023                 GH-AUTH-REFRESH(1)
Impressum