How to generate a new access token from the command line ?

Hello everyone, I’d like to create a new access token **only** from the command line. There are no such projects to look at their code, nor there is a such github page. We are redirected to https://github.com/settings/tokens in order to generate a new access tokens. Cheers