All apps/shadcn/ui CLI

shadcn/ui CLI

shadcn-ui

Add shadcn/ui components to a project.

Runs as shadcn-ui|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 7 fields

Initialize a project or add components. The diff subcommand is left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui shadcn-ui

shadcn-ui init

Initialize project
Initialize projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Skip confirmation
-y
Working directory
directory
TasksEach one presets the form for one job
Initialize
yescwd
ParametersOnly these flags are editable in the form
Skip confirmation
boolean
-y--yes
Working directory
path
-c--cwd

shadcn-ui add

Add components
Add componentsExample values, fixed in this page — nothing here reaches a terminal
Basic
Components*
string
Skip confirmation
-y
Overwrite existing
-o
TasksEach one presets the form for one job
Add components
componentsyesoverwrite
ParametersOnly these flags are editable in the form
Components
e.g. button dialog
string · positional 0 · repeatable
Skip confirmation
boolean
-y--yes
Overwrite existing
boolean
-o--overwrite
Working directory
path
-c--cwd
Target path
string
-p--path
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed shadcn-ui against its version. A form that does not match your version is not offered.