Loading...
Loading...
Search across company knowledge with the Glean CLI. Use when finding documents, policies, engineering docs, or any information across enterprise data sources.
npx skill4agent add gleanwork/glean-cli glean-searchPREREQUISITE: Readfor auth, global flags, and security rules.../glean-shared/SKILL.md
glean search [flags]| Flag | Type | Default | Description |
|---|---|---|---|
| []string | Filter by datasource (repeatable) | |
| boolean | false | Disable automatic query corrections |
| boolean | false | Disable spellcheck |
| boolean | false | Print request body without sending |
| integer | 10 | Maximum facet buckets per result |
| boolean | false | Return counts for all datasources |
| string | Complete JSON request body (overrides individual flags) | |
| integer | 0 | Maximum snippet size in characters |
| json | ndjson | text | json | Output format |
| integer | 10 | Number of results per page |
| string | Search query (positional arg) (required) | |
| boolean | false | Allow query operators to override facet filters |
| []string | [RESULTS QUERY_METADATA] | Response hints |
| boolean | false | Return expanded LLM-friendly content |
| []string | Filter by result tab IDs (repeatable) | |
| integer | 30000 | Request timeout in milliseconds |
| []string | Filter by document type (repeatable) |
glean search "vacation policy" | jq '.results[].document.title'
glean search --json '{"query":"Q1 reports","pageSize":5,"datasources":["confluence"]}' | jq .# Show machine-readable schema for this command
glean schema search
# List all available commands
glean schema | jq '.commands'