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:

npx croct@latest upgrade

Upgrade specific slots:

npx croct@latest upgrade --slots hero-banner sidebar-cta

Upgrade specific components:

npx croct@latest upgrade --components hero-banner

Options

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.