@editora/cli
v1.0.4
Published
Official Editora CLI for quickly adding UI components, editor packages, and SaaS-ready building blocks.
Maintainers
Readme
@editora/cli
Official CLI for quickly adding Editora packages.
Installation
Install globally (makes the editora command available system-wide):
npm install -g @editora/cli
# or
pnpm add -g @editora/cli
# or
yarn global add @editora/cliOne-off usage without installing (recommended for CI or quick runs):
npx @editora/cli add buttonVerify the CLI is available:
editora --versionShortcuts
- Add multiple components:
npx @editora/cli add button modal toast - Dry run:
npx @editora/cli add editor --dry-run(prints the install command) - Force package manager:
npx @editora/cli add button --package-manager pnpm - Make a quick alias (optional): install globally and add an alias to your shell:
npm install -g @editora/cli
echo "alias ed='editora'" >> ~/.zshrc # or ~/.bashrc
source ~/.zshrc
ed add buttonBoilerplates
Common usage examples and what they install:
- Install a single UI component (React wrappers):
npx @editora/cli add button
# installs: @editora/ui-react- Install the full React editor stack:
npx @editora/cli add editor
# installs: @editora/react @editora/plugins @editora/themes- Install everything used by the React + UI stack:
npx @editora/cli add all
# installs: @editora/ui-react @editora/toast @editora/react @editora/plugins @editora/themes @editora/react-icons @editora/light-code-editorUse --dry-run to verify the exact command before executing, and --package-manager to force npm, pnpm, yarn, or bun.
Usage
npx @editora/cli add button
npx @editora/cli add modal
npx @editora/cli add datatable
npx @editora/cli add editor
npx @editora/cli add toast
npx @editora/cli add accordion
npx @editora/cli add ui-selectMore commands
npx @editora/cli add react-icons
npx @editora/cli add light-code-editor
npx @editora/cli add all
npx @editora/cli add editor --dry-run
npx @editora/cli add button --package-manager pnpm
npx @editora/cli --help
npx @editora/cli --versionAny exported @editora/ui-react component name is accepted by editora add.
Notes
--dry-runprints the install command without executing it.--package-manager <npm|pnpm|yarn|bun>forces the package manager.--helpshows usage instructions.--versionprints the CLI version.
