Search code examples
cordovacordova-cli

Cordova CLI deploy to plugged Windows phone


I want to use Cordova CLI to deploy to my USB plugged Windows Phone. Unfortunately the following command deploys to my laptop instead of the device.

cordova run windows

Any idea how to fix without using Visual Studio?


Solution

  • You need to run cordova run windows --device -- --phone command instead to run on device. Plus cordova run windows --list will show all available targets. Further you can go through documentation into "Deploy the app" section.