A free virtual conference dedicated to innovative tech leaders looking to transform their businesses.

DocsPluginsCLI

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>

Inputs:

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

Options:

  • --web-dir <value>: The existing web application to use with initialization
Previous
<- Hooks
Next
add ->
Contribute ->