# Deploy MobiusFlow to Your Fleet

## What You Will Need?

1. A **balenaCloud account** with Microservices access (this requires a paid account)
2. A compatible balenaCloud fleet (Up Board, Intel NUC or Raspberry Pi 4)

{% hint style="danger" %}
You should always backup your MobiusFlow® device before deploying a new version.

See [Backup and Restore](https://docs.mobiusflow.com/help/technical-docs/mobiusflow-basics/backup-and-restore) for more details
{% endhint %}

## Deploying from balenaHub

{% hint style="info" %}
[BalenaHub](https://hub.balena.io/apps) is a market place for balena.io compatible applications ready to be deployed to your device with just a few clicks.
{% endhint %}

Navigate to your [balenaCloud dashboard](https://dashboard.balena-cloud.com/?) and login in

Navigate to [balenaHub](https://hub.balena.io/apps) to select which version of **Mobius**Flow® to deploy

Navigate to the **Apps** page

Search for **MobiusFlow**

{% hint style="info" %}
If this guide is being followed in the context of deploying MobiusFlow Connector software to as Raspberry Pi, ensure MobiusFlow Connector apps are used instead of the standard MobiusFlow App.
{% endhint %}

<figure><img src="https://241296614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQoV8xVJhcESUhdKQWDcm%2Fuploads%2FreTG0XLqyVG5cqh7I3Sp%2FBalenaHub%20Search.png?alt=media&#x26;token=26cda992-002c-41f0-8ba2-1edb9699a3b2" alt=""><figcaption><p>balenaHub search</p></figcaption></figure>

Select the correct **device type**

Click on the **Deploy** button

<figure><img src="https://241296614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQoV8xVJhcESUhdKQWDcm%2Fuploads%2Fyskhu5EYqERVyMgjuBql%2FBalenaHub%20Deploy.png?alt=media&#x26;token=34cd6455-131e-4fa7-899a-083388000c09" alt=""><figcaption><p>Deploy MobiusFlow® to fleet</p></figcaption></figure>

Balena will switch to your **balenaCloud dashboard**

You can **create a new fleet** here or deploy to an **existing fleet**. If creating a new fleet refer to the [Creating a Fleet](https://docs.mobiusflow.com/help/user-guides/deploying-mobiusflow-on-prem/deploying-mobiusflow-to-approved-hardware-using-balenacloud/creating-a-fleet) section for details on what settings are required

<figure><img src="https://241296614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQoV8xVJhcESUhdKQWDcm%2Fuploads%2FPtnRf6zEj1KPHfWhJ1Wm%2FBalena%20Deploy%20to%20Fleet.png?alt=media&#x26;token=0b5d9f21-2c2d-4e3f-b1e4-5c9fcf71c827" alt=""><figcaption><p>Create new fleet or deplot to existing fleet</p></figcaption></figure>

If you already have a new fleet or want to upgrade the **Mobius**Flow® version on existing devices, select **Use an existing fleet instead**

<figure><img src="https://241296614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQoV8xVJhcESUhdKQWDcm%2Fuploads%2FuRWxZUrutQhAV69TGHCf%2FBalena%20Deploy%20to%20Existing%20Fleet.png?alt=media&#x26;token=895a28e5-5ff5-470d-820a-be632d3decf9" alt=""><figcaption><p>Choose an existing fleet</p></figcaption></figure>

Select the fleet from the drop down and click on the **Deploy to fleet** button

After a few seconds you will see the **new release** being built for your fleet

<figure><img src="https://241296614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQoV8xVJhcESUhdKQWDcm%2Fuploads%2FRCJLRxcLpiZZZWD3FK0h%2FBalena%20Build%20Release.png?alt=media&#x26;token=d0d2eeab-7101-4a1d-a663-56195ad930ec" alt=""><figcaption><p>New release building</p></figcaption></figure>

This will take a minute or two. Once the build is complete you will see the release on the dashboard. All devices, which have not been pinned to a specific release, in your fleet will automatically start to update to the new release.

You can also view the release history in the Releases page of your fleet.

<figure><img src="https://241296614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQoV8xVJhcESUhdKQWDcm%2Fuploads%2FgGOmKeudAR9JXp2tLocE%2FBalena%20Release%20Built.png?alt=media&#x26;token=eb75dbd4-28cd-4560-839b-0719ca68d944" alt=""><figcaption><p>New release deployed</p></figcaption></figure>

Click on a device Summary to see which release it is running. You can also pin device to specific releases on this screen

<figure><img src="https://241296614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQoV8xVJhcESUhdKQWDcm%2Fuploads%2FzwYTDdOXHNADXAym9FJ2%2FBalena%20Device%20Details%20-%20Release.png?alt=media&#x26;token=c3db5572-448c-4a9a-9f2a-45fa0506614d" alt=""><figcaption><p>Device details</p></figcaption></figure>
