---
title: Updating the CLI Version
url: references/phonegap-cli/update
github_url: https://github.com/phonegap/phonegap-docs/blob/master/docs/references/phonegap-cli/update.html.md
layout: subpage
expand: cli
---
 
To update your PhoneGap CLI to the latest version, run the following command:

```bash
$ npm install -g phonegap
```

<div class="alert--info">**NOTE:** If you get an `Error: EACCES` when running any of the commands here, try prefixing it with `sudo`, such as:
    `$ sudo npm install -g phonegap` </div>

The CLI will also display a notification when any command is used if an update is available:

```bash
$ phonegap -v
6.0.3


   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 6.0.3 → 6.0.4    │
   │   Run npm i -g phonegap to update   │
   │                                     │
   ╰─────────────────────────────────────╯
```

<div class="alert--info">This notification will only be displayed once every 24 hours.</div>

To disable the update notifier, you can do one of the following:

1. Use the `--no-update-notifer` flag with any PhoneGap command.
    * For example, `phonegap run ios --no-update-notifier`
2. Disable the update notifier by altering the configuration file.
    i. Open `~/.config/configstore/update-notifier-phonegap.json`  
    ii. Set the property `"optOut": true`

---
title: Updating the CLI Version
url: references/phonegap-cli/update
github_url: https://github.com/phonegap/phonegap-docs/blob/master/docs/references/phonegap-cli/update.html.md
layout: subpage
expand: cli
---
 
To update your PhoneGap CLI to the latest version, run the following command:

```bash
$ npm install -g phonegap
```

<div class="alert--info">**NOTE:** If you get an `Error: EACCES` when running any of the commands here, try prefixing it with `sudo`, such as:
    `$ sudo npm install -g phonegap` </div>

The CLI will also display a notification when any command is used if an update is available:

```bash
$ phonegap -v
6.0.3


   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 6.0.3 → 6.0.4    │
   │   Run npm i -g phonegap to update   │
   │                                     │
   ╰─────────────────────────────────────╯
```

<div class="alert--info">This notification will only be displayed once every 24 hours.</div>

To disable the update notifier, you can do one of the following:

1. Use the `--no-update-notifer` flag with any PhoneGap command.
    * For example, `phonegap run ios --no-update-notifier`
2. Disable the update notifier by altering the configuration file.  
    i. Open `~/.config/configstore/update-notifier-phonegap.json`  
    ii. Set the property `"optOut": true`

Fix spacing of bullets on CLI update page
Fix spacing of bullets on CLI update page
