Skip to content

πŸ“± run

πŸ“± Run Capacitor apps on devices from the CLI.

Terminal window
npx @capgo/cli@latest run device

πŸ“± Run your Capacitor app on a connected device or simulator. If you omit the platform in an interactive terminal, the command asks whether to start on iOS or Android. The command lists available devices and simulators, lets you reload the list, and runs with your selection. For iOS, this asks whether to use a physical iPhone/iPad or simulator before showing devices. Use β€”no-launch to print the resolved command without starting the app.

Example:

Terminal window
npx @capgo/cli@latest run device ios --no-launch

Options:

ParamTypeDescription
β€”no-launchbooleanResolve and print the run command without starting the app