How do I run a GitHub import from the command line?

I’m hoping to re-import a bunch of projects from GitHub. I’ve imported them using the Web-UI. Now I’d like to have a script that over-writes the projects with the latest info from GitHub.

We’re switching over to GitLab soon, but I may have to run this a couple times before we’re entirely on GitLab.