glean-cli-documents

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

glean documents

glean 文档

PREREQUISITE: Read
../glean-cli-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-cli-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
布尔值false
--json
字符串JSON请求体
--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

展示该命令的机器可读Schema

glean schema documents
glean schema documents

List all available commands

列出所有可用命令

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