> For the complete documentation index, see [llms.txt](https://docs.digibee.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digibee.com/documentation/development-cycle/overview/deploy-and-manage-pipelines.md).

# Deploy and manage pipelines

Learn how to deploy, redeploy, promote, roll back, and remove pipelines on the Run page of the Digibee Integration Platform.

## **Before you begin**

To deploy or manage pipelines, you need the **`DEPLOYMENT:READ`** and **`DEPLOYMENT:CREATE`** permissions, or a role that includes them, in the target environment (test or prod). The permissions can be assigned to your user or to a group you belong to. Read more about [Roles](https://docs.digibee.com/documentation/platform-administration/administration/new-access-control/access-control-roles.md).

The pipeline also must have a configured trigger.

## **Deploy a pipeline**

1. On the **Run** page, select the environment in the upper-left corner.
2. Click **Create new**.
3. Select the pipeline and its version. The Platform shows the associated project, the trigger, and, for multi-instance pipelines, the instance.
4. In **Pipeline engine version**, select the engine version. The default is the latest version.
5. In **Pipeline size**, select Small, Medium, or Large.
6. Set the number of concurrent executions.
7. Set the number of replicas. If your realm uses the Consumption-Based Model, the deployment panel also shows the autoscaling option, where you set the minimum and maximum number of replicas. See [Autoscaling](https://docs.digibee.com/documentation/development-cycle/overview/autoscaling.md).
8. Click **Deploy**.

Before the deployment completes, the Platform shows how it affects your consumption: licenses for the Pipeline-Based Model, or RTU and subscription usage for the Subscription-Based Model.

If the pipeline was deployed before, its current settings are filled in automatically.

To choose the right size, concurrent executions, and replicas, read [How pipeline execution works](https://docs.digibee.com/documentation/development-cycle/overview/how-pipeline-execution-works.md).

{% hint style="info" %}
If you set more than 10 replicas, the Platform shows a warning. The warning is informational and does not block the deployment.
{% endhint %}

## **Redeploy a pipeline**

Redeploy a pipeline to change its size, concurrent executions, replicas, or autoscaling settings, or when the Platform indicates that the current deployment is no longer valid.

1. On the **Run** page, find the pipeline.
2. Click the three-dot menu and select **Redeploy**.
3. Change the settings you need.
4. Click **Redeploy**.

{% hint style="warning" %}
During a redeployment, the current pipeline instance is removed before the new one is created. With a single replica, the pipeline may be briefly unavailable. With multiple replicas, the impact is smaller because new replicas start while others are still running.

If the runtime is down, no replicas can be allocated and the pipeline stays offline until the runtime recovers. Check the runtime status before you redeploy, and avoid redeploying during critical execution periods.
{% endhint %}

## **Promote a pipeline to another environment**

1. On the **Run** page, select the environment where the pipeline is deployed.
2. Click the three-dot menu on the pipeline and select **Promote**.
3. Review the deployment settings for the target environment and change them if needed.
4. Click **Promote**.

After the promotion, the Platform opens the Run page of the target environment and shows the licenses consumed. The pipeline stays deployed in the original environment until you remove it.

## **Roll back to the previous version**

Roll back a pipeline when errors occur after you deploy a new version. The rollback restores the previous version that was deployed successfully in the same environment.

1. On the **Run** page, click the three-dot menu on the pipeline and select **Rollback**.
2. Confirm the action.

{% hint style="warning" %}
A rollback cannot be undone. It also does not restore previous Globals or Accounts settings: the pipeline uses their current configuration.
{% endhint %}

## **Remove a deployment**

1. On the **Run** page, click the three-dot menu on the pipeline and select **Remove**.
2. Confirm the action.

Only the deployment of the selected version is removed. Other versions of the pipeline are not affected. While the removal is in progress, the pipeline shows the **Deleting** status.

## **Troubleshoot deployment errors**

If a deployment, redeployment, or promotion fails, see [Deployment issues](https://docs.digibee.com/documentation/troubleshooting/deployment-issues/globals-and-accounts-issues.md).

## **Next steps**

Now that your pipeline is deployed, read [Deployment status and history](https://docs.digibee.com/documentation/development-cycle/overview/deployment-status-and-history.md) to follow its status and track changes.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digibee.com/documentation/development-cycle/overview/deploy-and-manage-pipelines.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
