/install-wiki command creates a CI workflow that automatically regenerates your wiki every time code is pushed to the default branch. It detects your CI framework — GitHub Actions or GitLab CI — and generates the appropriate configuration. This keeps your documentation in sync with your codebase without manual intervention.
Quick start
Add the Factory API key
Add
FACTORY_API_KEY as a secret in your CI settings:- GitHub: Repository Settings > Secrets and variables > Actions (or at the organization level under Organization Settings > Secrets and variables > Actions)
- GitLab: Repository Settings > CI/CD > Variables (or at the group level under Group Settings > CI/CD > Variables)
Generated workflows
Droid detects your CI framework and creates the appropriate configuration.GitHub Actions
Creates.github/workflows/droid-wiki-refresh.yml (replace main with your default branch if different):
GitLab CI
Appends a job to your existing.gitlab-ci.yml:
- Trigger on push to the default branch
- Install the Droid CLI using the official installer
- Run
/wikiin headless mode with high autonomy, generating and uploading the wiki
Prerequisites
- A GitHub or GitLab hosted repository
- A Factory API key — generate one at app.factory.ai/settings/api-keys
- Permission to add secrets and merge PRs in the target repository
Refreshing from the web
You can also set up recurring refreshes from the Factory web app:- Go to app.factory.ai/wiki
- Click Refresh on the wiki page
- Select Recurring (on push)
- Choose a Local or Cloud method:
- Local — Copies the
/install-wikicommand for you to run in a local clone - Cloud — Selects a cloud template or Droid Computer to run the setup remotely
- Local — Copies the
Troubleshooting
Workflow fails with authentication error
Workflow fails with authentication error
Verify the
FACTORY_API_KEY secret is set correctly in your repository’s
Settings > Secrets and variables > Actions. Generate a new key at
app.factory.ai/settings/api-keys
if needed.Wiki not updating after push
Wiki not updating after push
Check that the workflow file exists at
.github/workflows/droid-wiki-refresh.yml
and that the branch trigger matches your default branch. View the Actions
tab in your repository to see workflow run logs.GitHub wiki not syncing
GitHub wiki not syncing
The GitHub wiki tab must be initialized before Factory can push to it. Create
the first page manually at
https://github.com/{owner}/{repo}/wiki. Also
verify that your organization hasn’t disabled
Wiki Cloud Sync.See also
- Generate a wiki — One-time wiki generation with
/wiki - Browse your wiki — Read and search from the web
- GitHub App installation — Similar workflow for code review automation
- Droid Exec — Headless mode used by the generated workflow
