# Particle-cli Update

**URL:** <https://community.particle.io/t/particle-cli-update/27512>\
**Category:** Troubleshooting\
**Created:** [November 25, 2016, 8:20pm UTC](https://community.particle.io/t/particle-cli-update/27512 "2016-11-25T20:20:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suprazz](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Suprazz](https://community.particle.io/u/Suprazz)\
**Post date:** [November 25, 2016, 8:20pm UTC](https://community.particle.io/t/particle-cli-update/27512/1 "2016-11-25T20:20:52Z")

</div>

I’m trying to upgrade the particle cli in my windows 10 cmd prompt.

I was able to upgrade in the Node.js cmd prompt by typing npm upgrade -g particle -cli  
and now the Node.js cmd prompt answer 1.18 when I type particle --version.

But in my windows cmd prompt, if I type particle --version, I’m still at 1.16 and the upgrade command does nothing (no output, no errors).

What do I have to do to update the windows cmd prompt to use the latest version of particle-cli?  
Thanks

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [November 25, 2016, 8:36pm UTC](https://community.particle.io/t/particle-cli-update/27512/2 "2016-11-25T20:36:38Z")

</div>

It seems as though you’ve got two separate versions installed. Personally, I’d remove both, then use the auto-installer for Windows. That should also auto-update it in the future 😄 If you don’t want to use the auto-installer, then still remove both, and install it from the Windows command prompt, rather than the node.js one.

---

<div class="post-metadata">

**Author:** ![Suprazz](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Suprazz](https://community.particle.io/u/Suprazz)\
**Post date:** [November 25, 2016, 8:55pm UTC](https://community.particle.io/t/particle-cli-update/27512/3 "2016-11-25T20:55:32Z")

</div>

Thanks for the fast answer.

I was able to remove the 1.18 version by typing  
npm uninstall -g particle-cli

but not I’m stuck with particle-cli 1.16 and I’m not sure how to uninstall it…

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [November 25, 2016, 9:02pm UTC](https://community.particle.io/t/particle-cli-update/27512/4 "2016-11-25T21:02:55Z")

</div>

If you look for ‘particle’ under your installed programs, can you remove it there?  
Can you try uninstalling it from the command prompt in which you’re seeing that version (the Windows one in this case)?

---

<div class="post-metadata">

**Author:** ![Suprazz](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Suprazz](https://community.particle.io/u/Suprazz)\
**Post date:** [November 25, 2016, 9:17pm UTC](https://community.particle.io/t/particle-cli-update/27512/5 "2016-11-25T21:17:45Z")

</div>

it wasn’t working in the cmd line but it workind in the installed programs (too easy!)

After that I had to search to find a link for the particle cli installer and I found it here: [https://docs.particle.io/guide/tools-and-features/cli/photon/#installing](https://docs.particle.io/guide/tools-and-features/cli/photon/#installing)

Everything is up to date now! Thanks
