diff --git a/packages/cli/src/commands/onboard/command.ts b/packages/cli/src/commands/onboard/command.ts index 0e57fe892a..f68685f3e6 100644 --- a/packages/cli/src/commands/onboard/command.ts +++ b/packages/cli/src/commands/onboard/command.ts @@ -51,6 +51,15 @@ export async function command(): Promise { const { shouldSetupAuth, shouldSetupScaffolder, shouldDiscoverEntities } = answers; + if (!shouldSetupAuth && !shouldSetupScaffolder && !shouldDiscoverEntities) { + Task.log( + chalk.yellow( + 'If you change your mind, feel free to re-run this command.', + ), + ); + return; + } + let providerInfo; if (shouldSetupAuth) { providerInfo = await auth(); @@ -64,15 +73,6 @@ export async function command(): Promise { await discover(providerInfo); } - if (!shouldSetupAuth && !shouldSetupScaffolder && !shouldDiscoverEntities) { - Task.log( - chalk.yellow( - 'If you change your mind, feel free to re-run this command.', - ), - ); - return; - } - Task.log(); Task.log( `You can now start your app with ${chalk.inverse(