elastic / elastic/cli

fix: invalid --region-id should name list-regions

Aperta
#653 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
cloud enhancement
Lingua principale
TypeScript
Stelle
41
Fork
24
Merge medio
1g 3h
PR unite (30g)
56

Descrizione

Create requires `--region-id` copied from docs or from `elastic cloud serverless regions list-regions`. A typo comes back as a raw 400.

On create (and hosted `create-deployment` if the body is a region error): append `elastic cloud serverless regions list-regions` (or the hosted equivalent). Do not preflight the region list in MVP.

Acceptance: create with `--region-id not-a-region` mentions `list-regions` on stderr. `--json` includes `error.hint`.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.