cap

The Capacitor command-line interface (CLI) tool is used to develop Capacitor apps

Subcommands

NameDescription
addAdd a native platform project to your app
copyCopy the web app build and Capacitor configuration file into the native platform project. Run this each time you make changes to your web app or change a configuration value
lsList all installed Cordova and Capacitor plugins
openOpens the native project workspace in the specified native IDE (Xcode for iOS, Android Studio for Android)
runOpens the native project workspace in the specified native IDE (Xcode for iOS, Android Studio for Android)
syncThis command runs copy and then update
updateUpdates the native plugins and dependencies referenced in package.json

Options

NameDescription
--help, -h
  • Persistent ⚖
--version, -VOutput the version number