@entrepta/cli
v1.0.2
Published
entrepta CLI — add components to your project
Maintainers
Readme
@entrepta/cli
The CLI for entrepta, a dark-first design system.
Install
You do not install this package globally. Use npx:
npx @entrepta/cli@latest initCommands
init
Bootstraps a project. Writes globals.css, lib/utils.ts, and entrepta.json. Prompts for a theme.
npx @entrepta/cli@latest init
npx @entrepta/cli@latest init --theme=ivy
npx @entrepta/cli@latest init --overwriteOptions:
-t, --theme <preset>— pick one ofentrepta,blossom,marmalade,julia,ivy,bosco--overwrite— replace existing files without asking
add <component>
Copies one or more components into your project. Resolves dependencies automatically.
npx @entrepta/cli@latest add button
npx @entrepta/cli@latest add button card command-palette
npx @entrepta/cli@latest add # interactive pickerOptions:
--overwrite— replace existing files without asking
What gets written
After init:
your-app/
├── app/globals.css CSS tokens, reset, fonts
├── entrepta.json Theme + paths
└── lib/utils.ts cn helperAfter add button:
your-app/
└── components/entrepta/button.tsxManual install
Don't want the CLI? Every component has a Manual tab in the docs with its dependency list and copy-pasteable source.
License
MIT. Built by Anna Maria.
