elastic-package-cli

Automate Elastic integration package validation using elastic-package CLI commands.

15|5|Updated May 11, 2026
One-click install
npx skills add https://github.com/elastic/integration-skills --skill elastic-package-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elastic-package-cli
Source: https://github.com/elastic/integration-skills/tree/main/skills/elastic-package-cli
Command: npx skills add https://github.com/elastic/integration-skills --skill elastic-package-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developers building Elastic integrations spend time juggling multiple CLI commands and manual validation steps. This skill centralizes those tasks, ensuring consistent formatting, linting, packaging, and testing workflows.

Core Features & Use Cases

  • Validation & formatting: run format, lint, check, and build in a repeatable sequence to enforce package structure and quality.
  • Stack lifecycle & testing: manage a local Elastic stack and execute pipeline and system tests for end-to-end validation.
  • CI-ready workflows: integrate with CI pipelines to automatically validate packages before release.

Quick Start

From your package directory, run elastic-package format to validate and prepare your package for CI.

Frequently Asked Questions about elastic-package-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate an Elastic integration package before releasing it?

To validate an Elastic integration package, run the elastic-package format, lint, check, and build commands in sequence to enforce package structure and quality. This automated validation ensures consistent formatting and packaging for local development and CI workflows.

How do I run system tests for an Elastic integration locally?

You can run system tests for an Elastic integration by using the elastic-package stack and service commands to manage a local Elastic stack lifecycle. Execute the test command to perform pipeline and system tests for end-to-end validation.

What is the best way to automate Elastic integration formatting and linting in CI?

The best way to automate Elastic integration formatting and linting in CI is to integrate the elastic-package build, check, lint, and format commands into your pipeline. This centralizes validation tasks to automatically validate packages before release.

Do I need the elastic-package CLI installed to build and test Elastic integrations?

Yes, you need the elastic-package CLI installed in your PATH to build and test Elastic integrations. You must run the commands from a package directory or use the -C flag to target a specific package directory.

How do I benchmark an Elastic integration package?

To benchmark an Elastic integration package, use the elastic-package benchmark command provided by the CLI. This allows you to measure performance as part of the local development and validation lifecycle stages.