How to generate a classic Personal access token in GitHub

Peter
2 min readDec 4, 2023

--

To do this you need to have an account created in GitHub.

  1. Log in to your GitHub account.
  2. In the upper-right corner of any page, click your profile photo, then click Settings.
  3. In the left sidebar, click Developer settings.
  4. In the left sidebar, click Personal access tokens drop down icon.
  5. click Token (classic)

6. Click Generate new token, then Generate new token (classic).

7. In the “Note” field, give your token a descriptive name.

8. To give your token an expiration, select Expiration, then choose a default option or click Custom to enter a date. you don’t want to have your token available for a long time. You can always repeat this process to create another token

9. Select the scopes you’d like to grant this token. To use your token to access repositories from the command line, select repo. A token with no assigned scopes can only access public information. For more information, see “Scopes for OAuth apps.”

10. Click Generate token.

Optionally, to copy the new token to your clipboard, click the copy symbol

Congratulations, you have just created a GitHub Personal Access Token.

If you like this article, kindly follow my page, share and any comment is welcome.

--

--