Quickstart
Connect a Nerves device and send it a firmware update over the air.
Introduction
What NervesHub does and how it fits into a Nerves project.
Architecture
The server, the device library, the CLI, and what each one stores.
Terminology
Organizations, products, devices, firmware, deployment groups and releases.
Guides
- Basic Nerves device setup: connect a device, take signed updates, report health, logs and errors.
- Complete Nerves device setup: certificate authentication, update control, every extension, connection tuning.
- Basic fleet operations: build and upload from CI, release to a QA group, manage groups with tags, Slack notifications.
- Complete fleet operations: a CI/CD pipeline with canary rollouts and approval, webhooks into your own systems.
Set up a project
1
Add NervesHubLink to your project
Add
{:nerves_hub_link, "~> 2.14"} to your Nerves project’s mix.exs and point it at your NervesHub host. See Add to your project.2
Authenticate the device
Use a shared secret to get started, or device certificates for production.
3
Install the CLI
Install the
nh CLI and sign in with nh user login. See CLI installation.4
Create a signing key and upload firmware
Run
nh key create my_app_key, build with mix firmware, then sign and upload with nh firmware upload --key my_app_key. See Firmware.5
Create a deployment group
Target devices by tag and version, point the group at your firmware, and turn it on. See Deployment groups.
Features
Signed updates
You sign firmware before you upload it. Devices verify the signature before they apply an update.
Delta updates
Send the difference between two firmware versions instead of the full image.
Remote console
Open an IEx session on a connected device from your browser or the CLI.
Health monitoring
Collect metrics and alarms from devices and judge them against health profiles.
Staged rollouts
Roll a release out in steps, with approval gates and failure limits.
Device authentication
Shared secrets, X.509 device certificates, NervesKey and TPM.
Extensions
Health, location, logging, error reports, local shell and network identity.
Connect your systems
Webhooks, chat notifications, and uploading firmware from CI.
Every area
- Devices: device authentication, connection transport and connection lifecycle.
- Updates: how firmware updates work, applying updates, and the firmware formats: fwup, RAUC, ESP-IDF and AtomVM.
- Deployments: releases, rollout controls and connecting code.
- Device management: fleet overview, finding devices and support scripts.
- Organization and access: roles and permissions, two-factor authentication and the audit log.
- Other device clients: choosing a device client.
- Tools and references: the
nhCLI, the HTTP API and the device WebSocket protocol. - Self-hosting: feature prerequisites, ClickHouse and the Slack app.

