glean-collections

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

glean collections

glean collections

PREREQUISITE: Read
../glean-shared/SKILL.md
for auth, global flags, and security rules.
Manage Glean collections. Subcommands: create, delete, update, add-items, delete-item.
bash
glean collections <subcommand> [flags]
PREREQUISITE: 请阅读
../glean-shared/SKILL.md
了解认证、全局标志和安全规则。
管理Glean集合。子命令包括:create、delete、update、add-items、delete-item。
bash
glean collections <subcommand> [flags]

Subcommands

子命令

SubcommandDescription
add-items
Add documents to a collection
create
Create a new collection
delete
Delete a collection
delete-item
Remove a document from a collection
get
Get a specific collection
list
List all collections
update
Update a collection
子命令描述
add-items
向集合中添加文档
create
创建新集合
delete
删除集合
delete-item
从集合中移除文档
get
获取指定集合
list
列出所有集合
update
更新集合

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 collections create --json '{"name":"My Collection"}'
bash
glean collections create --json '{"name":"My Collection"}'

Discovering Commands

命令探索

bash
undefined
bash
undefined

Show machine-readable schema for this command

显示此命令的机器可读 schema

glean schema collections
glean schema collections

List all available commands

列出所有可用命令

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