# gh auth on Server ## Synopsis Run `gh auth login`. Choose “Login with a web browser” for the question “How would you like to authenticate GitHub CLI?” Copy the printed code and paste into [Device Activation](https://github.com/login/device) page.