Skip to content

runAddCoreVariationCommand

runAddCoreVariationCommand(options): Promise<{ projectDir: string; targetBlockName: string; variationFile: string; variationSlug: string; }>

Defined in: wp-typia-project-tools/src/runtime/cli-add-workspace-core-variation.ts:406

Add one editor-side variation registration for an existing core or external block.

RunAddCoreVariationCommandOptions

Command options for the core-variation scaffold workflow.

Promise<{ projectDir: string; targetBlockName: string; variationFile: string; variationSlug: string; }>

The normalized variation metadata and owning workspace directory.

When the command is run outside an official workspace, the target block name is not full namespace/block form, or the generated file already exists.