glean-documents

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

glean documents

glean documents

PREREQUISITE: Read
../glean-shared/SKILL.md
for auth, global flags, and security rules.
Retrieve and summarize Glean documents. Subcommands: get, get-by-facets, get-permissions, summarize.
bash
glean documents <subcommand> [flags]
前提条件: 阅读
../glean-shared/SKILL.md
了解认证、全局标志参数和安全规则。
检索并汇总Glean文档。子命令:get、get-by-facets、get-permissions、summarize。
bash
glean documents <subcommand> [flags]

Subcommands

子命令

SubcommandDescription
get
Retrieve document metadata by URL or ID
get-by-facets
Retrieve documents matching facet filters
get-permissions
Inspect who has access to a document
summarize
Generate an AI summary of a document
子命令描述
get
通过URL或ID检索文档元数据
get-by-facets
检索匹配维度筛选条件的文档
get-permissions
检查谁有权限访问某文档
summarize
生成文档的AI摘要

Flags

标志参数

FlagTypeDefaultDescription
--dry-run
booleanfalse
--json
stringJSON request body
--output
json | ndjson | textjson
标志参数类型默认值描述
--dry-run
booleanfalse
--json
stringJSON请求体
--output
json | ndjson | textjson

Examples

示例

bash
glean documents summarize --json '{"documentId":"DOC_ID"}' | jq .summary
bash
glean documents summarize --json '{"documentId":"DOC_ID"}' | jq .summary

Discovering Commands

命令探索

bash
undefined
bash
undefined

Show machine-readable schema for this command

显示此命令的机器可读模式

glean schema documents
glean schema documents

List all available commands

列出所有可用命令

glean schema | jq '.commands'
undefined
glean schema | jq '.commands'
undefined