User:Meenakshipath/GitLogin

Authenticate a GitHub instance
This page describes the API you can use to authenticate a GitHub instance. The default authentication mode is the web-based browser flow. After completion, an authentication token will be stored internally.

API
gh auth login

Options
The following table describes the options available for the API:

Examples
The following are a few examples to get you started:


 * Start an interactive setup

$ gh auth login


 * Authenticate a user against github.com by reading the token from a file . The file should be located in the directory from where you are running this command.

$ gh auth login --with-token 

__NOINDEX__ __NEWSECTIONLINK__
 * Authenticate a user with a specific GitHub instance.

$ gh auth login --hostname enterprise.internal