Requirements
The
nh deployment release commands need a NervesHub server that has the deployment release API. An older server answers with an error that says so. nh deployment update --firmware works against older servers too.
What a release holds
To send different firmware, create a new release. NervesHub refuses a release with the same firmware and archive as the current release.
Create a release
- Web UI
- CLI
1
Open the dialog
Open the deployment group and select New release.
2
Choose the firmware
The Firmware list offers firmware for the group’s platform and architecture, newest first.
3
Describe the release
Fill in Description and, if you want, Notes and Archive.
4
Set the options
Turn on Required release if every device must pass through this release. Expand Connecting code to give the release its own code.
5
Create it
Select Create release. The dialog lists what creating the release sets off before you confirm.
To upload firmware and create a release in one command, use
nh firmware upload --deploy <group>. See Create and activate deployment groups.View releases
The Releases tab on the group page lists every release, newest first, with the columns Release, What’s in it, Status and Released by. Select a row to see its notes, its connecting code and its delta updates. The current release starts open. From the CLI:list marks the current release with * and shows each release’s firmware version, firmware UUID, archive, whether it is required, its delta status and who created it. show adds the platform, architecture, description, notes and connecting code.
The delta status of a release is one of:
See Delta updates.
Required releases
By default every device in a group is sent the current release, however far behind it is. A required release is one every device passes through. A device that has not reached a required release is sent the earliest required release it is behind. It moves on only once it is running that release. Use a required release for firmware that later firmware depends on, such as a migration or a bootloader change.Mark a release required
When you create the release, turn on Required release in the dialog or pass--required.
To change an existing release:
- Web UI
- CLI
On the Releases tab, open the release, select Edit release, switch Required release on or off, and select Save changes.
nh deployment show reports whether the current release is required.

