wikijsCommand-line tool to manage Wiki.js content, pages, assets, templates, and backups via its GraphQL API with search, update, sync, and analysis functions.
Install via ClawdBot CLI:
clawdbot install hopyky/wikijsA complete CLI for managing Wiki.js via the GraphQL API.
# Install
npm install && npm link
# Configure
cp config/wikijs.example.json ~/.config/wikijs.json
# Edit with your Wiki.js URL and API token
# Test connection
wikijs health
| Command | Description |
|---------|-------------|
| wikijs list | List all pages |
| wikijs search "query" | Search pages |
| wikijs get | Read a page |
| wikijs info | Show page metadata |
| wikijs grep "pattern" | Search within content |
| wikijs tree | Display page hierarchy |
| Command | Description |
|---------|-------------|
| wikijs create | Create a page |
| wikijs create ... --template doc | Create from template |
| wikijs update | Update a page |
| wikijs move | Move a page |
| wikijs delete | Delete a page |
| Command | Description |
|---------|-------------|
| wikijs tags | List all tags |
| wikijs tag | Add a tag |
| wikijs tag | Remove a tag |
| Command | Description |
|---------|-------------|
| wikijs backup | Create backup |
| wikijs restore-backup | Restore from backup |
| wikijs export | Export to files |
| Command | Description |
|---------|-------------|
| wikijs versions | Show history |
| wikijs revert | Restore version |
| wikijs diff | Compare versions |
| Command | Description |
|---------|-------------|
| wikijs images | List assets |
| wikijs upload | Upload asset |
| wikijs delete-image | Delete asset |
| Command | Description |
|---------|-------------|
| wikijs bulk-create | Create from files |
| wikijs bulk-update | Update from files |
| wikijs sync | Sync to local |
| wikijs sync --watch | Watch mode |
| Command | Description |
|---------|-------------|
| wikijs tree | Page hierarchy tree |
| wikijs check-links | Find broken links |
| wikijs stats | Show statistics |
| wikijs lint | Lint markdown file |
| wikijs lint --id | Lint wiki page |
| wikijs orphans | Find pages with no incoming links |
| wikijs duplicates | Find similar/duplicate content |
| wikijs toc | Generate table of contents |
| wikijs validate | Validate page content |
| wikijs validate --all | Validate all pages |
| wikijs spellcheck | Check spelling |
| Command | Description |
|---------|-------------|
| wikijs clone | Duplicate a page |
| wikijs replace "old" "new" | Search/replace across pages |
| wikijs sitemap | Generate XML sitemap |
| Command | Description |
|---------|-------------|
| wikijs shell | Interactive shell mode |
| wikijs watch | Watch page for changes |
| Command | Description |
|---------|-------------|
| wikijs template list | List templates |
| wikijs template show | Show template |
| wikijs template create | Create template |
| wikijs template delete | Delete template |
| Command | Description |
|---------|-------------|
| wikijs health | Check connection |
| wikijs cache clear | Clear cache |
| wikijs completion bash | Shell completion |
| Option | Description |
|--------|-------------|
| -v, --verbose | Verbose output |
| -d, --debug | Debug output |
| --no-color | Disable colors |
| --rate-limit | API rate limiting |
| Option | Description |
|--------|-------------|
| --format json\|table | Output format |
| --limit | Limit results |
| --force | Skip confirmations |
| --locale | Specify locale |
| --dry-run | Preview changes |
# Create page with template
wikijs template create doc --content "# {{title}}\n\n{{date}}"
wikijs create "/docs/api" "API Docs" --template doc
# Find broken links in docs section
wikijs check-links --path "/docs"
# Bulk import with rate limiting
wikijs --rate-limit 500 bulk-create ./pages --path-prefix "/imported"
# Watch mode for continuous sync
wikijs sync --output ~/wiki-mirror --watch --interval 60
# Debug API issues
wikijs --debug list
# Clone a page
wikijs clone 42 "/docs/new-page" --with-tags
# Find orphan pages (no incoming links)
wikijs orphans
# Search and replace across wiki
wikijs replace "oldterm" "newterm" --path "/docs" --dry-run
# Generate table of contents
wikijs toc 42 --format markdown
# Find duplicate content
wikijs duplicates --threshold 80
# Generate sitemap for SEO
wikijs sitemap --output sitemap.xml
# Interactive shell mode
wikijs shell
# Watch a page for changes
wikijs watch "/docs/api" --interval 60
# Spell check a page
wikijs spellcheck 42 --lang en --ignore "API,CLI,GraphQL"
# Validate all pages
wikijs validate --all --format json
--format json for machine-readable output--force is used\n, \t) are interpreted in --content strings{{title}}, {{path}}, {{date}}Generated Mar 1, 2026
Development teams use the CLI to automate the creation, updating, and validation of API documentation and internal wikis. It enables bulk imports from markdown files, ensures consistency with linting, and monitors broken links to maintain accuracy.
Organizations migrating legacy content or syncing wikis across environments use bulk operations and sync commands. The CLI supports rate-limited imports, real-time watch modes, and validation to ensure data integrity during transitions.
Marketing teams generate XML sitemaps, check for duplicate content, and validate pages for SEO compliance. The CLI automates spell-checking, table of contents generation, and content analysis to improve search engine rankings.
Regulated industries use the CLI to track page versions, revert changes, and audit content history. It facilitates validation of all pages, checks for orphaned content, and ensures documentation meets compliance standards through automated reports.
Teams in education or consulting use interactive shell and watch modes to collaboratively edit and monitor wiki pages. The CLI supports tagging, template-based creation, and real-time updates to streamline knowledge sharing and content management.
Offer managed CLI services for businesses to integrate Wiki.js with their workflows, including custom scripting, automation, and support. Revenue comes from subscription fees for maintenance, updates, and priority assistance.
Provide consulting services to help organizations set up and optimize Wiki.js usage with the CLI, including migration, customization, and staff training. Revenue is generated through project-based fees and workshop packages.
Develop and sell premium CLI extensions or plugins for advanced features like enhanced analytics, security audits, or integration with other enterprise tools. Revenue streams include licensing fees and dedicated support contracts.
💬 Integration Tip
Use the --format json option for machine-readable output in automation scripts, and leverage --dry-run to preview changes before applying them to avoid data loss.
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
Command-line tool to manage Google Workspace services including Gmail, Calendar, Drive, Sheets, Docs, Slides, Contacts, Tasks, People, Groups, and Keep.
Runs shell commands inside a dedicated tmux session named claw, captures, and returns the output, with safety checks for destructive commands.
A modern text-based browser. Renders web pages in the terminal using headless Firefox.
Write robust, portable shell scripts. Use when parsing arguments, handling errors properly, writing POSIX-compatible scripts, managing temp files, running commands in parallel, managing background processes, or adding --help to scripts.
NotebookLM CLI wrapper via `node {baseDir}/scripts/notebooklm.mjs`. Use for auth, notebooks, chat, sources, notes, sharing, research, and artifact generation/download.