Add MarkasUI components to your project with npx markasui.
The markasui CLI fetches components from the registry and writes them into your project. No install needed, run it with npx. Laravel projects can use it too, since they already use Node through Vite.
init
npx markasui@latest init- Detects the framework:
artisanmeans Blade,reactinpackage.jsonmeans React,vuemeans Vue. - Creates
markas.jsonwith the framework and target folders. - Copies
markas.cssinto your CSS folder.
Example markas.json:
{
"framework": "blade",
"componentsDir": "resources/views/components/markas",
"cssPath": "resources/css/markas.css"
}add
npx markasui@latest add button modalWrites component files to componentsDir. The CLI never overwrites an existing file without asking. Use --overwrite to replace files without a prompt. When a component needs a dependency (Alpine.js for Blade, for example), the CLI prints the install command.
list
npx markasui@latest listShows every component by category.
Options
| Option | Description |
|---|---|
--cwd <path> | Project folder. Defaults to the current folder. |
--framework <blade|react|vue> | Skip detection. |
--overwrite | Replace changed files without asking. |
-y, --yes | Answer yes to every prompt. |
--registry <url> | Another registry, such as a local mirror. |
Another registry
The CLI reads components from https://. Point it at a mirror or a local folder with --registry or the MARKASUI_REGISTRY environment variable.