---
title: "How to add a requirement to a Bamboo plan using CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89133728/How%20to%20add%20a%20requirement%20to%20a%20Bamboo%20plan%20using%20CLI"
format: markdown
---
<span style="color: #000000">This article explains how to add a requirement to a Bamboo plan using CLI. </span>

## <span style="color: #000000">Instructions</span>

<span style="color: #000000">Use the</span><span style="color: #091e42"> </span>**<span style="color: #091e42">addRequirement</span>**<span style="color: #091e42"> </span><span style="color: #000000">action with </span>*<span style="color: #000000">plan, job </span>*<span style="color: #000000">and</span>*<span style="color: #000000"> requirement </span>*<span style="color: #000000">parameters to add the requirement in your test plan. </span><span style="color: #000000">Ensure that the CLI client file is updated with the relevant credentials.</span>

1. <span style="color: #000000">Find the value of the </span>*<span style="color: #000000">requirement</span>*<span style="color: #000000"> parameter as follows: </span>
  1. <span style="color: #000000">Under </span>*<span style="color: #000000">Bamboo administration</span>*<span style="color: #000000">, navigate to the </span>*<span style="color: #000000">Agents</span>*<span style="color: #000000"> section and then select the </span><span style="color: #000000">*custom.com*</span><span style="color: #000000"> key under </span>*<span style="color: #000000">Shared capabilities</span>*<span style="color: #000000">.</span>  
> Macro (inline-media-image)
  2. <span style="color: #000000">Copy the value of the </span>*<span style="color: #000000">capabilityKey </span>*<span style="color: #000000">from the URL in the address bar; this is the value of the </span>*<span style="color: #000000">requirement</span>*<span style="color: #000000"> parameter</span><span style="color: #000000">*.*</span>
2. <span style="color: #000000">Now, run the following CLI action with the relevant Bamboo plan name and job values:</span>

<span style="color: #000000">The action, in this example, results in the following output:</span>

```
Requirement added with id 1245185.
```

<span style="color: #000000">The requirement is now available for the specified job in </span><span style="color: #000000">the User Interface view </span><span style="color: #000000">as follows:</span>

![image](media://0ef6bf00-ff3a-48f0-a4a1-d61277cbe9a1)