ionic update cli code example
Example 1: ionic cli
$ npm install -g @ionic/cli
Example 2: How To Update ionic
npm uninstall -g ionic
npm install -g ionic
$ npm install -g @ionic/cli
npm uninstall -g ionic
npm install -g ionic