# Start interactive setup
# Open a browser to authenticate and copy one-time OAuth code to clipboard
gh auth login --web --clipboard
# Authenticate against github.com by reading the token from a file
gh auth login --with-token < mytoken.txt
# Authenticate with specific host
gh auth login --hostname enterprise.internal
# Clone a repository from a specific org
# Clone a repository from your own account
# Clone a repo, overriding git protocol configuration
gh repo clone https://github.com/cli/cli
gh repo clone git@github.com:cli/cli.git
# Clone a repository to a custom directory
gh repo clone cli/cli workspace/cli
# Clone a repository with additional git clone flags
gh repo clone cli/cli -- --depth=1
# Issues, PRs, run in project directory
# Viewing a list of open issues
# Create a pull request (PR) interactively
# Checking out a pull request locally
# Open the home page of the current repository
# Open issue or pull request 217
# Open a codespace in Visual Studio Code
gh codespace code [flags]