How to Disable Ionic CLI Update Notification in Version 3.20.0 When Running on Docker

I am running an Ionic 3 project using Docker, but I encountered the following issue when executing commands inside the container:

The Ionic CLI has an update available (3.20.0 => 5.4.16)! Would you like to install it? No
Not automatically updating your CLI

Since this prompt requires manual confirmation (Y/N), it prevents the Docker container from running smoothly. I need a way to disable this update notification properly in Ionic CLI 3.20.0 so that the container can execute commands without interruption.

What I Have Tried

  • Running npm install -g ionic@3.20.0 before executing other commands inside the container
  • Using environment variables like IONIC_CLI_DISABLE_UPDATE_CHECK (but it seems unsupported in this version)
  • Checking Ionic CLI config files for an option to disable update checks

Expected Solution

  • A correct way to disable the update notification in Ionic CLI 3.20.0
  • The solution must be Docker-compatible and should not require manual input

If anyone has encountered this issue and found a workaround, please share your insights. Thanks!

The Ionic CLI doesn’t determine the Ionic Framework version to be used, as far as I know, Ionic CLI 5.x is still compatible with Ionic 3 apps, so you should be able to use that version without problems.

2 Likes

Thank you for your response! I’ll give it a try and see how it works.