The Nextflow plugin template is a scaffold for plugin development.
The simplest way to create a new plugin is to use the nextflow plugin create
sub-command to create a plugin project based on the template.
Create a new plugin with the following command:
nextflow plugin create
See Creating a plugin for more information.
To build the plugin:
make assemble
The plugin can be tested without a local Nextflow installation:
- Build and install the plugin to your local Nextflow installation:
make install
- Run a pipeline with the plugin:
nextflow run hello -plugins nf-plugin-template@0.1.0
Plugins can be published to a central plugin registry to make them accessible to the Nextflow community.
Follow these steps to publish the plugin to the Nextflow Plugin Registry:
- Create a file named
$HOME/.gradle/gradle.properties
, where $HOME is your home directory. Add the following properties:npr.apiKey
: Your Nextflow Plugin Registry access token.
- Use the following command to package and create a release for your plugin on GitHub:
make release
.
Note
The Nextflow Plugin registry is currently available as preview technology. Contact info@nextflow.io to learn how to get access to it.