@noarka/cli
v0.1.7
Published
Scaffold Noarka UI primitives into your project.
Maintainers
Readme
@noarka/cli
Scaffold Noarka UI primitives into your project.
npx @noarka/cli init
npx @noarka/cli add button
npx @noarka/cli listinitwritesutils/cn.tsonce per project and wires the design tokens into your existing stylesheet entry (app/globals.css,styles/globals.css,src/index.css, ...), creating one if none exists.add <component>copies the primitive tocomponents/ui/(lowercase basenames, imports rewritten for the flat layout) and ensures the token wiring above. Components that use another primitive print a follow-upaddcommand.- Templates ship inside
@noarka/uiitself, so scaffolded code always matches the installed library version.
Conflicts
When a scaffolded file already exists, you are asked per file whether to
replace it, so local edits are never silently dropped. Pass --overwrite
to replace everything without prompting (non-interactive runs, like CI,
also keep existing files unless the flag is used).
Options: --dir <path> scaffolds into another project root, --overwrite
replaces existing files.
