CLI

Use the CLI to add components to your project

init

Initialize your project and install dependencies.

pnpm dlx homeontour-ui@latest init

add

Add components to your project.

Add a single component to your project:

pnpm dlx homeontour-ui@latest add logo-svg

This will:

  • Download the component from the registry
  • Install required dependencies
  • Install shadcn/ui components if needed
  • Save to components/homeontour-ui/

Options

-y, --yes
Skip confirmation prompts
pnpm dlx homeontour-ui@latest add logo-svg --yes
-o, --overwrite
Overwrite existing files
pnpm dlx homeontour-ui@latest add logo-svg --overwrite

Usage Example

After adding a component, import and use it in your project:

import { LogoSvg } from '@/components/homeontour-ui/logo-svg'

export default function MyComponent() {
  return (
    <LogoSvg className="h-10" />
  )
}

Package Managers

The CLI works with all major package managers:

pnpm dlx homeontour-ui@latest add logo-svg