ekairos-cli
raw JSON → 1.22.3 verified Sat Apr 25 auth: no javascript
CLI tool for scaffolding and managing Ekairos components in projects. Current stable version is 1.22.3, released monthly. Focused on integration with Ink-based React CLIs and shadcn-style component management. Differentiates from generic CLIs by tightly coupling with the Ekairos design system and offering opinionated defaults for rapid UI development.
Common errors
error Error: Cannot find module 'ink' ↓
cause Missing peer dependency ink.
fix
Install ink: npm install ink
error Error [ERR_REQUIRE_ESM]: require() of ES Module ... from ... not supported. ↓
cause Using CJS require() for ESM-only package.
fix
Use import() or dynamic import; update to ESM.
error Command 'generate' not found. Did you mean 'add'? ↓
cause Deprecated command removed in recent version.
fix
Use 'add' subcommand instead.
Warnings
breaking Version 1.0 moved from CJS to ESM-only. Node <14 not supported. ↓
fix Update Node to >=14 or use dynamic import if CJS is required.
gotcha CLI uses Ink for rendering; must be run in an interactive terminal environment. ↓
fix Ensure environment supports TTY; avoid piping output without --no-color.
deprecated The 'generate' command is deprecated in favor of 'add' since v1.20. ↓
fix Use 'add' subcommand instead of 'generate'.
Install
npm install ekairos-cli yarn add ekairos-cli pnpm add ekairos-cli Imports
- ekairos wrong
npm run ekairoscorrectnpx ekairos-cli add button - programmatic API wrong
const ekairos = require('ekairos-cli')correctimport { cli } from 'ekairos-cli' - types wrong
import { ComponentConfig } from 'ekairos-cli'correctimport type { ComponentConfig } from 'ekairos-cli'
Quickstart
npx ekairos-cli@latest init my-project
cd my-project
npx ekairos-cli add button
npx ekairos-cli add card