Edit in GitHubLog an issue

The manifest.json file (v3)

The manifest is where you include metadata about your plugin. Simply put, the manifest is a list of facts about your plugin in the form of a JSON object. No executable code goes into your manifest.

The manifest is located in your plugin's root folder and must be named manifest.json.

Example manifest#

Copied to your clipboard
1{
2 "id": "YOUR_ID_HERE",
3 "name": "Name of Your Plugin",
4 "version": "0.0.1",
5 "icons": [
6 { "width": 24, "height": 24, "path": "images/icon@1x.png" },
7 { "width": 48, "height": 48, "path": "images/icon@2x.png" }
8 ],
9 "host": {
10 "app": "XD",
11 "minVersion": "21.0"
12 },
13
14 "uiEntryPoints": [
15 {
16 "type": "menu",
17 "label": "Hello World Command",
18 "commandId": "helloCommand"
19 },
20 {
21 "type": "panel",
22 "label": "Hello World Panel",
23 "panelId": "helloPanel"
24 }
25 ]
26}

See the sections below to learn more about each key/value field. All fields are required unless otherwise noted below.

Top-level metadata#

The top level of the manifest JSON object contains high-level information about your plugin.

Info Here are the definitions of the keywords in the "Required" column:

  • Develop - required field for XD to run the plugin. If excluded, XD won't load the plugin
  • Publish - required field for plugins to be submitted in the Adobe Developer Console and published in the Plugin Manager
Key pathTypeDescriptionRequired
idstringUnique identifier for your plugin. You can get your unique ID on the Adobe Developer Console.Develop / Publish
namestringThe name should be 3 - 45 characters.
Note: We recommend your plugin name matches the project name you created when getting your plugin ID from the Adobe Developer Console.
Develop / Publish
versionstringVersion number of your plugin in x.y.z format.
Version must be three segments and each version component must be between 0 and 99.
Develop / Publish
iconsarray<object>Icons displayed in XD's plugins panel.
PNG, JPG/JPEG formats are supported and the max file size for each icon is 1MB.
Two sizes are required - [24, 48].
Note: Icons for XD's Plugin Manager are uploaded directly via the Adobe Developer Console, not included within your plugin itself. See our "Publishing your plugin" guide to learn more.
Publish
host.appstringIndicates that this is a plugin for Adobe XD (currently, the only valid value here is "XD").Develop / Publish
host.minVersionstringMinimum required version of the host app (in x.y format) that can run this plugin. The lowest valid version for headless and modal plugins is 13.0. The lowest valid version for panel plugins is 21.0.
Note: The version number must be two segments. Typically, you'll leave the minor segment set to 0, e.g. 16.0.
Develop / Publish
host.maxVersionstringMaximum version of host app that can run this plugin. Same formatting as host.minVersion.Optional
uiEntryPointsarray<[MenuItemDefinition](#MenuItemDefinition)&gt;Describes the entries your plugin adds to the Plugins menu & "plugin launchpad" sidebar in XD. See the next section for details.Develop / Publish

UI entry points#

The uiEntryPoints field is an array of objects matching the MenuItemDefinition format specified below. These entries appear both in the Plugins menu in the native menubar, and the "plugin launchpad" sidebar panel. See Plugin menu structure for details on how these entries are displayed.

Each entry point specifies either commandId or panelId, to create either a direct-action command or a panel show/hide command.

MenuItemDefinition#

KeyTypeDescription
typestringEntry point type: either "menu" or "panel".
label?string or [LocaleMap](#menu-localization)Required if multiple MenuItemDefinition objects defined; ignored if only one defined.

Label for this menu item that the user will select to run your plugin. May be a single string or a dictionary of localized strings.

Note: If you only have 1 commandId or panelId, the label value must match the manifest's name value. Additionally, the "Public plugin name" you submit via the Adobe Developer Console must match the manifest's name and label values.
commandIdstringSpecify commandId to create a menu item that runs plugin code directly -- either a headless command, or a command with modal dialog UI. This identifier links the menu item to a handler function in your plugin's JavaScript code. This identifier needs to be unique within your plugin.

Note: Don't specify commandId and panelId at the same time.
panelIdstringSpecify panelId to create a menu item that opens panel UI for your plugin. This identifier links the menu item to a panel definition object in your plugin's JavaScript code. This identifier needs to be unique within your plugin.

Note: Don't specify commandId and panelId at the same time.
shortcutObjectOptional. Object defining Mac and Windows keyboard shortcuts for this menu item. See "Keyboard shortcuts" below for details.

Keyboard shortcuts#

Example: "shortcut": { "mac": "Cmd+Shift+P", "win": "Ctrl+Shift+P" }

Keyboard shortcuts are defined separately for each platform. Each definition is a string that follows this syntax:

  • One or more modifier keys, in any order, each one followed by "+"

    • Mac: modifiers may be Cmd, Ctrl, Opt / Alt, or Shift. Shortcut must contain at least one of Cmd or Ctrl.
    • Win: modifiers may be Ctrl, Alt, or Shift. Shortcut must contain Ctrl.
  • A letter or number key.

    • Letters are case-insensitive (e.g. "Cmd+P" and "Cmd+p" mean the same thing and neither requires pressing Shift).
    • Other keys (including punctuation, arrow keys, or F1-F12) are currently not supported.

Info If your shortcut collides with a built-in XD command or another plugin's shortcut, your shortcut will be ignored and you'll see a warning printed to the developer console.

Menu Localization#

Plugin menu item labels or panel labels can be localized to match XD's current UI language setting. Other manifest fields such as name cannot be localized yet.

Localized labels are represented as an object containing multiple translations, instead of a single string value:

Copied to your clipboard
1"label": {
2 "default": "Menu Label",
3 "fr": "Etiquette de Menu",
4 "de": "Menübezeichnung"
5}

A default string is always required. The language must be a two-letter code from ISO 639-1, not a hyphenated code such as en-US. To avoid inconsistency with the rest of XD's built-in menu items, languages that aren't supported by XD are ignored.

Info You can also localize strings that appear in your plugin's own dialog UI, by choosing which strings to use in your UI based on the value of application.appLanguage.

Was this helpful?
Copyright © 2021 Adobe. All rights reserved.