upgrade
Learn how to upgrade components and slots.
This command upgrades components and slots in your project to the latest version, regenerating type definitions and fallback content accordingly.
Usage
This command has the following syntax:
croct upgrade <options>Example
Upgrade all components and slots:
npm
npx croct@latest upgradeUpgrade specific slots:
npm
npx croct@latest upgrade --slots hero-banner sidebar-ctaUpgrade specific components:
npm
npx croct@latest upgrade --components hero-bannerOptions
Besides the global options, this command accepts the following options:
- --slots, -s(optional)Array<string>
One or more slots to upgrade, separated by spaces.
If neither --slots nor --components is specified, all slots and components are upgraded.
- --components, -c(optional)Array<string>
One or more components to upgrade, separated by spaces.
If neither --slots nor --components is specified, all slots and components are upgraded.