PREREQUISITE: Read
../glean-shared/SKILL.mdfor auth, global flags, and security rules.
Manage Glean collections. Subcommands: create, delete, update, add-items, delete-item.
glean collections <subcommand> [flags]
Subcommands
| Subcommand | Description |
|---|---|
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 |
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run |
boolean | false | |
--json |
string | JSON request body | |
--output |
json | ndjson | text | json |
Examples
glean collections create --json '{"name":"My Collection"}'
Discovering Commands
# Show machine-readable schema for this command
glean schema collections
# List all available commands
glean schema | jq '.commands'