UNPKG

@jungvonmatt/sb-migrate

Version:

CLI tool for managing Storyblok schema and content migrations

19 lines (18 loc) 813 B
/** * Pulls component definitions from a Storyblok space and saves them locally. * * This function performs the following operations: * 1. Verifies that the Storyblok CLI is installed * 2. Loads the configuration to get the Space ID * 3. Executes the Storyblok CLI command to pull components * * @throws {Error} If the Storyblok CLI is not installed * @throws {Error} If no Space ID is found in the configuration * @throws {Error} If the component pull operation fails * * @requires storyblok-cli - The Storyblok CLI must be installed globally * @requires config - A valid configuration with a Space ID must exist * * @see {@link https://github.com/storyblok/storyblok-cli?tab=readme-ov-file#pull-components|Storyblok CLI Documentation} */ export declare function pullComponents(): Promise<void>;