We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2244836 commit 04dac76Copy full SHA for 04dac76
src/commands/project/deploy/start.ts
@@ -199,6 +199,12 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {
199
throw messages.createError('error.NoTestsSpecified');
200
}
201
202
+ const noDeployFlags = !flags['source-dir'] && !flags.manifest && !flags.metadata && !flags['metadata-dir'];
203
+
204
+ if (noDeployFlags && !(await flags['target-org'].tracksSource())) {
205
+ this.warn(messages.getMessage('noSourceTrackingWarning'));
206
+ }
207
208
const api = await resolveApi(this.configAggregator);
209
const username = flags['target-org'].getUsername();
210
const title = flags['dry-run'] ? 'Deploying Metadata (dry-run)' : 'Deploying Metadata';
0 commit comments