Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    CLI

    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: artisan means Blade, react in package.json means React, vue means Vue.
    • Creates markas.json with the framework and target folders.
    • Copies markas.css into your CSS folder.

    Example markas.json:

    {
      "framework": "blade",
      "componentsDir": "resources/views/components/markas",
      "cssPath": "resources/css/markas.css"
    }

    add

    npx markasui@latest add button modal

    Writes 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 list

    Shows every component by category.

    Options

    OptionDescription
    --cwd <path>Project folder. Defaults to the current folder.
    --framework <blade|react|vue>Skip detection.
    --overwriteReplace changed files without asking.
    -y, --yesAnswer yes to every prompt.
    --registry <url>Another registry, such as a local mirror.

    Another registry

    The CLI reads components from https://markas.jenderalcorp.com/r. Point it at a mirror or a local folder with --registry or the MARKASUI_REGISTRY environment variable.