Skip to content

Latest commit

 

History

History
78 lines (48 loc) · 1.53 KB

File metadata and controls

78 lines (48 loc) · 1.53 KB

Ionic-Cli

The Ionic Framework command line utility makes it easy to start, build, run, and emulate Ionic apps. In the future, it will also have support for our mobile development services and tools that make Ionic even more powerful.

Installing

$ sudo npm install -g ionic

Starting an Ionic App

$ ionic start myApp [template]

There are three choices of templates:

  • Side-Menu (sidemenu)
  • Tabs (tabs)
  • Blank (blank)

Command-line flags/options:

-a, --app <APP NAME> ................... your app's name (Use quotes around the name)
-p, --package <PACKAGE NAME> ........... package name, such as "com.mycompany.myapp"

Testing in a Browser

$ ionic serve

Adding a platform target

$ ionic platform ios android

Building your app

$ ionic build ios

Emulating your app

$ ionic emulate ios

Running your app

$ ionic run ios

Packaging an app (beta)

Using Ionic's service, you can compile and package your project into an app-store ready app without requiring native SDKs on your machine.

$ ionic package debug android

The third argument can be either debug or release, and the last argument can be either android or ios.

Cordova Commands

Ionic uses Cordova underneath, so you can also substitute Cordova commands to prepare/build/emulate/run, or to add additional plugins.

Note: we occasionally send anonymous usage statistics to the Ionic team to make the tool better.