> For the complete documentation index, see [llms.txt](https://docs.connect.jfrog.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.connect.jfrog.io/features-new-ui/deployments/update-flow.md).

# Create Update Flow

An Update Flow (also called a *flow*) is a set of instructions that carries out a software update on your edge devices. In JFrog Connect, you build a flow using individual steps that are carried out in sequence. Each step has a step type, like [Run Script](/features-new-ui/deployments/update-flow/step-types/run-script.md) or [Deploy Docker Image](/features-new-ui/deployments/update-flow/step-types/use-single-container.md), and completes a discreet task in the flow. You can define as many steps as you need in the flow.

To realize the full power of update flows, keep reuse in mind. When you combine features like [update parameters](/features-new-ui/deployments/update-flow/use-update-parameters.md) and [tags](/features-new-ui/account-management/organize-your-fleet/tag-devices.md) with a flow, you can use the flow as a template that will be flexible enough to use over again for deploying software to your entire fleet.

To create a flow, do the following:

1. In the Connect web UI, go to **Deployments** in the left navigation pane and then the **Update Flows** tab. Click **Create New Flow**.&#x20;

<div align="left"><figure><img src="/files/Dg4h6LjXpVqUrfFeakTx" alt=""><figcaption></figcaption></figure></div>

2. Enter a **Flow Name**, e.g., update-docker-image.

<div align="left"><figure><img src="/files/YNxWzAGoJfi68yNqyRES" alt="" width="375"><figcaption></figcaption></figure></div>

3. Choose the Connect Agent Version on the devices you are updating. (If all devices in the fleet have Connect Agent 6.0 or higher, you will not see these options in the UI and can skip this step.) Most devices have a version higher than 6.0, but if your devices have version 5.4 or below, choose **5.4**.&#x20;
   * For 6.0+, Connect will use the latest versions of the step types, which include integrations with Artifactory, Xray, Docker Compose.
   * For 5.4, Connect will use legacy versions of the step types which are compatible with that version of Connect Agent.
4. For each step you add to the flow, add the information as described below. You may add as many steps as you need:
   1. Click **Add Step**.
   2. Choose the **Step Type**, enter a **Step Name**, and click **Create Step**.
   3. Complete the configuration wizard for the step according to the step type you have chosen, and save the step. For more information about the configuration, see the configuration page relating to the specific [step type](/features-new-ui/deployments/update-flow/step-types.md).
   4. (Optional) Change the order, edit, or delete steps. As you create steps in the update flow, the steps appear in a list, in the order that they will run. Each step has a handle on the left side. To move a step, grab the handle with your mouse and move the step to the desired position. To edit or delete a step, click one of the icons to right of the step.

{% hint style="success" %}
**Tip**: For each [step type](/features-new-ui/deployments/update-flow/step-types.md), there is a separate documentation page describing the configuration procedure.
{% endhint %}

5. To reboot the device after all the steps have run, mark **Reboot after Update**.
6. To configure a general rollback in case of failure, mark **Rollback on Failure** and choose how you want to run the rollback.
   * **Command**: Enter the command that will perform the general rollback.
   * **Script**: Upload the script that will perform the general rollback.
7. Click **Create Flow** and then go to the **Update Flows** table to view it in the list of flows.

## What’s Next?

Learn about the [Step Types](/features-new-ui/deployments/update-flow/step-types.md) that you can include in an update flow.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.connect.jfrog.io/features-new-ui/deployments/update-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
