Skip to main content
A product groups the devices, firmware, archives, deployment groups and support scripts for one kind of device. Every device belongs to one product. An organization can have many products, for example one for a gateway and one for a sensor. Creating a product, changing its settings and deleting it need the Manage role or higher. See Roles.

Create a product

1

Open your organization

Open the organization’s Products page.
2

Create the product

Click New product. Enter a Name, choose the device extensions, and click Create Product.In an organization with no products, the page shows a Create your first product form instead. Enter the Product name and click Create product. Every device extension starts on.
On the New product form every device extension starts checked.
A product’s name cannot be changed. Devices and the CLI refer to the product by name.
List products or show one, with its settings:

Set the default organization and product for the CLI

Most nh commands need an organization and a product. Save them once:
You can also set NERVES_HUB_ORG and NERVES_HUB_PRODUCT, or pass --org and --product on a command. A flag overrides an environment variable, which overrides the saved setting. See CLI configuration.

Product settings

Open Product settings in the product sidebar. It has three tabs: General, Device health and API keys. The General tab holds: Health profiles are on the Device health tab. See Health monitoring. Product API keys are on the API keys tab. See CI/CD.
Product API keys are on the main branch and are not in a tagged release as of NervesHub 2.5.4.
Some settings can also be changed with nh product update. Only the flags you pass are sent:

Device extensions

An extension must be on for the product before any of its devices can use it. Each device also has its own setting per extension, which is on by default. Turning an extension off for the product turns it off on every device. The device firmware must also include the extension. See Extensions overview.

What is not a product setting

Firmware signing keys and certificate authorities belong to the organization, not the product. Find them on the organization’s Signing keys and Certificates pages. See Firmware signing and Device certificates.

Delete a product

In the web UI, open Product settings and click Delete product. The button is only enabled when the product has no devices. You confirm by typing the product name. The product’s firmware, archives, deployment groups, support scripts and settings go with it.
The CLI asks you to confirm. Pass --yes to skip the prompt.
Deleting a product cannot be undone from the UI or the CLI. The CLI and API do not check whether the product still has devices. NervesHub refuses every device whose product has been deleted, however it authenticates.