diff --git a/packages/@ionic/cli/src/commands/capacitor/run.ts b/packages/@ionic/cli/src/commands/capacitor/run.ts index 0398a6e90..e78b2149e 100644 --- a/packages/@ionic/cli/src/commands/capacitor/run.ts +++ b/packages/@ionic/cli/src/commands/capacitor/run.ts @@ -205,7 +205,9 @@ For Android and iOS, you can setup Remote Debugging on your device with browser ); } } else { - if (targets.length > 0) { + if (targets.length === 1) { + options['target'] = targets[0].id; + } else if (targets.length > 1) { options['target'] = await this.env.prompt({ type: 'list', name: 'target',