feat: add elastic api for untyped HTTP
- Dominant language
- TypeScript
- Stars
- 41
- Forks
- 24
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 56
Description
The command surface is generated from specs, but agents still hit gaps: preview Kibana routes, custom headers, undocumented query params, and hitting an arbitrary path during incidents.
Add `elastic api ` that uses the active context's ES, Kibana, or Cloud base URL (`--service es|kb|cloud`). Reuse existing auth, `--json`, `--dry-run`, `--input-file`. No pagination helper in MVP.
Prefer typed commands. Use `elastic api` only when no generated command exists.
Acceptance: `elastic api GET / --service es --dry-run` prints the resolved request. A real GET `/` against a configured ES returns cluster info. Path params are encoded. `redirect: 'error'` on the fetch.
Contributor guide
Assessment
This issue has not been assessed yet.