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 CLI
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: You need to have an Ionic Cloud account for the authentication to succeed...