Alex CoulombePresents
← all repos

gh-wiki-init

0

Enable + initialize a GitHub repo's wiki from the terminal — including the impossible first page.

The story

Spinning up a repo wiki from a script is weirdly hard: the wiki git repo doesn't exist until a first page is created, and there is no REST or GraphQL API to create one. (The 'just git push to init it' trick is a myth.) gh-wiki-init does the one unavoidable UI step via a saved browser session, then everything else over plain git. The wiki sibling of gh-social-upload.

Highlights

  • gh wiki-init OWNER/REPO ./pages — enable, create first page, push
  • Documents the undocumented: why wiki automation fails for everyone
  • Plain git after the first page — no magic left behind
$ git clone https://github.com/ibrews/gh-wiki-init.git