Found this solution which I liked: https://medium.com/@jakehasler/how-to-create-a-remote-git-repo-from-the-command-line-2d6857f49564
You first need to create a Github Personal Access Token
Open up your ~/.bash_profile or ~/.bashrc in your favorite text editor. Add the following line near the top of your file, where the rest of the export ‘ed variables are:
export GITHUB_API_TOKEN=<your-token-here>
Somewhere below, by your other bash functions, you can paste something similar to the following:
function new-git() {
curl -X POST https://api.github.com/user/repos -u <your-username>:$GITHUB_API_TOKEN -d '{"name":"'$1'"}'
}
Now, whenever you’re creating a new project, you can run the command $ new-git awesome-repo
to create a new public remote repository on your Github user account.