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
Sourcegleanwork/glean-cli
Added on
NPX Install
npx skill4agent add gleanwork/glean-cli glean-cli-apiTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →glean api
PREREQUISITE: Readfor auth, global flags, and security rules.../glean-cli/SKILL.md
Make a raw authenticated HTTP request to any Glean REST API endpoint.
bash
glean api [flags]Flags
| Flag | Type | Default | Description |
|---|---|---|---|
| boolean | false | Same as --preview |
| string | Path to a JSON file to use as request body | |
| GET | POST | PUT | DELETE | PATCH | GET | HTTP method |
| boolean | false | Disable colorized output |
| boolean | false | Print request details without sending |
| boolean | false | Print raw response without syntax highlighting |
| string | JSON request body as a string |
Examples
bash
glean api search --method POST --raw-field '{"query":"test"}' --no-color | jq .resultsDiscovering Commands
bash
# Show machine-readable schema for this command
glean schema api
# List all available commands
glean schema | jq '.commands'