glean-search

Original🇺🇸 English
Translated

Search across company knowledge with the Glean CLI. Use when finding documents, policies, engineering docs, or any information across enterprise data sources.

7installs
Added on

NPX Install

npx skill4agent add gleanwork/glean-cli glean-search

glean search

PREREQUISITE: Read
../glean-shared/SKILL.md
for auth, global flags, and security rules.
Search for content in your Glean instance. Results are JSON.
bash
glean search [flags]

Flags

FlagTypeDefaultDescription
--datasource
[]stringFilter by datasource (repeatable)
--disable-query-autocorrect
booleanfalseDisable automatic query corrections
--disable-spellcheck
booleanfalseDisable spellcheck
--dry-run
booleanfalsePrint request body without sending
--facet-bucket-size
integer10Maximum facet buckets per result
--fetch-all-datasource-counts
booleanfalseReturn counts for all datasources
--json
stringComplete JSON request body (overrides individual flags)
--max-snippet-size
integer0Maximum snippet size in characters
--output
json | ndjson | textjsonOutput format
--page-size
integer10Number of results per page
--query
stringSearch query (positional arg) (required)
--query-overrides-facet-filters
booleanfalseAllow query operators to override facet filters
--response-hints
[]string[RESULTS QUERY_METADATA]Response hints
--return-llm-content
booleanfalseReturn expanded LLM-friendly content
--tab
[]stringFilter by result tab IDs (repeatable)
--timeout
integer30000Request timeout in milliseconds
--type
[]stringFilter by document type (repeatable)

Examples

bash
glean search "vacation policy" | jq '.results[].document.title'
glean search --json '{"query":"Q1 reports","pageSize":5,"datasources":["confluence"]}' | jq .

Discovering Commands

bash
# Show machine-readable schema for this command
glean schema search

# List all available commands
glean schema | jq '.commands'