Skip to main content
Version: v3

Capacitor CLI - cap init

Initialize Capacitor configuration by providing an app name, app ID, and an optional web directory for the existing web app.

npx cap init <appName> <appID>


  • appName (required): The application's name
  • appID (required): The application's App ID; something like com.example.appname


  • --web-dir <value>: The existing web application to use with initialization