# Installation

> Add any Cloudlet component with the shadcn CLI, or install an engine from npm.

Source: https://cloudlet.dev/docs/installation

Every component is a shadcn registry item. Engines are also npm packages, for projects that do not use shadcn/ui. The commands below are written for npm; the switch above each one shows it for pnpm, yarn or bun.

## With the shadcn CLI

Add an item by its name under the `@cloudlet` namespace:

```sh title="Terminal"
npx shadcn@latest add @cloudlet/color-picker
```

| Item | Component | What it adds |
| --- | --- | --- |
| `toaster` | [Toaster](https://cloudlet.dev/docs/components/toaster) | A wrapper and a theme bridge for `@cloudlet/toast`, which it adds as a dependency |
| `color-picker` | [Color picker](https://cloudlet.dev/docs/components/color-picker) | The picker's source, nothing in `package.json` |
| `color-palette` | [Color palette](https://cloudlet.dev/docs/components/color-palette) | The palette's source, and the `color-picker` item it needs |
| `onboarding` | [Onboarding](https://cloudlet.dev/docs/components/onboarding) | The tour's source and its agent adapter, nothing in `package.json` |
| `onboarding-island` | [Onboarding in the Island](https://cloudlet.dev/docs/components/onboarding#island) | The tour in the Toaster's Island, the `onboarding` item it needs, and `@cloudlet/toast` as a dependency |
| `notification-center` | [Notification center](https://cloudlet.dev/docs/components/notification-center) | A panel wrapper and a bell for `@cloudlet/toast/center`, and `@cloudlet/toast` as a dependency |

If your CLI does not resolve the `@cloudlet` namespace, give it the item's address instead: `https://cloudlet.dev/r/<item>.json`.

```sh title="Terminal"
npx shadcn@latest add https://cloudlet.dev/r/color-picker.json
```

## With npm

An engine installs as a package. The Toaster is `@cloudlet/toast`, and the notification center comes with it at `@cloudlet/toast/center`:

```sh title="Terminal"
npm install @cloudlet/toast
```

The package has React peers and one CSS file to import; [Toaster installation](https://cloudlet.dev/docs/components/toaster#installation) has the requirements and where the import goes.

Simple components have no package: add them with the shadcn CLI.

## Next steps

- [Toaster](https://cloudlet.dev/docs/components/toaster): the stack, the Island and the controller.
- [Color picker](https://cloudlet.dev/docs/components/color-picker): the swatch and the panel.
- [Color palette](https://cloudlet.dev/docs/components/color-palette): a row of up to four pickers.
- [Onboarding](https://cloudlet.dev/docs/components/onboarding): a product tour over your app.
- [Notification center](https://cloudlet.dev/docs/components/notification-center): a panel for your app's own notifications, and its bell.
- [Agents](https://cloudlet.dev/docs/agents): connect the components to an AI agent in your app.
