← all repos
gh-wiki-init
0Enable + 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
Want this level of depth on your own project?
The classes teach the same production techniques these repos are built with — scar tissue included.