---
title: "How to add an environment to deployment project using Bamboo CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89141994/How%20to%20add%20an%20environment%20to%20deployment%20project%20using%20Bamboo%20CLI"
format: markdown
---
<span style="color: #000000">This article explains how to add an environment to a deployment project using </span>*<span style="color: #000000">Bamboo Command Line Interface (CLI)</span>*<span style="color: #000000">. </span><span style="color: #222222">Bamboo allows you to create multiple </span><span style="color: #000000">deployment environments</span><span style="color: #222222"> and also allows you to manage the Environment</span><span style="color: #222222"> details.</span>

## Instructions

<span style="color: #000000">It is required to know the deployment project ID to which the environment is to be added. The deployment project ID is captured from the URL and is the highlighted part in red as shown:</span>

![image](media://b8bee8f3-4955-4ce7-9034-6b2c553833b6)

<span style="color: #000000">Use the</span><span style="color: #000000"> </span>[**<span style="color: #000000">addEnvironment</span>**](https://appfire.atlassian.net/wiki/spaces/BCLI/pages/65936225/addEnvironment)<span style="color: #000000"> </span><span style="color: #000000">action to </span><span style="color: #000000">add the environment to a deployment project </span><span style="color: #000000">in Bamboo. </span>

1. <span style="color: #000000">Execute the following action to perform this function:</span>
  <span style="color: #000000">Or, mention the deployment project ID for the </span>*<span style="color: #000000">deploymentProject </span>*<span style="color: #000000">parameter using</span><span style="color: #000000"> the following action:</span>
2. <span style="color: #000000">Add the Environment, </span><span style="color: #000000">*TEST1*</span><span style="color: #000000">, as shown:</span>

<span style="color: #000000">The parameters used with the actions are:</span>

- *<span style="color: #000000">--deploymentProject</span>*<span style="color: #000000"> value refers to the name or ID of the deployment project.</span>
- *<span style="color: #000000">--description</span>*<span style="color: #000000"> value refers to the environment description.</span>
- *<span style="color: #000000">--name</span>*<span style="color: #000000"> value refers to the name of the environment.</span>

> ℹ️ <span style="color: #000000">It is recommended to test the actions in a non-production environment before running in production</span><span style="color: #000000">, </span><span style="color: #000000">or run the actions with </span>[*<span style="color: #000000">--simulate</span>*](https://appfire.atlassian.net/wiki/spaces/BCLI/pages/65933894/--simulate)<span style="color: #333333"> </span><span style="color: #000000">parameter to verify the behavior before deploying.</span>