glean-cli-api

Installation
SKILL.md

glean api

PREREQUISITE: Read ../glean-cli/SKILL.md for auth, global flags, and security rules.

Make a raw authenticated HTTP request to any Glean REST API endpoint.

glean api [flags]

Flags

Flag Type Default Description
--dry-run boolean false Same as --preview
--input string Path to a JSON file to use as request body
--method GET | POST | PUT | DELETE | PATCH GET HTTP method
--no-color boolean false Disable colorized output
--preview boolean false Print request details without sending
--raw boolean false Print raw response without syntax highlighting
--raw-field string JSON request body as a string

Examples

glean api search --method POST --raw-field '{"query":"test"}' --no-color | jq .results

Discovering Commands

# Show machine-readable schema for this command
glean schema api

# List all available commands
glean schema | jq '.commands'
Related skills
Installs
23
GitHub Stars
46
First Seen
Apr 8, 2026