All Projects → particle-iot → Particle Cli

particle-iot / Particle Cli

Licence: apache-2.0
Command Line Interface for Particle Cloud and devices

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Particle Cli

Particle Api Js
JS Library for the Particle API
Stars: ✭ 112 (-46.15%)
Mutual labels:  photon, particle, iot
Docs
Documentation for Particle
Stars: ✭ 131 (-37.02%)
Mutual labels:  photon, particle, iot
Device Os
Device OS (Firmware) for Particle Devices
Stars: ✭ 976 (+369.23%)
Mutual labels:  photon, particle, iot
SparkJson
JSON library Ported from @bblanchon for Spark Core
Stars: ✭ 36 (-82.69%)
Mutual labels:  particle, photon
Home Assistant Cli
💻 Command-line tool for Home Assistant
Stars: ✭ 243 (+16.83%)
Mutual labels:  cli, iot
neopo
A lightweight solution for local Particle development.
Stars: ✭ 19 (-90.87%)
Mutual labels:  particle, photon
Gort
Command Line Interface (CLI) for RobotOps
Stars: ✭ 425 (+104.33%)
Mutual labels:  particle, iot
Stonks
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal. See how fast your stonks will crash.
Stars: ✭ 405 (+94.71%)
Mutual labels:  cli, tracker
Iotz
compile things easy 🚀
Stars: ✭ 39 (-81.25%)
Mutual labels:  cli, iot
Hardware Libraries
Particle parts for computer-aided design (CAD)
Stars: ✭ 77 (-62.98%)
Mutual labels:  photon, particle
Nativescript Particle
🕹 Control your https://particle.io devices from NativeScript
Stars: ✭ 19 (-90.87%)
Mutual labels:  particle, iot
Johnny Five
JavaScript Robotics and IoT programming framework, developed at Bocoup.
Stars: ✭ 12,498 (+5908.65%)
Mutual labels:  photon, iot
Chatette
A powerful dataset generator for Rasa NLU, inspired by Chatito
Stars: ✭ 205 (-1.44%)
Mutual labels:  cli
Procdump For Linux
A Linux version of the ProcDump Sysinternals tool
Stars: ✭ 2,507 (+1105.29%)
Mutual labels:  cli
Wthermostatbeca
Replaces original Tuya firmware on Beca thermostat with ESP8266 wifi module
Stars: ✭ 204 (-1.92%)
Mutual labels:  iot
Starport
The easiest way to build a blockchain.
Stars: ✭ 204 (-1.92%)
Mutual labels:  cli
Stonky
A command line dashboard for monitoring stocks
Stars: ✭ 208 (+0%)
Mutual labels:  cli
Facebook Dl
📼 Very minimal Facebook downloader written in 28 lines of Python code (not including comments and blank spaces)
Stars: ✭ 207 (-0.48%)
Mutual labels:  cli
Bruh2 Home Assistant Configuration
(OBSOLETE) BRUH2 Home Assistant Configuration
Stars: ✭ 205 (-1.44%)
Mutual labels:  iot
Webpack Dashboard
A CLI dashboard for webpack dev server
Stars: ✭ 13,850 (+6558.65%)
Mutual labels:  cli

npmBuild StatusCoverage StatusLicense

Particle's full-stack Internet of Things (IoT) device platform gives you everything you need to securely and reliably connect your IoT devices to the web. For more details please visit www.particle.io.

Particle CLI

The Particle CLI is a powerful tool for interacting with your IoT devices and the Particle Cloud. The CLI uses node.js and can run on Windows, Mac OS X, and Linux. It's also open source so you can edit and change it, and even send in your changes as pull requests if you want to share!

Table of Contents

Installing

For end-users, the most up-to-date installation instructions can be found here: macOS / Linux | Windows

Getting Started

These next two commands are all you need to get started setting up an account, claiming a device, and discovering new features.

particle setup

Guides you through creating a new account, and claiming your device!

$ particle setup

particle help

Shows you what commands are available, and how to use them. You can also give the name of a command for detailed help.

$ particle help
$ particle help keys

Updating Firmware

Photon/P1/Electron

particle update

If you wish to easily update the system firmware running on your device to a later version, you can use the particle update command. For the exact version it will update to, check the version of the files in the updates folder.

  1. Make sure you have DFU-util installed.
  2. Connect your device via USB, and put it into DFU mode.
  3. Run particle update.

Command Reference

For the full list of commands, please see the CLI command reference.

Known Issues

  • The Wireless Photon Setup Wizard will only automatically switch networks on OS X. Users of other operating systems will need to manually connect their computer to the Photon's Wi-Fi. You will be prompted during the wizard when this is required.

Development

Installing

  1. Install Node.js [[email protected] and [email protected] are required]
  2. Clone this repository $ git clone [email protected]:particle-iot/particle-cli.git && cd ./particle-cli
  3. Install dependencies $ npm install
  4. View available commands $ npm run
  5. Run the tests $ npm test
  6. Run the CLI $ npm start
  7. Start Hacking!

Running

To ensure compatibility with a wide range of NodeJS versions, the CLI's source is transpiled using Babel.

When developing, run individual commands using:

$ npm start -- <command> <options> - e.g. $ npm start -- library view dotstar --readme

Anything after the -- delimiter is passed directly to the CLI (docs), source code is transpiled on-demand.

To test the transpiled source as it will be published:

  1. Compile: $ npm run compile
  2. Register the particle command globally: $ npm link
  3. Run commands: $ particle --help (using standard argument formatting)

Testing

The Particle CLI has a number of automated test suites and related commands. The most important are:

  • npm test - run all tests (NOTE: End-To-End tests require additional setup)
  • npm run lint - run the linter and print any errors to your terminal
  • npm run test:ci - run all tests excluding device-dependent end-to-end test as CI does
  • npm run test:unit - run unit tests
  • npm run test:integration - run integration tests
  • npm run coverage - report code coverage stats

All tests use mocha, chai, and sinon with coverage handled by nyc.

We recommend running locally if you can as it greatly shortens your feedback loop. However, CI also runs against every PR and error reporting is publicly available.

Updating system firmware

  • npm run update-firmware-binaries <version> where <version> is the newly released system firmware version like 0.7.0

  • Test on each platform by doing

    # Check old firmware version
    bin/particle.js serial inspect
    
    # Flash new system firmware
    bin/particle.js update
    
    # Verify new firmware version
    bin/particle.js serial inspect
    
  • Do not update the versions or CHANGELOG.md just yet!

  • Commit as something like "adds firmware binaries for 0.7.0" and proceed to release a new CLI version (below).

Releasing a new version

See RELEASE.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].