Ioniconf 2022 logo

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

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 ->