Loading...
Loading...
Make raw authenticated HTTP requests to any Glean REST API endpoint. Use when no dedicated command exists or for advanced API access.
npx skill4agent add gleanwork/glean-cli glean-apiPREREQUISITE: Readfor auth, global flags, and security rules.../glean-shared/SKILL.md
glean api [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 |
glean api search --method POST --raw-field '{"query":"test"}' --no-color | jq .results# Show machine-readable schema for this command
glean schema api
# List all available commands
glean schema | jq '.commands'