ICYMI: Bootstrap XD Plugins From the Command-Line With Xdpm
In case you missed it: here we share the highlights from the Xpdm 4.0 release, which included the ability to bootstrap a plugin using the CLI, if that’s your preferred method for working on XD Plugins.

Xdpm is a powerful tool for developers who prefer using the command line when developing plugins for Adobe XD. Back in December, we released Xdpm v4.0 that brought the ability to bootstrap a plugin from the command line.

Overview

With the release of v4.0 you can use the xdpm bootstrap command to create a new plugin scaffold right from the command line. You can use it to generate different plugin types, including headless (no UI), panel-based, modal-based, and modal-based using React. Additionally, you have the option to specify the name for your new plugin’s directory from the terminal.

Any of the bootstrap commands will generate the appropriate folder structure and make it easy to begin creating your plugin.

Usage

Commands

# Bootstrap a headless plugin:

xdpm bootstrap # Bootstrap a headless plugin in dir ./my-panel:

xdpm bootstrap my-panel # Bootstrap a panel plugin:

xdpm bootstrap panel # Bootstrap a panel plugin in dir ./my-panel:

xdpm bootstrap panel my-panel

Bug fixes

Two bugs also were resolved in this newest release:

Xdpm now exits with non-zero code (1) when xdpm validate manifest validation fails.

manifest validation fails. Improved manifest validation for latest requirements

How to get started

We invite you to try it out in your own workflow. The tool is available on GitHub and npm. To install for the first time or update your existing version (requires Node.js):

Review the readme to see all the commands and features currently available beyond bootstrap. If you see other areas needing feedback, please submit a pull request.

Special thanks to Ash Ryan Arnwine, Kerri Shotts, Pablo Klaschka, Yoshiki Takeoka for making this release possible.
['Rob Kleiman']
['Cli', 'JavaScript', 'Adobe Creative Cloud', 'Plugins', 'Xd']