Skip to content

Installation

Always pin to an exact version in scripts and hooks — never use @latest:

Terminal window
# Explore (one-off)
npx universal-plugin@latest --help
# Scripts and CI (pin to current version)
npx universal-plugin@$(npm view universal-plugin version) build
Terminal window
npm install -g universal-plugin
universal-plugin plugin build
Terminal window
npm install --save-dev universal-plugin
# or
pnpm add -D universal-plugin

Then use it from package.json scripts:

{
"scripts": {
"build:plugin": "universal-plugin plugin build",
"postinstall": "universal-plugin plugin build"
}
}
  • Node.js >= 22
  • A .plugin/plugin.json at the plugin root (see Introduction)