# Updating the CLI manually

**URL:** <https://community.particle.io/t/updating-the-cli-manually/48395>\
**Category:** Troubleshooting\
**Created:** [March 13, 2019, 3:33am UTC](https://community.particle.io/t/updating-the-cli-manually/48395 "2019-03-13T03:33:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VideoLiam](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/videoliam/32/10331_2.png) [@VideoLiam](https://community.particle.io/u/VideoLiam)\
**Post date:** [March 13, 2019, 3:33am UTC](https://community.particle.io/t/updating-the-cli-manually/48395/1 "2019-03-13T03:33:32Z")

</div>

Hi,

I using a window 7 machine and got prompted to update my CLI

> C:\Users\Cyber\>particle setup  
> particle-cli v1.27.0  
> ! A newer version (1.38.0) of particle-cli is available.  
> ! Upgrade now by running: npm install -g particle-cli

Now, I really know not to use npm install -g particle-cli

and after looking back through my previous posts on this issue tried

particle update-cli

Which failed...

> C:\Users\Cyber\>particle update-cli  
> particle: Unknown command: "update-cli"

Not sure whats going on... I'm sure I've used update-cli in the past...

Liam

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 13, 2019, 7:25am UTC](https://community.particle.io/t/updating-the-cli-manually/48395/2 "2019-03-13T07:25:02Z")

</div>

If `update-cli` is not known to your current CLI version you probably haven’t installed it via the Windows installer in the first place.  
I’d suggest you remove all installations of CLI (npm and/or Windows Add/Remove Features in Control Panel) and then reinstall via the most recent [Windows Installer](https://binaries.particle.io/cli/installer/windows/ParticleCLISetup.exe).

After that updates should be pulled in automatically and `update-cli` should be a valid command.

---

<div class="post-metadata">

**Author:** ![VideoLiam](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/videoliam/32/10331_2.png) [@VideoLiam](https://community.particle.io/u/VideoLiam)\
**Post date:** [March 13, 2019, 8:59am UTC](https://community.particle.io/t/updating-the-cli-manually/48395/3 "2019-03-13T08:59:25Z")

</div>

Hi Scruff,

I thought I had stripped this machine of all previous installs and installed via Windows installer… I’ll have another go when I get a chance…

Thanks

Liam
