Ionic CLI
Ionic CLI is growing more powerful day-by-day. At the time of writing, the latest version of Ionic CLI is 1.5.5. Since we have been using Ionic CLI 1.5.0 throughout the book, I will be talking about the options from this.
Ionic login
You can log in to your Ionic cloud account in any one of three ways.
First, using a prompt:
ionic login
Second, without a prompt:
ionic login --email arvind.ravulavaru@gmail.com --password 12345678
Finally, using environment variables. You can set IONIC_EMAIL
and IONIC_PASSWORD
as environment variables and Ionic CLI will pick them up, without prompting. This could be considered a rather unsafe option, as the password would be stored in plain text.
Note
You need to have an Ionic.io account for the authentication to succeed.
Ionic start task
First we are going to take a look at the No Cordova flag option.
No Cordova flag
The Ionic start
task is one of the simplest ways to scaffold a new Ionic application. In this book, we have used Ionic start
to always create...