You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage: shadcn add [options] [components...]
add a component to your project
Arguments:
components the components to add or a url to the component.
Options:
-y, --yes skip confirmation prompt. (default: false)
-o, --overwrite overwrite existing files. (default: false)
-c, --cwd <cwd> the working directory. defaults to the current directory.
-a, --all add all available components. (default: false)
-p, --path <path> the path to add the component to.
-h, --help display help for command
Describe the bug
I haven't found any combination of arguments to get a custom path out of the add function
ui/packages/cli/src/commands/add.ts
Line 127 in 1081536
I noticed in the code that it resolves CWD, but passing that as an option as well doesn't work
ui/packages/cli/src/commands/add.ts
Line 54 in 1081536
Affected component/components
CLI
How to reproduce
npx shadcn@latest add -c . --path src button
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: