mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-09 06:55:07 +00:00
* chore: tweaks to build-registry.mts ~ 1 file 2+ 5- apps/v4/scripts/build-registry.mts * chore: tweaks to index.json ~ 1 file 4+ 9- apps/www/public/r/styles/new-york-v4/index.json * chore: tweaks to registry.json ~ 1 file 221+ 850- apps/v4/registry.json * chore: tweaks to index.json ~ 1 file 47+ 144- apps/www/public/r/index.json * chore: tweaks to registry.json ~ 1 file 852+ 221- apps/v4/registry.json * chore: tweaks to build-registry.mts ~ 1 file 7+ 2- apps/v4/scripts/build-registry.mts * chore: tweaks to build-registry.mts ~ 1 file 2+ 2- apps/v4/scripts/build-registry.mts * chore: tweaks to index.json ~ 1 file 11+ 4- apps/www/public/r/styles/new-york-v4/index.json * chore: tweaks to index.json ~ 1 file 1+ 1- apps/www/public/r/index.json * chore: tweaks to index.json ~ 1 file 143+ 46- apps/www/public/r/index.json * chore: tweaks to update-dependencies.ts ~ 1 file 20+ packages/shadcn/src/utils/updaters/update-dependencies.ts * chore: tweaks to update-dependencies.ts ~ 1 file 1- packages/shadcn/src/utils/updaters/update-dependencies.ts * chore: tweaks to update-dependencies.ts ~ 1 file 19- packages/shadcn/src/utils/updaters/update-dependencies.ts * chore: tweaks to add-components.ts update-dependencies.ts ~ 2 files 21+ 2- packages/shadcn/src/utils/add-components.ts packages/shadcn/src/utils/updaters/update-dependencies.ts * chore: tweaks to update-dependencies.ts ~ 1 file 29+ 28- packages/shadcn/src/utils/updaters/update-dependencies.ts * refactor: remove redundant code tw-animate-css already has accordion animations * chore: tweaks > migrate-icons.ts packages/shadcn/src/migrations/migrate-icons.ts * fix: formatting > add-components.ts update-dependencies.ts packages/shadcn/src/utils/add-components.ts packages/shadcn/src/utils/updaters/update-dependencies.ts * chore: add changeset --------- Co-authored-by: shadcn <m@shadcn.com>
shadcn
A CLI for adding components to your project.
Usage
Use the init command to initialize dependencies for a new project.
The init command installs dependencies, adds the cn util, configures tailwind.config.js, and CSS variables for the project.
npx shadcn init
add
Use the add command to add components to your project.
The add command adds a component to your project and installs all required dependencies.
npx shadcn add [component]
Example
npx shadcn add alert-dialog
You can also run the command without any arguments to view a list of all available components:
npx shadcn add
Documentation
Visit https://ui.shadcn.com/docs/cli to view the documentation.
License
Licensed under the MIT license.