Skills2026年3月30日·1 分钟阅读

Lark CLI Skill: Wiki — Knowledge Base Management

Lark/Feishu CLI skill for knowledge base. Create and manage knowledge spaces, organize document nodes and shortcuts.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 17/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
CLI Tool
安装
Stage only
信任
信任等级:Community
入口
Lark CLI Skill: Wiki — Knowledge Base Management
安全暂存命令
npx -y tokrepo@latest install a5eb9344-208c-4032-9cca-2a17f53fc271 --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
Create and manage Lark/Feishu knowledge spaces and document nodes from the command line.
§01

What it is

This Lark CLI skill provides programmatic access to Lark/Feishu knowledge bases (Wiki). It lets you create and manage knowledge spaces, organize document nodes, add shortcuts, and query the knowledge base structure. All operations happen from the terminal or through automation scripts.

The skill targets developers and knowledge managers who want to automate wiki organization, bulk create documentation, or integrate knowledge base management into CI/CD pipelines.

§02

How it saves time or tokens

Manual wiki management in Lark requires navigating the web UI for each operation. This CLI skill automates bulk operations: creating multiple knowledge spaces, reorganizing document trees, or adding batch shortcuts. For AI agents, the skill provides the APIs needed to publish generated documentation directly into the team wiki.

Automating wiki structure management saves hours of manual drag-and-drop organization.

§03

How to use

  1. Configure the Lark CLI with your app credentials
  2. Use the wiki commands to create spaces, nodes, and shortcuts
  3. Organize documents with move and reorder operations
  4. Query the knowledge base structure for navigation and auditing
§04

Example

# Create a new knowledge space
lark wiki create-space --name 'Engineering Docs' --description 'Technical documentation'

# Add a document node to the space
lark wiki create-node --space-id 'wiki_abc123' --title 'API Reference' --type 'doc'

# List all nodes in a space
lark wiki list-nodes --space-id 'wiki_abc123'

# Add a shortcut to an existing document
lark wiki create-shortcut --space-id 'wiki_abc123' --target-node 'node_xyz789'

# Move a node to a different parent
lark wiki move-node --node-id 'node_001' --parent-id 'node_002'
§05

Related on TokRepo

§06

Common pitfalls

  • Wiki API access requires 'wiki:wiki' scope permissions on your Lark app; missing permissions return 403 errors
  • Document nodes and shortcuts are different types; moving a shortcut does not move the underlying document
  • Rate limits apply to batch operations; add delays when creating or moving many nodes in sequence

常见问题

What is a knowledge space in Lark Wiki?+

A knowledge space is a top-level container in Lark Wiki, similar to a workspace or project. It contains document nodes organized in a tree structure. Each space can have its own access permissions.

Can I create documents with content via the CLI?+

The CLI creates document nodes (containers). To add content, you create the node first, then use the Lark Docs API to write content into the document. The wiki skill handles the structural organization.

Does this work with both Feishu and Lark?+

Yes. The skill supports both Feishu (Chinese version) and Lark (international version). The API endpoints differ but the CLI handles the routing based on your app configuration.

Can I export wiki content?+

The wiki skill provides structure queries (list nodes, get node details). Content export requires the Lark Docs API. You can combine both to export complete knowledge bases with structure and content.

How do permissions work for wiki spaces?+

Space permissions are managed through the Lark admin console or the wiki API. The CLI skill can query but not modify permissions. Set permissions in the web UI before automating content creation.

引用来源 (3)
🙏

来源与感谢

Created by LarkSuite. Licensed under MIT. larksuite/cli — 4,100+ GitHub stars

Part of the Lark CLI Official Skills Collection on TokRepo.

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产