Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@particle/device-os-flash-util

Package Overview
Dependencies
Maintainers
29
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@particle/device-os-flash-util

Device OS Flashing Utility

latest
Source
npmnpm
Version
0.14.2
Version published
Weekly downloads
3
50%
Maintainers
29
Weekly downloads
 
Created
Source

Build Status

Device OS Flashing Utility

device-os-flash is a tool that simplifies flashing of Particle devices. It can flash official Device OS releases, as well as user-provided module binaries – via DFU or a debugger.

Status

This tool was developed for Particle internal purposes.

It is currently functioning well for all supported Particle devices, is actively utilized within Particle and is available to be used by Particle customers. However, it is important to note that there is no long-term commitment to providing ongoing updates for this tool. As such, our Product Lifecycle Policy does not apply to this particular tool.

Installation

Install with npm globally:

npm install --global @particle/device-os-flash-util

Prerequisites:

  • OpenOCD. It is recommended to use the version of OpenOCD that is bundled with Workbench.
  • dfu-util. Installing the latest version available via your package manager should be sufficient.
  • Node.js 12 or higher.

Supported Debuggers:

Getting Started

The examples below cover most of the use case scenarios. For the full list of available options, see the tool's help:

device-os-flash -h

Flashing all detected devices with Device OS 2.3.0 via DFU:

device-os-flash --all-devices 2.3.0

device-os-flash automatically downloads release binaries from GitHub. If you are experiencing rate limiting errors, set your GitHub access token via the GITHUB_TOKEN environment variable.

Same as above, but do not flash Tinker:

device-os-flash --all-devices --no-user 2.3.0

Flashing a user application to all detected devices:

device-os-flash --all-devices my_app.bin

Flashing specific devices:

device-os-flash -d my_boron -d my_electon 2.3.0

Resolving device names requires a valid Particle API token. If you are signed in via the Particle CLI, device-os-flash will use the token from the CLI's configuration file. Alternatively, the token can be specified via the PARTICLE_TOKEN environment variable.

Flashing all detected devices via OpenOCD:

device-os-flash --all-devices --openocd 2.3.0

FAQs

Package last updated on 11 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts