# upgrade

Learn how to upgrade components and slots.

This command upgrades components and slots in your project to the latest version, [regenerating type definitions](/reference/cli/type-generation) and [fallback content](/reference/cli/fallback-content) accordingly.

## Usage

This command has the following syntax:

```sh
croct upgrade <options>
```

## Example

Upgrade all components and slots:

```sh
croct upgrade
```

Upgrade specific slots:

```sh
croct upgrade --slots hero-banner sidebar-cta
```

Upgrade specific components:

```sh
croct upgrade --components hero-banner
```

## Options

Besides the [global options](../global-options), this command accepts the following options:

- `--slots, -s`: `Array<string>` (optional)

  One or more slots to upgrade, separated by spaces.

  If neither `--slots` nor `--components` is specified, all slots and components are upgraded.

- `--components, -c`: `Array<string>` (optional)

  One or more components to upgrade, separated by spaces.

  If neither `--slots` nor `--components` is specified, all slots and components are upgraded.

## Explore

- [Type generation](/reference/cli/type-generation): Learn how the CLI generates type definitions.
- [Fallback content](/reference/cli/fallback-content): Learn how the CLI manages fallback content.
