Skip to content

App-Starter - Create an Admin Extension

App-Starter - Create an Admin Extension

In this guide, you will learn how to set up an extension for the Administration UI.


When you are using a self-hosted Shopware version, make sure to set the feature flag FEATURE_NEXT_17950=1 to enable the Admin Extension API.

An admin notification


In order to follow this guide, make sure you are familiar with and meet the following requirements:

  • Basic CLI usage (creating files, directories, running commands)
  • Installed shopware-cli tools
  • We will use the following libraries/software
    • npm
    • live-server (small local development live-reloading server)

Create the app wrapper

First of all, we need to create the app "wrapper", the so-called app manifest. It is just a single XML file with some basic configuration.

Create manifest file

First of all, we create the manifest file in a new directory. We'll call that our "project directory".

├─ manifest.xml


When you are using a self-hosted Shopware version, you can also create the project directory in the custom/apps directory of your Shopware installation. However, the descriptions in this guide apply to both Shopware cloud and self-hosted stores.

Next, we will put our basic configuration into the file we just created.

// manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:xsi="" xsi:noNamespaceSchemaLocation="">
        <label>Hi Developer App</label>
        <description>This app shows a notification in the admin panel</description>
        <author>shopware AG</author>
        <copyright>(c) shopware AG</copyright>

Set up communication between Shopware and the app

Next, we need to set up an entry point, so Shopware and your app can communicate. The entry point is a static .html file, which includes the Extension SDK script and defines our extension.

Communication between the admin panel and your entry point

The file will be rendered as a hidden iFrame within your admin panel. Using postMessage requests, the iFrame and your admin panel can communicate and exchange data.

Let's create an index.html file in a directory called src.

├─ src/
│  ├─ index.html
├─ manifest.xml
// src/index.html
<!doctype html>
        <script src=""></script>
            title: 'Hi there',
            message: 'Looks like someone sent you a message'

This file contains the basic setup for our app to display the notification:

  • The HTML is rendered in a hidden iFrame when the Administration panel is loaded.
  • The Admin Extension SDK script is loaded through a CDN and exposed as the sw object.
  • We use the notification.dispatch SDK method to display a simple notification with a title and a message.

Start the local development server

Next, we need to start the live server, so you don't always have to reload the page manually.

npm install -g live-server
live-server src

Now the file should be available on

Add the entry point link to your manifest

The final step of the setup is to configure your app to use that file as an entry point.

In order to do that, we have to add an admin section to our manifest.xml file and pass it into the base-app-url tag:

// manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:xsi="" xsi:noNamespaceSchemaLocation="">
        <!-- ... -->

Since the URL to your entry point is only available locally, you will only be able to see changes on your own machine. If you want to share it, for development purposes, you need to host the entry point file somewhere or use services to expose local files as public URLs, such as ngrok.

For production usage, you should host the entry point file on a public CDN or a static site hosting.

Install the app

In this last step, we will install the app using the Shopware CLI tools.


If this is your first time using the Shopware CLI, you have to install it first. Next, configure it using the shopware-cli project config init command.

shopware-cli project extension upload SimpleNotification --activate --increase-version

This command will create a zip file from the specified extension directory and upload it to your configured store. The --increase-version parameter increases the version specified in the manifest.xml file. This flag is required so Shopware picks up changes made to the manifest.xml since the last installation. When the app is successfully installed, you will see the notification pop up once you open the Shopware admin panel - congratulations!

Where to continue

This example showed end-to-end how to create a local dev environment and connect it with your Shopware Store. There is a lot more to learn and try out, so why not move on with one of those topics: