| name | glean-cli-chat |
| description | Chat with Glean Assistant from the command line. Use when asking questions, summarizing documents, or getting AI-powered answers about company knowledge. |
glean chat
PREREQUISITE: Read ../glean-cli/SKILL.md for auth, global flags, and security rules.
Have a conversation with Glean AI. Streams response to stdout.
glean chat [flags]
Flags
| Flag | Type | Default | Description |
|---|
--dry-run | boolean | false | Print request body without sending |
--json | string | | Complete JSON chat request body (overrides individual flags) |
--message | string | | Chat message (positional arg) (required) |
--save | boolean | true | Save the chat session |
--timeout | integer | 30000 | Request timeout in milliseconds |
Examples
glean chat "What are the company holidays?"
glean chat --json '{"messages":[{"author":"USER","messageType":"CONTENT","fragments":[{"text":"What is Glean?"}]}]}'
Discovering Commands
glean schema chat
glean schema | jq '.commands'