1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 22:22:18 +02:00
tldr/pages.ko/common/gh-auth.md
2024-10-11 13:41:00 +09:00

32 lines
769 B
Markdown

# gh auth
> GitHub 호스트에 인증.
> 더 많은 정보: <https://cli.github.com/manual/gh_auth>.
- 대화형 프롬프트로 로그인:
`gh auth login`
- `stdin`에서 토큰으로 로그인 (<https://github.com/settings/tokens>에서 생성됨):
`echo {{your_token}} | gh auth login --with-token`
- 로그인 여부 확인:
`gh auth status`
- 로그아웃:
`gh auth logout`
- 특정 GitHub 엔터프라이즈 서버로 로그인:
`gh auth login --hostname {{github.example.com}}`
- 인증 자격 증명이 올바른 최소 범위를 갖도록 세션 새로 고침 (이전에 요청된 추가 범위 제거):
`gh auth refresh`
- 권한 범위 확장:
`gh auth refresh --scopes {{repo,admin:repo_hook,admin:org,admin:public_key,admin:org_hook,...}}`