I am looking for the command or SDK, such as python, to generate new personal access token (PAT) in Github, but I didn't see any API for it.
All the documents are about to login github from website, and manually generate it.
Are there any automation way?