A complete CLI for managing Wiki.js via the GraphQL API.
Quick Start
# 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
Commands Reference
Reading
Command
Description
wikijs list
List all pages
wikijs search "query"
Search pages
wikijs get <id-or-path>
Read a page
wikijs info <id-or-path>
Show page metadata
wikijs grep "pattern"
Search within content
wikijs tree
Display page hierarchy
Writing
Command
Description
wikijs create <path> <title>
Create a page
wikijs create ... --template doc
Create from template
wikijs update <id>
Update a page
wikijs move <id> <new-path>
Move a page
wikijs delete <id>
Delete a page
Tags
Command
Description
wikijs tags
List all tags
wikijs tag <id> add <tag>
Add a tag
wikijs tag <id> remove <tag>
Remove a tag
Backup & Restore
Command
Description
wikijs backup
Create backup
wikijs restore-backup <file>
Restore from backup
wikijs export <dir>
Export to files
Versions
Command
Description
wikijs versions <id>
Show history
wikijs revert <id> <version>
Restore version
wikijs diff <id>
Compare versions
Assets
Command
Description
wikijs images
List assets
wikijs upload <file>
Upload asset
wikijs delete-image <id>
Delete asset
Bulk Operations
Command
Description
wikijs bulk-create <folder>
Create from files
wikijs bulk-update <folder>
Update from files
wikijs sync
Sync to local
wikijs sync --watch
Watch mode
Analysis
Command
Description
wikijs tree
Page hierarchy tree
wikijs check-links
Find broken links
wikijs stats
Show statistics
wikijs lint <file>
Lint markdown file
wikijs lint --id <id>
Lint wiki page
wikijs orphans
Find pages with no incoming links
wikijs duplicates
Find similar/duplicate content
wikijs toc <id>
Generate table of contents
wikijs validate <id>
Validate page content
wikijs validate --all
Validate all pages
wikijs spellcheck <id>
Check spelling
Content Operations
Command
Description
wikijs clone <id> <path>
Duplicate a page
wikijs replace "old" "new"
Search/replace across pages
wikijs sitemap
Generate XML sitemap
Interactive
Command
Description
wikijs shell
Interactive shell mode
wikijs watch <id>
Watch page for changes
Templates
Command
Description
wikijs template list
List templates
wikijs template show <name>
Show template
wikijs template create <name>
Create template
wikijs template delete <name>
Delete template
System
Command
Description
wikijs health
Check connection
wikijs cache clear
Clear cache
wikijs completion bash
Shell completion
Global Options
Option
Description
-v, --verbose
Verbose output
-d, --debug
Debug output
--no-color
Disable colors
--rate-limit <ms>
API rate limiting
Common Options
Option
Description
--format json|table
Output format
--limit <n>
Limit results
--force
Skip confirmations
--locale <locale>
Specify locale
--dry-run
Preview changes
Examples
# 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
Integration Notes
All commands return exit code 0 on success, 1 on failure
Use --format json for machine-readable output
Delete operations prompt for confirmation unless --force is used
Escape sequences (\n, \t) are interpreted in --content strings
Templates support placeholders: {{title}}, {{path}}, {{date}}
1---2name: wikijs3description: Wiki.js Skill v1.44---5# Wiki.js Skill v1.467A complete CLI for managing Wiki.js via the GraphQL API.89## Quick Start1011```bash12# Install13npm install && npm link1415# Configure16cp config/wikijs.example.json ~/.config/wikijs.json17# Edit with your Wiki.js URL and API token1819# Test connection20wikijs health21```2223## Commands Reference2425### Reading2627| Command | Description |28|---------|-------------|29| `wikijs list` | List all pages |30| `wikijs search "query"` | Search pages |31| `wikijs get <id-or-path>` | Read a page |32| `wikijs info <id-or-path>` | Show page metadata |33| `wikijs grep "pattern"` | Search within content |34| `wikijs tree` | Display page hierarchy |3536### Writing3738| Command | Description |39|---------|-------------|40| `wikijs create <path> <title>` | Create a page |41| `wikijs create ... --template doc` | Create from template |42| `wikijs update <id>` | Update a page |43| `wikijs move <id> <new-path>` | Move a page |44| `wikijs delete <id>` | Delete a page |4546### Tags4748| Command | Description |49|---------|-------------|50| `wikijs tags` | List all tags |51| `wikijs tag <id> add <tag>` | Add a tag |52| `wikijs tag <id> remove <tag>` | Remove a tag |5354### Backup & Restore5556| Command | Description |57|---------|-------------|58| `wikijs backup` | Create backup |59| `wikijs restore-backup <file>` | Restore from backup |60| `wikijs export <dir>` | Export to files |6162### Versions6364| Command | Description |65|---------|-------------|66| `wikijs versions <id>` | Show history |67| `wikijs revert <id> <version>` | Restore version |68| `wikijs diff <id>` | Compare versions |6970### Assets7172| Command | Description |73|---------|-------------|74| `wikijs images` | List assets |75| `wikijs upload <file>` | Upload asset |76| `wikijs delete-image <id>` | Delete asset |7778### Bulk Operations7980| Command | Description |81|---------|-------------|82| `wikijs bulk-create <folder>` | Create from files |83| `wikijs bulk-update <folder>` | Update from files |84| `wikijs sync` | Sync to local |85| `wikijs sync --watch` | Watch mode |8687### Analysis8889| Command | Description |90|---------|-------------|91| `wikijs tree` | Page hierarchy tree |92| `wikijs check-links` | Find broken links |93| `wikijs stats` | Show statistics |94| `wikijs lint <file>` | Lint markdown file |95| `wikijs lint --id <id>` | Lint wiki page |96| `wikijs orphans` | Find pages with no incoming links |97| `wikijs duplicates` | Find similar/duplicate content |98| `wikijs toc <id>` | Generate table of contents |99| `wikijs validate <id>` | Validate page content |100| `wikijs validate --all` | Validate all pages |101| `wikijs spellcheck <id>` | Check spelling |102103### Content Operations104105| Command | Description |106|---------|-------------|107| `wikijs clone <id> <path>` | Duplicate a page |108| `wikijs replace "old" "new"` | Search/replace across pages |109| `wikijs sitemap` | Generate XML sitemap |110111### Interactive112113| Command | Description |114|---------|-------------|115| `wikijs shell` | Interactive shell mode |116| `wikijs watch <id>` | Watch page for changes |117118### Templates119120| Command | Description |121|---------|-------------|122| `wikijs template list` | List templates |123| `wikijs template show <name>` | Show template |124| `wikijs template create <name>` | Create template |125| `wikijs template delete <name>` | Delete template |126127### System128129| Command | Description |130|---------|-------------|131| `wikijs health` | Check connection |132| `wikijs cache clear` | Clear cache |133| `wikijs completion bash` | Shell completion |134135## Global Options136137| Option | Description |138|--------|-------------|139| `-v, --verbose` | Verbose output |140| `-d, --debug` | Debug output |141| `--no-color` | Disable colors |142| `--rate-limit <ms>` | API rate limiting |143144## Common Options145146| Option | Description |147|--------|-------------|148| `--format json\|table` | Output format |149| `--limit <n>` | Limit results |150| `--force` | Skip confirmations |151| `--locale <locale>` | Specify locale |152| `--dry-run` | Preview changes |153154## Examples155156```bash157# Create page with template158wikijs template create doc --content "# {{title}}\n\n{{date}}"159wikijs create "/docs/api" "API Docs" --template doc160161# Find broken links in docs section162wikijs check-links --path "/docs"163164# Bulk import with rate limiting165wikijs --rate-limit 500 bulk-create ./pages --path-prefix "/imported"166167# Watch mode for continuous sync168wikijs sync --output ~/wiki-mirror --watch --interval 60169170# Debug API issues171wikijs --debug list172173# Clone a page174wikijs clone 42 "/docs/new-page" --with-tags175176# Find orphan pages (no incoming links)177wikijs orphans178179# Search and replace across wiki180wikijs replace "oldterm" "newterm" --path "/docs" --dry-run181182# Generate table of contents183wikijs toc 42 --format markdown184185# Find duplicate content186wikijs duplicates --threshold 80187188# Generate sitemap for SEO189wikijs sitemap --output sitemap.xml190191# Interactive shell mode192wikijs shell193194# Watch a page for changes195wikijs watch "/docs/api" --interval 60196197# Spell check a page198wikijs spellcheck 42 --lang en --ignore "API,CLI,GraphQL"199200# Validate all pages201wikijs validate --all --format json202```203204## Integration Notes205206- All commands return exit code 0 on success, 1 on failure207- Use `--format json` for machine-readable output208- Delete operations prompt for confirmation unless `--force` is used209- Escape sequences (`\n`, `\t`) are interpreted in `--content` strings210- Templates support placeholders: `{{title}}`, `{{path}}`, `{{date}}`
Run npx skillmds@latest add johnalbertini14-glitch/wikijs in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Wiki.js Skill v1.4 It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: executes scripts, reads secrets. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
johnalbertini14-glitch (@johnalbertini14-glitch) published this skill. Their other Agent Skills are listed on their SkillMD profile.