glean-documents
glean documents
PREREQUISITE: Read
../glean-shared/SKILL.mdfor auth, global flags, and security rules.
Retrieve and summarize Glean documents. Subcommands: get, get-by-facets, get-permissions, summarize.
glean documents <subcommand> [flags]
Subcommands
| Subcommand | Description |
|---|---|
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 |
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run |
boolean | false | |
--json |
string | JSON request body | |
--output |
json | ndjson | text | json |
Examples
glean documents summarize --json '{"documentId":"DOC_ID"}' | jq .summary
Discovering Commands
# Show machine-readable schema for this command
glean schema documents
# List all available commands
glean schema | jq '.commands'
More from gleanwork/glean-cli
glean-cli-search
Search across company knowledge with the Glean CLI. Use when finding documents, policies, engineering docs, or any information across enterprise data sources.
41glean-cli-chat
Chat with Glean Assistant from the command line. Use when asking questions, summarizing documents, or getting AI-powered answers about company knowledge.
36glean-cli-documents
Retrieve, summarize, and inspect documents indexed by Glean. Use when getting document content, summaries, permissions, or metadata by URL.
35glean-cli
Glean CLI: access company knowledge, search documents, chat with Glean Assistant, look up people, and manage enterprise content. Use when the user asks about internal docs, company information, people, policies, or enterprise data.
33glean-cli-messages
Retrieve indexed messages from Slack, Teams, and other messaging platforms via Glean. Use when searching for or reading specific messages.
27glean-cli-entities
Look up people, teams, and custom entities in Glean. Use when finding employees, org structure, team members, or expertise.
26