@twist-toast/cli
v0.1.0
Published
CLI for twist-toast to initialize project config and add components.
Maintainers
Readme
@twist-toast/cli
CLI for twist-toast.
This package provides the user-facing command used to initialize twist-toast config and add toast components to a project.
Commands
init
Initialize twist-toast config for the current project.
Options:
-y, --yes: Skip prompts and use defaults
Example:
twist-toast init
twist-toast init --yesadd [components...]
Add one or more twist-toast components.
Options:
-a, --all: Add all available components
Current scaffold component names:
toast-providertoast-roottoast-titletoast-descriptiontoast-actiontoast-closetoast-viewport
Examples:
twist-toast add toast-root toast-title
twist-toast add --allCurrent Status
The CLI currently includes the command structure and prompts. Project file generation and component installation logic will be added next.
Local Development
From the repo root:
pnpm --filter @twist-toast/cli check-types
pnpm --filter @twist-toast/cli build
node packages/cli/dist/index.mjs --help