Skip to main content

build

Install, compile, and verify a clean Elastic CLI checkout.

Quellinformationen

Repository
elastic/cli
Letzte Quellaktivität
28. September 2026 um 18:54
Erkannte Sprache von SKILL.md
Englisch
Sterne
54
Forks
31

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
build
description
Install, compile, and verify a clean Elastic CLI checkout.
# Build Node.js 22+. If `tsc` OOMs, set `NODE_OPTIONS=--max-old-space-size=8192`. ```bash npm ci npm run build npm test ``` `npm test` already runs `npm run build` then unit tests. `npm ci` for CI and clean checkouts; `npm install` is fine locally. ```bash npx tsc --noEmit npm run test:lint node scripts/generate-notice.mjs npm run build:schema ``` Commit `NOTICE.txt` after dependency changes and `docs/cli/schema.json` after command or flag changes. Do not edit `src/es/apis/*.ts`, `src/es/api-manifest.ts`, `src/kb/apis.ts`, or `src/kb/api-manifest.ts`. Unset `ELASTIC_CLI_CONFIG_FILE` before running the built binary against a real cluster.
Auf GitHub ansehen