Skip to main content
NervesHub delivers signed firmware updates to connected devices and gives you remote access to them. You can run it yourself or use NervesCloud, the hosted service. This documentation covers both.

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

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