← 返回
数据分析 Key 中文

Wiki.js CLI

Command-line tool to manage Wiki.js content, pages, assets, templates, and backups via its GraphQL API with search, update, sync, and analysis functions.
通过 GraphQL API 管理 Wiki.js 内容、页面、资源、模板和备份的命令行工具,具备搜索、更新、同步和分析功能。
hopyky
数据分析 clawhub v1.4.0 1 版本 99883.9 Key: 需要
★ 1
Stars
📥 1,701
下载
💾 33
安装
1
版本
#latest

概述

Wiki.js Skill v1.4

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

CommandDescription
----------------------
wikijs listList all pages
wikijs search "query"Search pages
wikijs get Read a page
wikijs info Show page metadata
wikijs grep "pattern"Search within content
wikijs treeDisplay page hierarchy

Writing

CommandDescription
----------------------
wikijs create </code></td><td>Create a page</td></tr><tr><td><code>wikijs create ... --template doc</code></td><td>Create from template</td></tr><tr><td><code>wikijs update <id></code></td><td>Update a page</td></tr><tr><td><code>wikijs move <id> <new-path></code></td><td>Move a page</td></tr><tr><td><code>wikijs delete <id></code></td><td>Delete a page</td></tr></tbody></table><h3>Tags</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs tags</code></td><td>List all tags</td></tr><tr><td><code>wikijs tag <id> add <tag></code></td><td>Add a tag</td></tr><tr><td><code>wikijs tag <id> remove <tag></code></td><td>Remove a tag</td></tr></tbody></table><h3>Backup & Restore</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs backup</code></td><td>Create backup</td></tr><tr><td><code>wikijs restore-backup <file></code></td><td>Restore from backup</td></tr><tr><td><code>wikijs export <dir></code></td><td>Export to files</td></tr></tbody></table><h3>Versions</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs versions <id></code></td><td>Show history</td></tr><tr><td><code>wikijs revert <id> <version></code></td><td>Restore version</td></tr><tr><td><code>wikijs diff <id></code></td><td>Compare versions</td></tr></tbody></table><h3>Assets</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs images</code></td><td>List assets</td></tr><tr><td><code>wikijs upload <file></code></td><td>Upload asset</td></tr><tr><td><code>wikijs delete-image <id></code></td><td>Delete asset</td></tr></tbody></table><h3>Bulk Operations</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs bulk-create <folder></code></td><td>Create from files</td></tr><tr><td><code>wikijs bulk-update <folder></code></td><td>Update from files</td></tr><tr><td><code>wikijs sync</code></td><td>Sync to local</td></tr><tr><td><code>wikijs sync --watch</code></td><td>Watch mode</td></tr></tbody></table><h3>Analysis</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs tree</code></td><td>Page hierarchy tree</td></tr><tr><td><code>wikijs check-links</code></td><td>Find broken links</td></tr><tr><td><code>wikijs stats</code></td><td>Show statistics</td></tr><tr><td><code>wikijs lint <file></code></td><td>Lint markdown file</td></tr><tr><td><code>wikijs lint --id <id></code></td><td>Lint wiki page</td></tr><tr><td><code>wikijs orphans</code></td><td>Find pages with no incoming links</td></tr><tr><td><code>wikijs duplicates</code></td><td>Find similar/duplicate content</td></tr><tr><td><code>wikijs toc <id></code></td><td>Generate table of contents</td></tr><tr><td><code>wikijs validate <id></code></td><td>Validate page content</td></tr><tr><td><code>wikijs validate --all</code></td><td>Validate all pages</td></tr><tr><td><code>wikijs spellcheck <id></code></td><td>Check spelling</td></tr></tbody></table><h3>Content Operations</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs clone <id> <path></code></td><td>Duplicate a page</td></tr><tr><td><code>wikijs replace "old" "new"</code></td><td>Search/replace across pages</td></tr><tr><td><code>wikijs sitemap</code></td><td>Generate XML sitemap</td></tr></tbody></table><h3>Interactive</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs shell</code></td><td>Interactive shell mode</td></tr><tr><td><code>wikijs watch <id></code></td><td>Watch page for changes</td></tr></tbody></table><h3>Templates</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs template list</code></td><td>List templates</td></tr><tr><td><code>wikijs template show <name></code></td><td>Show template</td></tr><tr><td><code>wikijs template create <name></code></td><td>Create template</td></tr><tr><td><code>wikijs template delete <name></code></td><td>Delete template</td></tr></tbody></table><h3>System</h3><table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>---------</td><td>-------------</td></tr><tr><td><code>wikijs health</code></td><td>Check connection</td></tr><tr><td><code>wikijs cache clear</code></td><td>Clear cache</td></tr><tr><td><code>wikijs completion bash</code></td><td>Shell completion</td></tr></tbody></table><h2>Global Options</h2><table><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td>--------</td><td>-------------</td></tr><tr><td><code>-v, --verbose</code></td><td>Verbose output</td></tr><tr><td><code>-d, --debug</code></td><td>Debug output</td></tr><tr><td><code>--no-color</code></td><td>Disable colors</td></tr><tr><td><code>--rate-limit <ms></code></td><td>API rate limiting</td></tr></tbody></table><h2>Common Options</h2><table><thead><tr><th>Option</th><th>Description</th></tr></thead><tbody><tr><td>--------</td><td>-------------</td></tr><tr><td>`--format json\</td><td>table`</td><td>Output format</td></tr><tr><td><code>--limit <n></code></td><td>Limit results</td></tr><tr><td><code>--force</code></td><td>Skip confirmations</td></tr><tr><td><code>--locale <locale></code></td><td>Specify locale</td></tr><tr><td><code>--dry-run</code></td><td>Preview changes</td></tr></tbody></table><h2>Examples</h2><pre><code># 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 </code></pre><h2>Integration Notes</h2><ul><li>All commands return exit code 0 on success, 1 on failure</li><li>Use <code>--format json</code> for machine-readable output</li><li>Delete operations prompt for confirmation unless <code>--force</code> is used</li><li>Escape sequences (<code>\n</code>, <code>\t</code>) are interpreted in <code>--content</code> strings</li><li>Templates support placeholders: <code>{{title}}</code>, <code>{{path}}</code>, <code>{{date}}</code></li></ul></div> </div> </div> <div id="tab-versions" class="detail-content"> <div class="detail-section"> <h2>版本历史</h2> <p style="margin-bottom:12px;font-size:14px;color:#94a3b8;">共 1 个版本</p> <ul class="version-list"> <li> <div> <span class="version-tag">v1.4.0</span> <span style="font-size:11px;color:#5b6abf;margin-left:8px;background:#eef0ff;padding:1px 8px;border-radius:10px;">当前</span> </div> <div style="font-size:12px;color:#94a3b8;"> 2026-03-28 19:56 安全 安全 </div> </li> </ul> </div> </div> <div id="tab-security" class="detail-content"> <div class="detail-section"> <h2>安全检测</h2> <div class="sec-grid"> <div class="sec-card"> <h4>腾讯云安全 (Keen)</h4> <div class="sec-status sec-safe"> 安全,无风险 </div> <a href="https://tix.qq.com/search/skill?keyword=e4b301b04e32137f4b4ae22111972af0" target="_blank">查看报告</a> </div> <div class="sec-card"> <h4>腾讯云安全 (Sanbu)</h4> <div class="sec-status sec-safe"> 安全,无风险 </div> <a href="https://static.cloudsec.tencent.com/html-report-v2/2026/05/25/393708_02f23b61987a904a022efa51fb80f98d.html?q-sign-algorithm=sha1&q-ak=AKID8JMG1bzBC1dz96qNhssfFftujT1NCoFi&q-sign-time=1781384155%3B1812920155&q-key-time=1781384155%3B1812920155&q-header-list=host&q-url-param-list=&q-signature=ad838a6d8082a07025f2003c578aececba7e5e7a" target="_blank">查看报告</a> </div> </div> </div> </div> <!-- Recommended Skills --> <div style="margin-top:24px;"> <h2 style="font-size:18px;font-weight:600;margin-bottom:16px;">🔗 相关推荐</h2> <div class="rec-grid"> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">data-analysis</span> <h3><a href="/s/akshare-stock">A股量化 AkShare</a></h3> <div class="rec-owner">mbpz</div> <div class="rec-desc">A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 166</span> <span style="color:#5b6abf;">📥 60,213</span> </div> </div> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">data-analysis</span> <h3><a href="/s/data-analysis">Data Analysis</a></h3> <div class="rec-owner">ivangdavila</div> <div class="rec-desc">{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 199</span> <span style="color:#5b6abf;">📥 65,247</span> </div> </div> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;">data-analysis</span> <h3><a href="/s/excel-xlsx">Excel / XLSX</a></h3> <div class="rec-owner">ivangdavila</div> <div class="rec-desc">创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 368</span> <span style="color:#5b6abf;">📥 140,797</span> </div> </div> </div> </div> </div> <script> document.addEventListener('DOMContentLoaded',function(){ document.querySelectorAll('.detail-tab').forEach(function(btn){ btn.addEventListener('click',function(e){ var tab = this.getAttribute('data-tab'); document.querySelectorAll('.detail-tab').forEach(function(b){b.classList.remove('active')}); document.querySelectorAll('.detail-content').forEach(function(c){c.classList.remove('active')}); this.classList.add('active'); var el = document.getElementById('tab-'+tab); if(el) el.classList.add('active'); }); }); }); </script> <div class="footer"> <p>Skill工具集 © 2026</p> </div></body> </html>