Ionic new app
To create a new Ionic app, you can use the following command:
ionic start myApp
This will create a new Ionic project with the default settings. You can also specify additional options to customize the project creation process. For example:
- To create a blank app with no templates:
ionic start myApp blank
- To create an app with a specific template (e.g. tabs, sidemenu, etc.):
ionic start myApp tabs
- To create an app with a specific framework (e.g. Angular, React, etc.):
ionic start myApp --framework angular
- To create an app with a specific capacitor configuration:
ionic start myApp --capacitor
- To create an app with a specific cordova configuration:
ionic start myApp --cordova
Once you've created the app, you can navigate into the project directory and start building your app:
cd myApp ionic serve
This will start the Ionic development server and open the app in your default web browser. You can then start building your app using the Ionic CLI and other tools.
Here are some additional options you can use when creating a new Ionic app:
--type
: Specify the type of app to create (e.g.--type=ionic-angular
for an Angular app).--framework
: Specify the framework to use for the app (e.g.--framework=angular
for an Angular app).--capacitor
: Specify whether to use Capacitor for the app (e.g.--capacitor=true
to enable Capacitor).--cordova
: Specify whether to use Cordova for the app (e.g.--cordova=true
to enable Cordova).--template
: Specify the template to use for the app (e.g.--template=tabs
for a tabs-based app).--name
: Specify the name of the app (e.g.--name=myApp
to set the app name to "myApp").--author
: Specify the author of the app (e.g.--author=John Doe
to set the app author to "John Doe").--email
: Specify the email address of the app author (e.g.[email protected]
to set the app author's email address to "[email protected]").
For more information on creating a new Ionic app, you can refer to the Ionic documentation: https://ionicframework.com/docs/cli/start