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: wiki-js-skill-v1-43description: A complete CLI for managing Wiki.js via the GraphQL API.4---56# Wiki.js Skill v1.4
78A complete CLI for managing Wiki.js via the GraphQL API.
910## Quick Start
1112```bash
13# Install
14npm install && npm link
1516# Configure
17cp config/wikijs.example.json ~/.config/wikijs.json
18# Edit with your Wiki.js URL and API token
1920# Test connection
21wikijs health
22```
2324## Commands Reference
2526### Reading
2728| Command | Description |
29|---------|-------------|
30| `wikijs list` | List all pages |
31| `wikijs search "query"` | Search pages |
32| `wikijs get <id-or-path>` | Read a page |
33| `wikijs info <id-or-path>` | Show page metadata |
34| `wikijs grep "pattern"` | Search within content |
35| `wikijs tree` | Display page hierarchy |
3637### Writing
3839| Command | Description |
40|---------|-------------|
41| `wikijs create <path> <title>` | Create a page |
42| `wikijs create ... --template doc` | Create from template |
43| `wikijs update <id>` | Update a page |
44| `wikijs move <id> <new-path>` | Move a page |
45| `wikijs delete <id>` | Delete a page |
4647### Tags
4849| Command | Description |
50|---------|-------------|
51| `wikijs tags` | List all tags |
52| `wikijs tag <id> add <tag>` | Add a tag |
53| `wikijs tag <id> remove <tag>` | Remove a tag |
5455### Backup & Restore
5657| Command | Description |
58|---------|-------------|
59| `wikijs backup` | Create backup |
60| `wikijs restore-backup <file>` | Restore from backup |
61| `wikijs export <dir>` | Export to files |
6263### Versions
6465| Command | Description |
66|---------|-------------|
67| `wikijs versions <id>` | Show history |
68| `wikijs revert <id> <version>` | Restore version |
69| `wikijs diff <id>` | Compare versions |
7071### Assets
7273| Command | Description |
74|---------|-------------|
75| `wikijs images` | List assets |
76| `wikijs upload <file>` | Upload asset |
77| `wikijs delete-image <id>` | Delete asset |
7879### Bulk Operations
8081| Command | Description |
82|---------|-------------|
83| `wikijs bulk-create <folder>` | Create from files |
84| `wikijs bulk-update <folder>` | Update from files |
85| `wikijs sync` | Sync to local |
86| `wikijs sync --watch` | Watch mode |
8788### Analysis
8990| Command | Description |
91|---------|-------------|
92| `wikijs tree` | Page hierarchy tree |
93| `wikijs check-links` | Find broken links |
94| `wikijs stats` | Show statistics |
95| `wikijs lint <file>` | Lint markdown file |
96| `wikijs lint --id <id>` | Lint wiki page |
97| `wikijs orphans` | Find pages with no incoming links |
98| `wikijs duplicates` | Find similar/duplicate content |
99| `wikijs toc <id>` | Generate table of contents |
100| `wikijs validate <id>` | Validate page content |
101| `wikijs validate --all` | Validate all pages |
102| `wikijs spellcheck <id>` | Check spelling |
103104### Content Operations
105106| Command | Description |
107|---------|-------------|
108| `wikijs clone <id> <path>` | Duplicate a page |
109| `wikijs replace "old" "new"` | Search/replace across pages |
110| `wikijs sitemap` | Generate XML sitemap |
111112### Interactive
113114| Command | Description |
115|---------|-------------|
116| `wikijs shell` | Interactive shell mode |
117| `wikijs watch <id>` | Watch page for changes |
118119### Templates
120121| Command | Description |
122|---------|-------------|
123| `wikijs template list` | List templates |
124| `wikijs template show <name>` | Show template |
125| `wikijs template create <name>` | Create template |
126| `wikijs template delete <name>` | Delete template |
127128### System
129130| Command | Description |
131|---------|-------------|
132| `wikijs health` | Check connection |
133| `wikijs cache clear` | Clear cache |
134| `wikijs completion bash` | Shell completion |
135136## Global Options
137138| Option | Description |
139|--------|-------------|
140| `-v, --verbose` | Verbose output |
141| `-d, --debug` | Debug output |
142| `--no-color` | Disable colors |
143| `--rate-limit <ms>` | API rate limiting |
144145## Common Options
146147| Option | Description |
148|--------|-------------|
149| `--format json\|table` | Output format |
150| `--limit <n>` | Limit results |
151| `--force` | Skip confirmations |
152| `--locale <locale>` | Specify locale |
153| `--dry-run` | Preview changes |
154155## Examples
156157```bash
158# Create page with template
159wikijs template create doc --content "# {{title}}\n\n{{date}}"
160wikijs create "/docs/api" "API Docs" --template doc
161162# Find broken links in docs section
163wikijs check-links --path "/docs"
164165# Bulk import with rate limiting
166wikijs --rate-limit 500 bulk-create ./pages --path-prefix "/imported"
167168# Watch mode for continuous sync
169wikijs sync --output ~/wiki-mirror --watch --interval 60
170171# Debug API issues
172wikijs --debug list
173174# Clone a page
175wikijs clone 42 "/docs/new-page" --with-tags
176177# Find orphan pages (no incoming links)
178wikijs orphans
179180# Search and replace across wiki
181wikijs replace "oldterm" "newterm" --path "/docs" --dry-run
182183# Generate table of contents
184wikijs toc 42 --format markdown
185186# Find duplicate content
187wikijs duplicates --threshold 80
188189# Generate sitemap for SEO
190wikijs sitemap --output sitemap.xml
191192# Interactive shell mode
193wikijs shell
194195# Watch a page for changes
196wikijs watch "/docs/api" --interval 60
197198# Spell check a page
199wikijs spellcheck 42 --lang en --ignore "API,CLI,GraphQL"
200201# Validate all pages
202wikijs validate --all --format json
203```
204205## Integration Notes
206207- All commands return exit code 0 on success, 1 on failure
208- Use `--format json` for machine-readable output
209- Delete operations prompt for confirmation unless `--force` is used
210- Escape sequences (`\n`, `\t`) are interpreted in `--content` strings
211- Templates support placeholders: `{{title}}`, `{{path}}`, `{{date}}`
Run npx skillmds add modbender/wiki-js-skill-v1-4 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.
A complete CLI for managing Wiki.js via the GraphQL API. It is listed under Integrations & APIs on SkillMD.
This skill has not completed SkillMD's automated safety review yet. 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.
modbender (@modbender) published this skill. Their other Agent Skills are listed on their SkillMD profile.