Skip to main content

build

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

来源信息

仓库
elastic/cli
最近来源活动
2026年9月28日 18:54
检测到的 SKILL.md 语言
英语
星标
49
Forks
27

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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.
在 GitHub 查看