Quickstart

This quickstart guide will help you create and run your first add-on, a simple hello world add-on built with plain JavaScript.

Introduction

Check out this short video below for a quick visual introduction to the steps you'll take to create your very first add-on.

data-slots=video
https://www.youtube.com/embed/kSq4ykQGOdo

Prerequisites

Add-on CLI

The Adobe Express add-on CLI (Command Line Interface) is required for add-on development and allows you to create and host Adobe Express add-ons directly from your local machine.

Step 1: Create your add-on project

Open your terminal and run the following command:

npx @adobe/create-ccweb-add-on hello-world --template javascript-with-document-sandbox

This command will create a new add-on based on pure JavaScript with Document Sandbox support (the set of APIs that allow you to interact with Adobe Express documents).

The Templates section on the Development Tools page provides a list of available options; if your add-on doesn't need to manipulate documents, you may want to pick a sandbox-free template (e.g., javascript instead of javascript-with-document-sandbox).

For Windows Users: If you're using the CLI in the terminal, you'll need to add openssl to the path under Environment Variables. If git is installed, openssl can be found at C:\Program >Files\Git\usr\bin. Otherwise, you can download git from https://git-scm.com/downloads, and add the directory location to the path variable in your Environment Variables.

data-slots=text1, text2, text3, text4, text5
data-variant=info
npx is an npm package runner that can execute packages without installing them explicitly.
Please run this command to clear the npx cache and ensure the latest version of the CLI is invoked.
npx clear-npx-cache
npx @adobe/create-ccweb-add-on hello-world
The above may prove useful when updated versions of the CLI are released. If you want to read each individual CLI command manual page, run them via npx with the --help flag, for example:
npx @adobe/ccweb-add-on-scripts start --help

Step 2: Build and start your add-on

Next, execute the following commands to change into the newly created hello-world add-on folder, build the add-on, and start the add-on in a local server:

cd hello-world;
npm run build;
npm run start;

The start script will display messages like the following after it executes:

Done. Your add-on 'hello-world' is hosted on: https://localhost:5241/

You can now sideload your add-on by enabling the Developer Mode in the Add-ons panel.

Step 3: Enable add-on development mode (first-time only)

Dev settings toggle on

Accept and enable

Dev settings on

Step 4: Load and run your add-on

data-slots=text1, text2
data-variant=info
It's possible to access the Add-ons from the home page as well (i.e., without the need to open a new project first). In this case, you must follow the listing creation outlined here first.
For simplicity's sake, this Quickstart guide covers the document creation method.

add-on tabs

Dev testing toggle on

Add-on connect modal

Hello World add-on connected

Hello World add-on running

Step 5: Edit your add-on

While your add-on is still loaded and running, open the src/index.html file and update the "Create Rectangle" string in the <button> below.

To something else, like "Draw Rectangle".

Note that the terminal where your add-on runs will display messages showing that the src has been rebuilt, as shown in the screenshot below. This is due to the hot module reload feature built into the CLI.

hot reload

Go back to your browser where the add-on is running in Adobe Express and notice the new string is automatically updated, and the Add-on Development panel shows that it was auto-reloaded.

updated add-on

You can continue to update your code while your add-on is running, and the add-on will automatically be rebuilt on save.

Manifest updates

Any changes to the manifest.json will require a manual reload of your add-on. The Add-on Development panel will indicate this in the log messages, and the Refresh button can be used to reload the add-on directly within Adobe Express. You can try this by updating the name field in the src/manifest.json file of your running add-on from "Hello World" to, say, "Draw Rectangle".

manifest update

Then, switch back to your Adobe Express window, and you should see a message that changes have been detected in your manifest.

manifest refresh reminder

Click the Refresh button, then click your add-on icon to load it again, and note the updated name in the title of your add-on as outlined below.

manifest refresh complete

Next steps

Congratulations! You've completed the quickstart and run your first add-on!

Next, check out the development tools page to discover more details on topics to be aware of while building add-ons, followed by the rest of the guides section, where you will find in-depth resources for designing, developing, debugging and distributing your add-ons.

If you're ready to dive into our developer platform, we highly recommend following the tutorials, and exploring our collection of code samples. These samples provide hands-on examples of how to use our platform SDKs and APIs and are a great resource to help you get started building your own add-ons.