Replies: 18 comments 17 replies
|
This adds/installs (and overwrites if existing) all shadcn components: |
|
You can use the following command line to update only installed components ! Note: it can conflict a bit with components like Toast (one installation for multiple components) |
|
I think that can be done by using the |
|
The backstage project has an upgrade helper that I think could be very useful for shadcn to see what has changed between versions. If it was integrated into the docs and on a component level it would be even better. |
|
If we custom styled the built-in components from source code. Is any way to update to latest version and keep our own changed? |
|
this is really important feature |
|
So you must
Please. provide an upgrade command !!!!!!!!!!! |
|
I just tried why the also... isn't a way to use components.json !? |
|
Its very difficult to update components one by one. Looking for a command to do this... |
|
This collects all .tsx filenames (without extension) in src/components/ui/ and passes them as arguments to shadcn add. bunx --bun shadcn@latest add $(Get-ChildItem -Path src/components/ui/ -Filter *.tsx | ForEach-Object { [System.IO.Path]::GetFileNameWithoutExtension($_.Name) } | ForEach-Object { $_ }) -y |
|
is there any progress on this? |
|
Hi, I'm late to the party, but isn't there already an update command ? bun x shadcn-svelte@next update --all --yesand it seems all my existing components were updated. |
|
Now that this is literally in the hands of Vercel, this should be done ASAP. This is insane we dont have this yet. |
|
The critical issue with this feature is that we do not store anywhere the information about which exact versions of the Shadcn components were installed in the project, so I created a separate feature request to store this information: #10374 If we store this, we can just launch something like So, if you have 100 components, but changed only 1 line in 1 component, this diff will show you only this single component and only this single changed line, not 100500 changes in other components, like it does now. So, let's upvote the feature request #10374 to simplify the updating process! |
|
you might wanna check out this discussion where I implemented a new resizable and dragable dashboard layout... this can be very helpfull to many developers in making analytic, sharable dashboard, the users can alter the dashboard based on their liking... The disscussion link: #10466 |
|
Git already solves all these problems fwiw. Someone could setup a mirror repo for just the components inside the shadcn repo. Then you could initialize a git sub module inside your components folder, and set the mirror repo as the remote. Then anytime there are new updates, you just pull. Anytime there's a conflict, you get a true merge conflict that is compatible with git tooling. |

Uh oh!
There was an error while loading. Please reload this page.
Currently when I want to upgrade my components, i have to manually make a list of all my existing components and
addcommand one by one for each one.ideally the components themselves should be part of
components.jsonfile and a single command likeupdatewould update them to the latest version. i also thinkthemeshould be added to the config file too to allow easy experimentation with swtiching themes.All reactions