add slot

Learn how to add a slot to your project.

This command adds one or more slots to your project, regenerating type definitions and downloading fallback content accordingly.

Usage

This command has the following syntax:

croct add slot <slots> <options>

Example

Add a slot interactively:

npx croct@latest add slot

Add a specific slot:

npx croct@latest add slot hero-banner

Add multiple slots at once:

npx croct@latest add slot hero-banner sidebar-cta

Add a slot at a specific version:

npx croct@latest add slot hero-banner@1

Arguments

slots(optional)
Array<string>

One or more slots to add, separated by spaces.

You can specify a version for each slot using the @ symbol, for example hero-banner@1. If omitted, the CLI prompts you to select slots interactively.

Options

Besides the global options, this command accepts the following options:

--example, -e(optional)
boolean

Generate an implementation example.