Neobrutalism UI LogoNeobrutal UI

CLI

init

Set up your project for Neobrutal UI. Creates the configuration file, installs base dependencies, and adds the utility functions.

npx neobrutal init
OptionDescription
-y, --yesSkip prompts and use defaults
-c, --cwd <path>Working directory (defaults to current)

add

Add one or more components to your project. Resolves dependencies and installs required packages automatically.

npx neobrutal add [component...]
OptionDescription
-y, --yesSkip confirmation prompts
-o, --overwriteOverwrite existing files
-a, --allAdd all available components
-c, --cwd <path>Working directory
# Add a single component
npx neobrutal add button
# Add multiple components
npx neobrutal add button card dialog
# Add all components
npx neobrutal add --all

list

Display all components available in the registry.

npx neobrutal list

diff

Compare local components with the registry to check for updates. Useful when you want to see what has changed without overwriting your customizations.

npx neobrutal diff [component]
# Check all installed components
npx neobrutal diff
# Check a specific component
npx neobrutal diff button

Configuration

The init command creates a components.json file in your project root. This file tells the CLI where to place components and how to resolve imports.

{
"$schema": "https://www.neobrutalui.live/schema.json",
"style": "default",
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"baseColor": "neutral"
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
PropertyDescription
styleComponent style variant
tailwind.cssPath to global CSS file
aliases.componentsImport alias for components
aliases.utilsImport alias for utilities