I am trying to use github api to create repositories under a particular organization. I was looking at this site which talks about how to create repositories under a particu
There is a new solution official from cli.github.com. The other answers are deprecated.
First Install GitHub CLI. Run:
brew install github/gh/gh
Then to create a repository with a specific name (default: private) Enter the following command:
gh repo create my-project
Here is the official documentation link to create a repo.