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

Capacitor CLI - create

Create a new Capacitor project with a stock project structure if you'd rather start fresh and plan to add a UI/frontend framework separately.

npx @capacitor/cli create [options] [directory] [name] [id]

Inputs:

  • directory (optional): Directory to create the new app in, such as c:\src\myapp
  • name (optional): App name
  • id (optional): App Package Id (in Java package format, no dashes), such as com.example.app

Options:

  • --npm-client <npmClient>: npm client to use for dependency installation