elastic / elastic/cli

feat: add elastic api for untyped HTTP

Open
#641 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.