# \[SOLVED\]Particle.publish() problems

**URL:** <https://community.particle.io/t/solved-particle-publish-problems/24899>\
**Category:** Troubleshooting\
**Created:** [August 5, 2016, 2:57pm UTC](https://community.particle.io/t/solved-particle-publish-problems/24899 "2016-08-05T14:57:29Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [August 5, 2016, 3:42pm UTC](https://community.particle.io/t/solved-particle-publish-problems/24899/7 "2016-08-05T15:42:16Z")

</div>

The device ID is a 24-character long hexadecimal string, but it’s not printed on the package anywhere, as it’s intended to be kept relatively secret. It’s different from the SIM card ICCID.

If you have already configured your device and claimed it to your account, you can use [https://build.particle.io](https://build.particle.io), select the Device tab (the circle with the lines, the target icon), then select the device. It will list the device ID.

If you have not set up your device yet, the easiest way to deal with the device ID is to use the Particle CLI, Command Line Interface. It will be useful later on as you use your Photon or Electron, so it’s worth taking the time to set it up.

If you are using Windows, I recommend using the new Windows CLI installer:

> [@Particle CLI Installer (Windows)](https://community.particle.io/t/particle-cli-installer-windows/23741):
>
> We now have a straightforward way for people to get started with the Particle command-line interface (CLI) on Windows. It’s a simple installer that installs the CLI and the drivers needed. Once installed the Particle CLI will keep itself auto-updated. [Install Particle CLI through here](https://www.particle.io/cli) Note: If you previously had the CLI installed through npm, please do npm uninstall -g particle-cli before running the installer. A similar auto-updating installer is in the works for Linux and Mac OSX. For m…

For Mac and Linux, follow these instructions instead:  
[https://docs.particle.io/guide/tools-and-features/cli/photon/](https://docs.particle.io/guide/tools-and-features/cli/photon/)

Once you’ve installed the CLI, connect the device by USB to your computer and put the device in Listening Mode if it’s not already blinking blue. Hold down the SETUP button (MODE for Electron) until the status LED blinks blue.

Issue the command:

```auto
particle identify

```

This should list the device ID.

---

_[View the full topic](https://community.particle.io/t/solved-particle-publish-problems/24899)._
