Auto-detection of Elasticsearch and Kibana version being used
I maintainer di solito rispondono entro 1 giorno
@JoshMock ci sta già lavorando.
Dal 13/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Following the work done in #530, the CLI should be able to auto-detect what versions of Elasticsearch and Kibana it is targeting, so that the commands and flags exposed align with what features are available in that version.
Requirements
elasticsearch.versionandkibana.versiontype changes from a semverstringtostring | { value: string, checked_ts: string }wherevalueis the semver string (orserverless), andchecked_tsis an ISO 8601 datetime string describing when that version was last checked.- The first time a CLI command is issued targeting an Elasticsearch or Kibana instance that has no
versionvalue set in its config file, it fetches the version first (GET /for Elasticsearch,GET /api/statusfor Kibana), setting it in the config using the{ value, checked_ts }form. Once the sniff is complete, the original command runs as normal, with commands filtered for the detected version. - Running
elastic statusalso sniffs and sets the sameversioninformation. - If
checked_tscontains a date more than 30 days in the past, re-run the sniff and update the values. - A
versionset as a plain string is treated as user-pinned: it is never sniffed, refreshed, or overwritten. Only the{ value, checked_ts }form expires. - An optional top-level
detect_version: booleankey (applies to all contexts) controls detection. Defaults totrue. If set tofalse, always skip the sniff step even if aversionvalue is not set. - If the config file is not writable, the sniff step should be skipped.
Implementation details
- Timing: the sniff runs during early config loading, before command registration, so availability filtering uses the detected version on the same invocation.
- Skipped modes: never sniff on
--helpor--dry-run. - Credentials: secrets (including
$(cmd:...)expressions) are resolved early only when a sniff is actually due. Invocations that do not need a sniff keep the current behavior from #706 (no early secret resolution). - Writing the config: update only the
contexts.<name>.<service>.versionnode usingyaml'sparseDocument, preserving the user's comments and formatting. Do not round-trip throughwriteConfig/serializeConfig, which drops comments. - Sniff failure (network error, 401, 404, unparseable response): fail open. Print a one-line warning to stderr (suppressed with
--json), continue without a version (all commands available), and write nothing. The next invocation retries. - HTTP: sniff requests set
redirect: 'error', like the other credentialed requests.
authored by Pi Coding Agent (Claude Opus 5.5)
- Lingua principale
- TypeScript
- Stelle
- 49
- Fork
- 27
- Merge medio
- 1g 23h
- PR unite (30g)
- 67
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di elastic/cli
-
feat: ship skills/elastic/SKILL.md for agent invocationForse già presa @onatozmenn l’ha presa 18 giorni fa. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
elastic/cli#628 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elastic/cli#617 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 58/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
documentation good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
sujithputta02/Esapay#13 ·
-
Share dialog: the address book's contact count reads "1 contacts" (no singular form in any language)Forse già presa @chibenwa l’ha presa oggi. Apertaai-driven-qa bug claude Cosmetic
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
linagora/twake-contacts-frontend#271 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Koenkk/zigbee2mqtt#33402 ·
I maintainer di solito rispondono entro 1 giorno
-
dx P2 platform Stellar Wave Wave 10
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
winsznx/routedock#579 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:ui effort:S enhancement priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno