You can no longer publish Connect apps on the Atlassian Marketplace. All new extensibility features will be delivered only on Forge.
Refer to this blog post for our timeline to end Connect support.
Have an existing Connect app? You can incrementally migrate it to Forge.
This tutorial will teach you the basics of developing apps for Confluence Cloud using Connect. The Connect framework handles discovery, installation, authentication, and seamless integration into the Confluence user interface.
By the end of this tutorial, you'll have done everything you need to start developing apps, including:
To complete this tutorial, you'll need a basic understanding of Confluence and the following:
In this tutorial, the app server will run on your local development machine. A tunnel tunnel is necessary to allow Jira or Confluence Cloud to send requests to the server running on your machine and install the app. ACE creates tunnels using the ngrok Node.js module, which can be used free of charge after creating an ngrok account. In order to use ngrok in ACE, an auth token is all that's required. Follow this process to obtain one:

The Cloud Developer Bundle provides a free Atlassian cloud development site for building and testing apps. To create your site:
Your cloud development site has Confluence and all the Jira products installed. Note that Atlassian cloud development sites have limits on the number of users.
With development mode you can install app descriptors in your development site from any public URL. This means you don't need to list an app in the Atlassian Marketplace before installing it.



After the page refreshes, you'll see the Upload app link. This link enables you to install apps while you're developing them.
Atlassian Connect Express (ACE) is a Node.js toolkit for building Atlassian Connect apps. It uses the Node.js Express framework, allowing you to leverage routing, middleware, and templating within a Node.js environment.
Verify that you have Node.js and npm installed correctly (the version numbers returned may vary):
1 2$ node -v v12.12.0 $ npm -v 6.11.3Install
atlas-connectby running:1 2npm install -g atlas-connectVerify the installation by running:
1 2atlas-connect --helpIf ACE installed successfully, you'll see the following:
1 2Usage: atlas-connect [options] [command] Commands: new [name] create a new Atlassian app help [cmd] display help for [cmd] Options: -h, --help output usage information -V, --version output the version numberStep 5: Create a basic app
Now, we're ready to create a basic app using ACE. The app is a general page, accessible in the Apps drop-down menu in Confluence's top navigation, that displays a Hello World message.
- Create a new app using ACE. The
generalPagesmodule is added by default:1 2atlas-connect new confluence-helloworld-addon- Switch to the app directory:
1 2cd confluence-helloworld-addon- Install dependencies for the app using npm:
1 2npm install- Add a credentials.json file in your app directory with your information:
- your-confluence-base-url: Use the scheme and domain of your cloud development site (for example, https://your-domain.atlassian.net).
- username: Use the email address of your Atlassian account.
- password: Specify the API token.
1 2{ "hosts": { "<your-confluence-base-url>": { "product": "confluence", "username": "<user@example.com>", "password": "<api_token>" } }, "ngrok": { "authtoken": "your-ngrok-token" } }- Start the server:
1 2npm startYou should see something similar to the following at the bottom of the app logs:
1 2POST /installed 204 186.061 ms - - Registered with host at <your-confluence-base-url>/wikiStarting the service causes the app to be installed in the Confluence instance described in the
credentials.jsonfile.Step 6: Test your app
Important: for any recently created ngrok account there will be a warning page displayed that needs to be confirmed once before the tunnel can be used. To do this, look for the message
Local tunnel established at https://<some ID>.ngrok-free.app/and open that URL in your browser. You'll see a page like this:Confirm by clicking on the button labeled "Visit Site". Your tunnel is now fully operational.
Now that the sample app is installed, let's see the app in action. Navigate to your Confluence instance and click on 'Hello World' under Apps. You should be greeted with the following page:
Next steps
Now that you have set up your cloud development site, you're ready to get started building apps. Check out this guide to learn more about the
generalPagesmodule, which was used in this tutorial. To explore all Connect has to offer, check out our other tutorials, or take a look at the REST API docs.Rate this page: