capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

feat: Add --forwardPorts option to Capacitor CLI

Open thomasvidas opened this issue 2 years ago • 0 comments

Exposes the --forwardPorts option from native-run to the Capacitor CLI. When an npx cap run android --forwardPorts 8000:8000 is run, the following happens.

  • A Capacitor Sync
  • Device Boot & Connection
  • adb reverse tcp:${port} tcp:${port}
  • Install and run a debug APK

Opening as a Draft PR because

  • changes may be needed in native-run to work properly
  • maybe a --live-reload flag with the port in the config makes more sense?

thomasvidas avatar May 26 '22 17:05 thomasvidas