Skip to main content

build

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

Informations de source

Dépôt
elastic/cli
Dernière activité de la source
28 septembre 2026 à 18:54
Langue détectée de SKILL.md
anglais
Étoiles
47
Forks
27

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
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.
Voir sur GitHub