glean-cli-api

Original🇺🇸 English
Translated

Make raw authenticated HTTP requests to any Glean REST API endpoint. Use when no dedicated command exists or for advanced API access.

8installs
Added on

NPX Install

npx skill4agent add gleanwork/glean-cli glean-cli-api

Tags

Translated version includes tags in frontmatter

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.
bash
glean api [flags]

Flags

FlagTypeDefaultDescription
--dry-run
booleanfalseSame as --preview
--input
stringPath to a JSON file to use as request body
--method
GET | POST | PUT | DELETE | PATCHGETHTTP method
--no-color
booleanfalseDisable colorized output
--preview
booleanfalsePrint request details without sending
--raw
booleanfalsePrint raw response without syntax highlighting
--raw-field
stringJSON request body as a string

Examples

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

Discovering Commands

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

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