diff --git a/packages/sfpowerscripts-cli/messages/deploy.json b/packages/sfpowerscripts-cli/messages/deploy.json index 47c2f5e53..12e357891 100644 --- a/packages/sfpowerscripts-cli/messages/deploy.json +++ b/packages/sfpowerscripts-cli/messages/deploy.json @@ -10,5 +10,6 @@ "baselineorgFlagDescription": "The org against which the package skip should be baselined", "allowUnpromotedPackagesFlagDescription": "Allow un-promoted packages to be installed in production", "retryOnFailureFlagDescription": "Retry on a failed deployment of a package", - "configFileFlagDescription":"Path to the config file which determines how the packages are deployed based on the filters in release config" + "configFileFlagDescription":"Path to the config file which determines how the packages are deployed based on the filters in release config", + "enableSourceTrackingFlagDescription": "Enable source tracking on the packages being deployed to an org" } diff --git a/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts b/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts index b8aaa4506..d7461a750 100644 --- a/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts +++ b/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/deploy.ts @@ -77,6 +77,9 @@ export default class Deploy extends SfpowerscriptsCommand { releaseconfig: flags.string({ description: messages.getMessage('configFileFlagDescription'), }), + enablesourcetracking: flags.boolean({ + description: messages.getMessage('enableSourceTrackingFlagDescription'), + }), loglevel: flags.enum({ description: 'logging level for this command invocation', default: 'info', @@ -127,7 +130,7 @@ export default class Deploy extends SfpowerscriptsCommand { waitTime: this.flags.waittime, tags: tags, isTestsToBeTriggered: false, - deploymentMode: DeploymentMode.NORMAL, + deploymentMode: this.flags.enablesourcetracking? DeploymentMode.SOURCEPACKAGES_PUSH: DeploymentMode.NORMAL, skipIfPackageInstalled: this.flags.skipifalreadyinstalled, logsGroupSymbol: this.flags.logsgroupsymbol, currentStage: Stage.DEPLOY,