メインコンテンツまでスキップ
バージョン: v5

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