diff --git a/packages/nx/src/command-line/migrate.ts b/packages/nx/src/command-line/migrate.ts index 5611f0f7a8b8f..c3c805d8b2a60 100644 --- a/packages/nx/src/command-line/migrate.ts +++ b/packages/nx/src/command-line/migrate.ts @@ -58,6 +58,7 @@ import { getNxRequirePaths } from '../utils/installation-directory'; import { readNxJson } from '../config/configuration'; import { runNxSync } from '../utils/child-process'; import { daemonClient } from '../daemon/client/client'; +import { isNxCloudUsed } from '../utils/nx-cloud-utils'; export interface ResolvedMigrationConfiguration extends MigrationsJson { packageGroup?: ArrayPackageGroup; @@ -1192,7 +1193,8 @@ async function generateMigrationsJsonAndUpdatePackageJson( if ( ['nx', '@nrwl/workspace'].includes(opts.targetPackage) && (await isMigratingToNewMajor(from, opts.targetVersion)) && - !isCI() + !isCI() && + !isNxCloudUsed() ) { const useCloud = await connectToNxCloudCommand( messages.getPromptMessage('nxCloudMigration')