---
title: "Contentstack Management - Branch Alias Actions"
description: "Use the Contentstack Management Branch Alias actions to manage branch aliases, streamlining branch control for an organized and efficient workflow."
url: "https://www.contentstack.com/docs/agent-os/contentstack-management-branch-alias-actions"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-08-11"
---

# Contentstack Management - Branch Alias Actions

Contentstack enables the assignment of [aliases](/docs/headless-cms/about-aliases) to any [branch](/docs/headless-cms/about-branches) of your stack, acting as pointers to specific branches. With the Branch Alias actions, you can retrieve details of all branch aliases, assign or reassign aliases to a specific branch, and delete them as required. These actions streamline branch control, ensuring an organized and efficient development process with Contentstack Management Branch Alias.

![Select\_Actions.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blte082da4ba8854f53/67906e869d626e112e11d616/Select_Actions.png)

**Note:** You must have the [Branches](/docs/headless-cms/about-branches/) feature enabled for your stack to use the Branch Alias actions. For more information, please reach out to our [Support Team](mailto:support@contentstack.com).

Let’s look at the action in detail.

## Assign/Reassign a Branch Alias

This action assigns/reassigns an existing/new alias to a branch in a stack.

1.  Under the **Choose an Action** tab, select the **Assign/Reassign a Branch Alias** action.
2.  On the **Assign/Reassign a Branch Alias Configure Action** page, enter the details given below:
    1.  Click **\+ Add New Account** button to connect your Contentstack account as shown in the [Connect your Contentstack Account](/docs/agent-os/about-contentstack-management-actions)step.
    2.  Select a **Stack** from the **Lookup** list.
    3.  Select an **Action** from the dropdown. You have two options: **Assign** and **Reassign**.
        *   **Assign**: Select this option to assign a new alias name to a branch.
        *   **Reassign**: Select this option to assign an existing alias to a branch.
    4.  Select or enter a **Branch Alias** from the **Lookup** list.
        
        **Note:** If you select the **Assign** action, make sure to manually enter the new alias name before assigning it to the branch to prevent errors.
        
    5.  Select the **Target Branch** from the **Lookup** list. ![Select\_Fields.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltf46aa7b509b3556b/67906fa1ee8f384cd7aa42cb/Select_Fields.png)
3.  Click the **Proceed** button.
4.  Click the **Test Action** button to test the configured action. ![Test\_Action.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blte3d25209fe710a45/67906fa2cc4fb93e1ccecd8b/Test_Action.png)
5.  The output will be shown as below. Click the **Save and Exit** button. ![Save\_Exit.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltddad16f914468dfb/67906fa13b4213478d05bb61/Save_Exit.png)

## Delete a Branch Alias

This action deletes a branch alias from a stack.

1.  Under the **Choose an Action** tab, select the **Delete a Branch Alias** action.
2.  On the **Delete a Branch Alias Configure Action** page, enter the details given below:
    1.  Click **\+ Add New Account** button to connect your Contentstack account as shown in the [Connect your Contentstack Account](/docs/agent-os/about-contentstack-management-actions) step.
    2.  Select a **Stack** and a **Branch Alias** from the **Lookup** list. ![Select\_Fields.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt2c9bccca01274906/67906f33bc13493863d5bc1c/Select_Fields.png)
3.  Click the **Proceed** button.
4.  Click the **Test Action** button to test the configured action. ![Test\_Action.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt0250045647b27be3/67906f33259b9a3e32266905/Test_Action.png)
5.  The output will be shown as below. Click the **Save and Exit** button. ![Save\_Exit.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt5e6a17b24f510ee5/67906f339d626e20bd11d61a/Save_Exit.png)

## Get All Branch Aliases

This action fetches the details of all the branch aliases from a stack.

1.  Under the **Choose an Action** tab, select the **Get All Branch Aliases** action.
2.  On the **Get All Branch Aliases Configure Action** page, enter the details given below:
    1.  Click **+ Add New Account** button to connect your Contentstack account as shown in the [Connect your Contentstack Account](/docs/agent-os/about-contentstack-management-actions) step.
    2.  Select a **Stack** from the **Lookup** list.
    3.  **Optionally**, enable the **Show Optional Fields** toggle button to display the **Branch Alias Limit** and **Skip Branch Alias (Pagination)** fields. ![Select\_Fields.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt0f4e646525b5cea5/67906ead79558d5d724d0943/Select_Fields.png)
3.  Click the **Proceed** button.
4.  Click the **Test Action** button to test the configured action. ![Test\_Action.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt2c9c62fbf9ff6661/67906eacd8a19e70f01b4283/Test_Action.png)
5.  The output will be shown as below. Click the **Save and Exit** button. ![Save\_Exit.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltb67fb1526285c856/67906eace05cbf43a3562152/Save_Exit.png)

## Get a Single Branch Alias

This action fetches the details of a single branch alias from a stack.

1.  Under the **Choose an Action** tab, select the **Get a Single Branch Alias** action.
2.  On the **Get a Single Branch Alias Configure Action** page, enter the details given below:
    1.  Click **\+ Add New Account** button to connect your Contentstack account as shown in the [Connect your Contentstack Account](/docs/agent-os/about-contentstack-management-actions) step.
    2.  Select a **Stack** and **Branch Alias** from the **Lookup** list. ![Select\_Fields.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltffef3fda9ffdda90/67906ef7a5499b0f2714c989/Select_Fields.png)
3.  Click the **Proceed** button.
4.  Click the **Test Action** button to test the configured action. ![Test\_Action.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt2c9c62fbf9ff6661/67906eacd8a19e70f01b4283/Test_Action.png)
5.  The output will be shown as below. Click the **Save and Exit** button. ![Save\_Exit.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltcb8ac1c494bb8324/67906ef7e92e099530c64bfc/Save_Exit.png)