CRITICAL — Before starting, you MUST first use the Read tool to read ../zentao-shared/SKILL.md, which contains authentication, environment variable configuration, and error handling.
Commands
doc list— List document listdoc get— Get document details
Common Use Cases
List Documents
zentao-cli doc list
Get Document
zentao-cli doc get 1
Output Fields
| Field | Type | Description |
|---|---|---|
| id | u64 | Document ID |
| title | string | Document title |
| product | u64 | Associated product ID |
| project | u64 | Associated project ID |
| lib | u64 | Document library ID |
| type | string | Document type (e.g. "doc", "article") |
| size | string | Document size (bytes) |
| added_by | string | Creator account |
| added_date | string | Creation date |
| edited_date | string | Last edited date |
| deleted | string | Deletion flag ("0"/"1") |
Examples
# 列出所有文档
zentao-cli doc list
# 根据 ID 获取文档详情
zentao-cli doc get 10