Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable automatic updates in ionic-cli 3.30?

I need to stop Ionic CLI from checking for updates whenever I run an ionic command. This prevents me from even running the app offline. An illustration is as :

C:\Users\TO-004\Desktop\EzyMarketplace\EzyExtension-App-2017-master>ionic serve ? The Ionic CLI has an update available (3.3.0 => 3.4.0)! Would you like to install it? (Y/n)

like image 248
Raphael Avatar asked Jun 13 '17 05:06

Raphael


2 Answers

Ionic seems to compare the release date by the timestamp of "lastCommand" in ~/.ionic/config.json. If that date is later than the release date it will not ask you the question.

Just change the timestamp to a future date, not an ideal solution but it seems to work.

like image 62
Ratler Avatar answered Sep 18 '22 22:09

Ratler


In 3.5.0 you can turn off the CLI's interactive mode by either using the --no-interactive flag or by manually setting cliFlags.interactive to false in ~/.ionic/config.json.

like image 41
yannis Avatar answered Sep 17 '22 22:09

yannis