unovue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
5.34k stars 318 forks source link

[Bug]: No "update" command in the shadcn-vue CLI #892

Open Soviut opened 2 weeks ago

Soviut commented 2 weeks ago

Reproduction

see description

Describe the bug

I wanted to use the Autoform and the docs said I should first update the form component.

npx shadcn-vue@latest update form

When I ran this, I got the following error

error: unknown command 'update'

And when I checked the --help for the CLI it wasn't there either

$ npx shadcn-vue@latest --help
Usage: shadcn-vue [options] [command]

add components and dependencies to your project

Options:
  -v, --version                  display the version number
  -h, --help                     display help for command

Commands:
  init [options]                 initialize your project and install dependencies
  add [options] [components...]  add a component to your project
  diff [options] [component]     check for updates against the registry
  help [command]                 display help for command

Also, these docs still mention the update command

https://github.com/unovue/shadcn-vue/blob/b7ef4653f75ea30b28ec2ff635cda4ab71dc2984/apps/www/src/content/docs/cli.md?plain=1#L87

System Info

System:
    OS: Linux 5.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900K
    Memory: 27.22 GB / 31.23 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm

Contributes