Ionic CLI
Ionic CLI is growing more powerful day by day. Since we have been using Ionic CLI 2.1.14 throughout the book, I will be talking about the options from the same. Ionic CLI 2.2.2 or higher should also have almost the same options.
Ionic login
You can log in to your Ionic Cloud account in any one of three ways.
First, using prompt:
ionic login
Second, without prompt:
ionic login --email [email protected] --password 12345678
And 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 somewhat an unsafe option, as the password would be stored in plain text.
Note
Note: You need to have an Ionic Cloud account for the authentication to succeed.
Ionic start
First we are going to take a look at the No Cordova flag option.
No Cordova
The start command is one of the simplest ways to scaffold a new Ionic application. In this book, we have used the start command to always create a...