Skip to main content

Publish your plugin

BetaThe plugin SDK and these pages are new. They change with each release, as developers use them and tell us what works.View as Markdown

Publish an update of a plugin that is already in the plugin store. You upload the plugin from a Volumio device with volumio plugin submit, then open a pull request to the sources repository.

Publishing through a pull request alone opens soon. Volumio's CI will then build and check each pull request, as From pull request to store describes. Until then, a new plugin made with volumio-plugin init cannot be published. You can write it, check it and run it on your Volumio with deploy.

Prerequisites​

  • A GitHub account, and a fork of volumio-plugins-sources-bookworm.
  • A Volumio 4 device signed in to MyVolumio. submit stops with Error: Please login to myvolumio in order to add plugins. otherwise.
  • SSH on that device. Turn it on with SSH > ENABLE at http://<device>/dev.
  • A package.json with name, version, description, volumio_info.prettyName and volumio_info.plugin_type. submit reads only package.json.

submit accepts five plugin types: audio_interface, music_service, system_controller, system_hardware and user_interface. It accepts three architectures in volumio_info.architectures: amd64, armhf and i386.

1. Clone your fork on the device​

Open an SSH session on the device, then clone your fork into a new branch:

git clone https://github.com/<your-user>/volumio-plugins-sources-bookworm.git --depth=1
cd volumio-plugins-sources-bookworm
git checkout -b <your-branch>

2. Update the plugin folder​

Each plugin is a folder at the top of the repository, named as the name in its package.json. Copy your changes into that folder.

Delete node_modules from the folder. submit stops when the folder has files git does not track, and it installs the production dependencies itself.

3. Raise the version​

Raise version in package.json. Use semver: 1.2.0 to 1.2.1 for a fix, 1.3.0 for a new feature. Without a new version, the store keeps the old one.

4. Check the plugin​

From the plugin folder, run:

npx --package=@volumio/plugin-sdk volumio-plugin check .

Fix every error. Problems the plugin already had show as warnings.

5. Commit and push​

submit stops when the folder has changes that are not committed or not pushed. Commit and push them:

git add .
git commit -m "<name> <version>: <what changed>"
git push origin <your-branch>

6. Submit the plugin​

From the plugin folder, run:

volumio plugin submit

submit asks whether to change the version. When package.json has no volumio_info.architectures, it asks for them too. Then it packages the plugin and uploads it to the beta channel. It prints Plugin added and Plugin uploaded when it succeeds.

7. Open the pull request​

Open a pull request from your branch to the sources repository. Keep it to one plugin, and describe what changed for users. Volumio moves a plugin to stable only after it reviews the pull request.

If the plugin needs an account or a token to work, write in the pull request that test credentials are available. A moderator asks for them privately. Never put credentials in the repository.

After the submit​

The plugin is in the beta channel. Users who turn on Plugins Test Mode at http://<device>/dev get it. A moderator reviews the pull request. Once the plugin has run well in beta, the moderator moves it to stable, for every user.

Was this page helpful?