Linux command
ionic 命令
文件
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Create new app
ionic start [myapp] [blank|tabs|sidemenu]
Serve locally
ionic serve
Build for production
ionic build --prod
Add platform
ionic capacitor add [ios|android]
Run on device
ionic capacitor run [ios|android]
Generate component
ionic generate component [name]
说明
Ionic CLI manages Ionic Framework projects. It creates hybrid mobile apps using web technologies. The tool integrates with Capacitor or Cordova for native functionality. It provides development server, build tools, and code generation.
参数
- start _NAME_ _TEMPLATE_
- Create new project.
- serve
- Start development server.
- build
- Build web assets.
- capacitor _COMMAND_
- Capacitor integration commands.
- generate _TYPE_ _NAME_
- Generate components, pages, services.
- --prod
- Production build.
- --help
- Display help information.
FAQ
What is the ionic command used for?
Ionic CLI manages Ionic Framework projects. It creates hybrid mobile apps using web technologies. The tool integrates with Capacitor or Cordova for native functionality. It provides development server, build tools, and code generation.
How do I run a basic ionic example?
Run `ionic start [myapp] [blank|tabs|sidemenu]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does start _NAME_ _TEMPLATE_ do in ionic?
Create new project.