ionic
The Ionic CLI is your go-to tool for developing Ionic apps. You can follow CLI development on Github.
Installation
Please make sure Node 6+ and NPM 3+ are installed.
Then, install the CLI globally (you may need sudo):
$ npm install -g [email protected]
Getting Started
Start a new Ionic project using ionic start:
ionic start myNewProject tabs
cd ./myNewProject
This will create a new app named myNewProject. Once you cd into your
project’s directory, a few new commands become available to you, such as
serve:
ionic serve
Commands
Here is a full list of Ionic commands. You can also see the list on the command
line with ionic --help.
| Command | Description |
|---|---|
| docs | Open the Ionic documentation website |
| generate | Generate pipes, components, pages, directives, providers, and tabs (ionic-angular >= 3.0.0) |
| info | Print system/environment info |
| link | Connect your local app to Ionic |
| login | Login with your Ionic ID |
| serve | Start a local development server for app dev/testing |
| signup | Create an Ionic account |
| start | Create a new project |
| telemetry | Opt in and out of telemetry |
| upload | Upload a new snapshot of your app |
| cordova build | Build (prepare + compile) an Ionic project for a given platform |
| cordova compile | Compile native platform code |
| cordova emulate | Emulate an Ionic project on a simulator or emulator |
| cordova platform | Add or remove a platform target for building an Ionic app |
| cordova plugin | Manage Cordova plugins |
| cordova prepare | Transform metadata to platform manifests and copies assets to Cordova platforms |
| cordova resources | Automatically create icon and splash screen resources |
| cordova run | Run an Ionic project on a connected device |
| package build | Start a package build |
| package download | Download your packaged app |
| package info | Get info about a build |
| package list | List your cloud builds |