omni-content-explorer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOmni Content Explorer
Omni内容探索器
Find, browse, and organize Omni content — dashboards, workbooks, and folders — through the Omni CLI.
使用Omni CLI查找、浏览和管理Omni内容——包括仪表板(dashboards)、工作簿(workbooks)和文件夹(folders)。
Prerequisites
前提条件
bash
undefinedbash
undefinedVerify the Omni CLI is installed — if not, ask the user to install it
验证Omni CLI是否已安装——若未安装,请提示用户安装
command -v omni >/dev/null || echo "ERROR: Omni CLI is not installed."
```bashcommand -v omni >/dev/null || echo "ERROR: Omni CLI is not installed."
```bashShow available profiles and select the appropriate one
查看可用配置文件并选择合适的配置文件
omni config show
omni config show
If multiple profiles exist, ask the user which to use, then switch:
若存在多个配置文件,请询问用户使用哪个,然后切换:
omni config use <profile-name>
undefinedomni config use <profile-name>
undefinedDiscovering Commands
命令探索
bash
omni content --help # Content operations
omni documents --help # Document operations
omni folders --help # Folder operationsTip: Useto force structured output for programmatic parsing, or-o jsonfor readable tables. The default is-o human(human in a TTY, JSON when piped).auto
bash
omni content --help # 内容操作
omni documents --help # 文档操作
omni folders --help # 文件夹操作提示:使用强制输出结构化内容以用于程序解析,或使用-o json输出易读的表格。默认模式为-o human(在终端中输出人类可读格式,管道传输时输出JSON格式)。auto
Browsing Content
内容浏览
List All Content
列出所有内容
bash
omni content listbash
omni content listWith Counts and Labels
包含数量与标签
bash
omni content list --include '_count,labels'bash
omni content list --include '_count,labels'Filter and Sort
筛选与排序
bash
undefinedbash
undefinedBy label
按标签筛选
omni content list --labels finance,marketing
omni content list --labels finance,marketing
By scope
按范围筛选
omni content list --scope organization
omni content list --scope organization
Sort by popularity or recency
按热度或更新时间排序
omni content list --sortfield favorites
omni content list --sortfield updatedAt
undefinedomni content list --sortfield favorites
omni content list --sortfield updatedAt
undefinedPagination
分页
Responses include with cursor-based pagination. Fetch next page:
pageInfobash
omni content list --cursor <nextCursor>响应结果包含带有游标分页的。获取下一页:
pageInfobash
omni content list --cursor <nextCursor>Working with Documents
文档操作
List Documents
列出文档
bash
omni documents listbash
omni documents listFilter by creator
按创建者筛选
omni documents list --creatorid <userId>
Each document includes: `identifier`, `name`, `type`, `scope`, `owner`, `folder`, `labels`, `updatedAt`, `hasDashboard`.
> **Important**: Always use the `identifier` field for API calls, not `id`. The `id` field is null for workbook-type documents and will cause silent failures.omni documents list --creatorid <userId>
每个文档包含以下字段:`identifier`、`name`、`type`、`scope`、`owner`、`folder`、`labels`、`updatedAt`、`hasDashboard`。
> **重要提示**:API调用请始终使用`identifier`字段,而非`id`字段。工作簿类型文档的`id`字段为null,使用该字段会导致静默失败。Get Document Queries
获取文档查询语句
Retrieve query definitions powering a dashboard's tiles:
bash
omni documents get-queries <identifier>Useful for understanding what a dashboard computes and re-running queries via .
omni-query检索驱动仪表板组件的查询定义:
bash
omni documents get-queries <identifier>此命令有助于理解仪表板的计算逻辑,并可通过重新运行查询。
omni-queryFolders
文件夹操作
bash
undefinedbash
undefinedList
列出文件夹
omni folders list
omni folders list
Create
创建文件夹
omni folders create "Q1 Reports" --scope organization
undefinedomni folders create "Q1 Reports" --scope organization
undefinedLabels
标签操作
bash
undefinedbash
undefinedList labels
列出标签
omni labels list
omni labels list
Add label to document
为文档添加标签
omni documents add-label <identifier> <labelName>
omni documents add-label <identifier> <labelName>
Remove label
移除文档标签
omni documents remove-label <identifier> <labelName>
undefinedomni documents remove-label <identifier> <labelName>
undefinedFavorites
收藏操作
bash
undefinedbash
undefinedFavorite
收藏文档
omni documents add-favorite <identifier>
omni documents add-favorite <identifier>
Unfavorite
取消收藏文档
omni documents remove-favorite <identifier>
undefinedomni documents remove-favorite <identifier>
undefinedDashboard Downloads
仪表板下载
bash
undefinedbash
undefinedStart download (async)
启动下载(异步)
omni dashboards download <dashboardId> --body '{ "format": "pdf" }'
omni dashboards download <dashboardId> --body '{ "format": "pdf" }'
Poll job status
查询任务状态
omni dashboards download-status <dashboardId> <jobId>
Formats: `pdf`, `png`omni dashboards download-status <dashboardId> <jobId>
支持格式:`pdf`、`png`URL Patterns
URL格式
Construct direct links to content:
Dashboard: {OMNI_BASE_URL}/dashboards/{identifier}
Workbook: {OMNI_BASE_URL}/w/{identifier}The comes from the document's field in API responses. Always provide the user a clickable link after finding content.
identifieridentifier构建内容的直接链接:
Dashboard: {OMNI_BASE_URL}/dashboards/{identifier}
Workbook: {OMNI_BASE_URL}/w/{identifier}identifieridentifierSearch Patterns
搜索模式
When scanning all documents for field references (e.g., for impact analysis), paginate with cursor and call for each document. Launch multiple query-fetch calls in parallel for efficiency. For field impact analysis, prefer the content-validator approach in .
omni documents get-queries <identifier>omni-model-explorer当扫描所有文档查找字段引用(例如用于影响分析)时,使用游标分页并为每个文档调用。为提高效率,可并行发起多个查询获取请求。对于字段影响分析,建议使用中的内容验证器方案。
omni documents get-queries <identifier>omni-model-explorerDocs Reference
文档参考
Related Skills
相关技能
- omni-query — run queries behind dashboards you've found
- omni-content-builder — create or update dashboards
- omni-embed — embed dashboards you've found in external apps
- omni-admin — manage permissions on documents and folders
- omni-query — 运行你找到的仪表板背后的查询
- omni-content-builder — 创建或更新仪表板
- omni-embed — 将找到的仪表板嵌入外部应用
- omni-admin — 管理文档和文件夹的权限