UNPKG

@jungvonmatt/sb-migrate

Version:

CLI tool for managing Storyblok schema and content migrations

22 lines (21 loc) 747 B
/** * Main configuration function for Storyblok CLI. * * This function: * 1. Loads existing configuration from file and environment variables * 2. If configuration exists: * - Verifies existing values with user * - Updates if needed * 3. If no configuration exists: * - Prompts for all required values * 4. Saves the final configuration to .storyblokrc.json * * The configuration process follows this flow: * - First checks for existing config in .storyblokrc.json * - Then checks for environment variables * - If found, verifies with user * - If not found or user wants to update, prompts for new values * * @throws {Error} If configuration saving fails */ export declare function configureStoryblok(): Promise<void>;