init

Initializes the widgetbook workspace.

Usage

bash
widgetbook init

Arguments

The CLI accepts the following arguments.

ArgumentMandatoryDefault*Description
--package./Directory of the app or the design system package
--output./Directory where the widgetbook workspace will be created
--emptyfalseCreate the workspace without generating stories for existing widgets

Use --empty to scaffold a Widgetbook workspace without any generated stories, for example when you want to write your first stories manually or with a coding agent.

bash
widgetbook init --empty

On this page