diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index 83a862ec55..97e8523149 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -15466,6 +15466,10 @@ components: type: boolean on_behalf_of_email: type: string + debounce_key: + type: string + debounce_delay_s: + type: number required: - hash diff --git a/cli/src/commands/workspace/migrate.ts b/cli/src/commands/workspace/migrate.ts index 0cf04786b4..59deda60ed 100644 --- a/cli/src/commands/workspace/migrate.ts +++ b/cli/src/commands/workspace/migrate.ts @@ -10,7 +10,7 @@ async function migrate( opts: GlobalOptions & { token?: string; remote?: string; - sourceWorkspaceId?: string; + sourceWorkspace?: string; }, targetWorkspaceId: string ) { @@ -18,12 +18,12 @@ async function migrate( let remote: string; let sourceWorkspaceId: string; - if (opts.token && opts.remote && opts.sourceWorkspaceId) { + if (opts.token && opts.remote && opts.sourceWorkspace) { token = opts.token; remote = opts.remote.endsWith("/") ? opts.remote.substring(0, opts.remote.length - 1) : opts.remote; - sourceWorkspaceId = opts.sourceWorkspaceId; + sourceWorkspaceId = opts.sourceWorkspace; log.info( colors.blue("Running in worker job mode with provided credentials") ); @@ -117,10 +117,10 @@ const command = new Command() .name("migrate") .description("Migrate workspace data from source to target workspace") .arguments("") - .option("--token ", "API token for worker job mode") - .option("--remote ", "Remote URL for worker job mode") + .option("-t --token ", "API token for worker job mode") + .option("-r --remote ", "Remote URL for worker job mode") .option( - "--source-workspace ", + "-s --source-workspace ", "Source workspace ID (defaults to active workspace in CLI mode, required in worker job mode)" ) .action(migrate as any);