Using FoundriesFactory Waves Fleet Management

Learn how to manage multiple Portenta X8 devices using FoundriesFactory fleet management tool, Waves


In a production environment it is convenient to plan updates, and have control over when and which devices are updated. FoundriesFactory® Waves is the feature for this. It allows you to easily define a group of Portenta X8s and then push updates to that specific group. The difference between standard updates and using Waves to update, is that the Wave update will promote targets to production by double signing them, which makes the updates more manageable and controllable. This tutorial will show you how to define that group and how to construct a Wave that can then be pushed to a group.


  • Learn how to use Waves fleet manager
  • Learn how to assign a target to a Wave
  • Learn how to push a Wave to a group of devices

Required Hardware and Software


Setting Up the Terminal

Waves fleet management requires us to have the X8 setup with FoundriesFactory. If you have not done so, please follow our Getting Started tutorial, as it will walk you through setting up the X8 with your Factory. To use Waves, you need to have fioctl installed and configured. Follow this guide to do so.Creating Waves and device groups will be done via the host, which is your factory. As such, the following commands will be entered in a terminal using fioctl to connect to your Factory.

Rotating Our Keys

For security purposes, we recommend that you rotate your FoundriesFactory keys. Rotation of the key will convert the root role's online-key, which was generated during the bootstrap of your Factory, to an offline key.

First we will rotate the root keys. These are the most important keys, as they can be used to create new target keys. Rotate them with the command:

1fioctl keys rotate-root --initial /absolute/path/to/root.keys.tgz

Now we can rotate the target only keys with:

1fioctl keys rotate-targets /absolute/path/to/root.keys.tgz

And finally, for security reasons, we separate the target keys from root using:

1fioctl keys copy-targets /absolute/path/to/root.keys.tgz /path/to/target.only.key.tgz

Now we can move on to creating our Wave.

Creating a Dummy Wave for Production Targets

Before a Factory can start doing production OTAs, an initial production Targets file must be created. More information can be found here. This can be done by creating a dummy wave with the command:

1fioctl wave init -k /absolute/path/to/targets.only.key.tgz populate-targets

Then complete the Wave with:

1fioctl wave complete populate-targets

This creates a new targets.json file for production devices subscribing to the production tag. It will include a single Target from CI build.

Creating a Wave

Now we can start creating our Wave. The command below will create a Wave that can then be pushed to our devices. To create a Wave, we will sign it with a key, here we will use the targets only key. Then we give the Wave a name, target number, and tag. The

target number
needs to correspond to the target that we want the Wave to contain for our devices. The
can be set as production or development.

1fioctl wave init -k /absolute/path/to/targets.only.key.tgz <waveName> <targetNumber> <tag>

And then we can complete the Wave by passing the name to the "complete" function:

1fioctl wave complete <waveName>

Or we can cancel it with:

1fioctl waves cancel <waveName>

After creating the Wave, you should see it on your Factory page. It should also be marked as complete after you call the Wave complete command.

The wave page on your FoundriesFactory
The wave page on your FoundriesFactory

Create the Device Group

With this command, we create our group, giving it a name and a short description:

1fioctl config device-group create <groupName> "<shortDescription>"

Now to assign a device to our group we use:

1fioctl device config group <deviceName> <groupName>

On your FoundriesFactory device page you can sort and view devices by group.

Device group sorting on the FoundriesFactory page
Device group sorting on the FoundriesFactory page

To rollout our Wave to our device group, use:

1fioctl waves rollout <waveName> <deviceGroupName>

Every device in the device group should now have the target specified in the Wave creation.


In this tutorial we first looked at what is required to use the Wave tool. We then went through the process of creating a Wave and device group. Then we pushed a target to the device group using the Wave tool.


  • If you are having trouble with any fioctl commands you can use
    fioctl wave --help
    fioctl wave rollout --help
    depending on the context.

Tutorial Toolbox

Contribute to Arduino

Join the community and suggest improvements to this article via GitHub. Make sure to read out contribution policy before making your pull request.

Missing something?

Check out our store and get what you need to follow this tutorial.

Suggest Changes

The content on is facilitated through a public GitHub repository. You can read more on how to contribute in the contribution policy.