# Feature request: Spark CLI reset command

**URL:** <https://community.particle.io/t/feature-request-spark-cli-reset-command/5610>\
**Category:** Firmware\
**Created:** [July 8, 2014, 9:07pm UTC](https://community.particle.io/t/feature-request-spark-cli-reset-command/5610 "2014-07-08T21:07:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronm](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@ronm](https://community.particle.io/u/ronm)\
**Post date:** [July 8, 2014, 9:07pm UTC](https://community.particle.io/t/feature-request-spark-cli-reset-command/5610/1 "2014-07-08T21:07:18Z")

</div>

I’d like to initiate a reset from the command line.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 8, 2014, 10:22pm UTC](https://community.particle.io/t/feature-request-spark-cli-reset-command/5610/2 "2014-07-08T22:22:24Z")

</div>

@ronm, you can create a Spark.function () to do a software reset if you have the new bootloader with the code below:

[https://github.com/kennethlimcp/Spark-Snippets/blob/master/Snippets/0003%20-%20SW\_factory\_reset.ino](https://github.com/kennethlimcp/Spark-Snippets/blob/master/Snippets/0003%20-%20SW_factory_reset.ino)

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [July 8, 2014, 10:45pm UTC](https://community.particle.io/t/feature-request-spark-cli-reset-command/5610/3 "2014-07-08T22:45:46Z")

</div>

If you just want your core to reboot, (and not do a factory reset) you only need (I believe):

```
 USB_Cable_Config(DISABLE);
 NVIC_SystemReset();

```

Thanks,  
David
