Ioniconf 2022 logo

Uniting our global community of Ionic developers and contributors. May 25, 2022.

DocsPluginsCLI

Capacitor CLI - cap run

This command first runs sync, then it builds and deploys the native app to a target device of your choice.

npx cap run [options] <platform>

Inputs:

  • platform (required): android, ios

Options:

  • --list: Print a list of target devices available to the given platform
  • --target <id>: Run on a specific target device
Previous
<- open
Next
sync ->
Contribute ->