@esvigy/cli
v0.2.1
Published
Official CLI for Esvigy — add customizable, animated illustrations directly to your project.
Maintainers
Readme
⚡ Quick Start
You don't need to install this package permanently. Run it directly with your package manager:
# With pnpm
pnpm dlx @esvigy/cli add
# With npm
npx @esvigy/cli add
# With bun
bunx @esvigy/cli add
# With yarn
yarn dlx @esvigy/cli addNote: The unscoped alias
esvigyis currently pending an npm support whitelist review (false-positive similarity flag withenvify). In the meantime, use@esvigy/cli.
If no arguments are passed, an interactive wizard prompts you to select illustrations, target framework, and verifies your installation folder.
🚀 Direct Usage
Add a specific illustration:
# React component (.tsx)
pnpm dlx @esvigy/cli add ActionCreate --framework react
# Raw SVG (.svg) into public folder
pnpm dlx @esvigy/cli add EmptyBox --framework svg --dir public/illustrations
# Multiple illustrations at once
pnpm dlx @esvigy/cli add StatusSuccess StatusFail StatusProcessing🧠 Smart Component Folder Auto-Detection
esvigy automatically inspects your project layout so you don't have to specify --dir every time:
- shadcn/ui
components.json: If your project has acomponents.jsonconfiguration,esvigyreads youraliases.componentspath (e.g.@/componentsor~/components) and targets<components>/esvigy/. - Project Structure:
- If
src/components/exists $\rightarrow$ targetssrc/components/esvigy/ - If
components/exists $\rightarrow$ targetscomponents/esvigy/ - If
src/exists $\rightarrow$ targetssrc/components/esvigy/ - Fallback:
components/esvigy/
- If
- Framework Auto-Detection:
Inspects
package.jsondependencies to determine whether you're using React, Vue, or Svelte, and pre-selects the appropriate framework in the interactive prompt.
📋 Commands
esvigy add [illustrations...]
| Option | Shorthand | Description | Default |
| :--- | :---: | :--- | :--- |
| --framework | -f | Target framework (react, svg, vue, svelte) | Auto-detected |
| --dir | -d | Target folder for the components | Auto-detected components/esvigy |
| --yes | -y | Skip interactive prompts and accept detected defaults | false |
| --overwrite | | Overwrite existing files if they already exist | false |
esvigy list
List all 30+ illustrations in the catalog with category groupings and tags:
# List all illustrations
pnpm dlx @esvigy/cli list
# Filter by category
pnpm dlx @esvigy/cli list --category empty-states
pnpm dlx @esvigy/cli list --category status
pnpm dlx @esvigy/cli list --category actions
# Output as JSON
pnpm dlx @esvigy/cli list --json📄 License
MIT © Nick Frost
