---
title: "How to add application links using Jira Command Line Interface"
canonical: "https://support.appfire.com/space/SUPPORT/89141503/How%20to%20add%20application%20links%20using%20Jira%20Command%20Line%20Interface"
format: markdown
---
<span style="color: #000000">This article explains how to add other Confluence application link to Jira and the reciprocal link of Jira in Confluence using </span>*<span style="color: #000000">Command Line Interface (CLI)</span>*<span style="color: #000000">. </span>

<span style="color: #000000">Confluence application link must be added in Jira and vice versa, simultaneously to establish a successful connection between the two applications. </span><span style="color: #000000">Use </span>*<span style="color: #000000">Atlassian Command Line Interface v8.6</span>*<span style="color: #000000"> to connect the two applications.</span>

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

<span style="color: #000000">Use</span> [**addApplicationLink**](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70780169/addApplicationLink) <span style="color: #000000">action to add the application links and establish a successful connection. By default, both incoming and outgoing links are enabled.</span>

1. <span style="color: #000000">Make sure the </span>*<span style="color: #000000">acli.properties</span>*<span style="color: #000000"> file in the CLI client folder is filled with server details of both Jira and Confluence applications. </span><span style="color: #000000">Refer to the</span><span style="color: #091e42"> </span>[<span style="color: #091e42">CLI Client Installation and Use</span>](https://appfire.atlassian.net/wiki/spaces/ACLI/pages/60560924/CLI+Client+Installation+and+Use)<span style="color: #091e42"> </span><span style="color: #000000">for the installation guide.</span>
2. <span style="color: #000000">Comment out the default application in the </span>*<span style="color: #000000">acli.properties</span>*<span style="color: #000000"> file as the actions are performed in Jira and Confluence simultaneously. </span><span style="color: #000000">Here is a sample properties file for your reference: </span>
3. <span style="color: #000000">In a text file (say </span>*<span style="color: #000000">command.txt</span>*<span style="color: #000000">), add the following action commands with the respective server URLs:</span>
4. <span style="color: #000000">Execute the file (created in the previous step) from the terminal using the</span> [**run**](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70783175/run) <span style="color: #000000">action.</span>

<span style="color: #000000">The links are established as shown:</span>

- <span style="color: #000000">From Confluence to Jira:</span>
  

- From Jira to Confluence:
  
  

<span style="color: #000000">If required, you can disable the incoming and outgoing links. Use the '</span>*<span style="color: #000000">--options disableIncoming</span>*<span style="color: #000000">' and '</span>*<span style="color: #000000">--options disableOutgoing'</span>*<span style="color: #000000"> parameters along with the action command. </span><span style="color: #000000">A sample action command for the same is as follows:</span>

```java
myconfluence --action addApplicationLink --url "http://jirasso.bobfire.com:8284/" --name "Jira" --options disableIncoming --options disableOutgoing
myjira --action addApplicationLink --url "http://dockerhost2.bobfire.com:8180/" --name "Confluence 80" --options disableIncoming --options disableOutgoing
```

<span style="color: #000000">The application link URL uses the base URL, that is configured in your application, to connect to the respective application.</span>

> ℹ️ - <span style="color: #000000">Make sure the server base URL is same as the application URL.</span>
> ℹ️ - <span style="color: #000000">Use '</span>*<span style="color: #000000">--options impersonate</span>*<span style="color: #000000">' with the </span>**<span style="color: #000000">addApplicationLink</span>**<span style="color: #000000"> action to enable shared users.</span>
> ℹ️ - <span style="color: #000000">It is recommended to test this scenario in a non-production environment or run the action with the</span> [*--simulate*](https://appfire.atlassian.net/wiki/spaces/BCLI/pages/65933690/Parameters#Parameters-simulate) <span style="color: #000000">parameter to verify the behavior before deploying.</span>