diff --git a/packages/nx/src/command-line/connect/connect-to-nx-cloud.ts b/packages/nx/src/command-line/connect/connect-to-nx-cloud.ts index 2e59122c20754..2b743b18d3031 100644 --- a/packages/nx/src/command-line/connect/connect-to-nx-cloud.ts +++ b/packages/nx/src/command-line/connect/connect-to-nx-cloud.ts @@ -67,7 +67,8 @@ export async function connectToNxCloudCommand(): Promise { export async function connectToNxCloudWithPrompt(command: string) { const setNxCloud = await nxCloudPrompt('setupNxCloud'); - const useCloud = setNxCloud ? await connectToNxCloudCommand() : false; + const useCloud = + setNxCloud === 'yes' ? await connectToNxCloudCommand() : false; await recordStat({ command, nxVersion,