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 [email protected]
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.
- Package your plugin and publish it to the registry:
make release
.