A command-line utility to quickly scaffold Nextflow plugins.
nf-plugin-generator-cli is a simple command-line tool designed to streamline the creation of new Nextflow plugins.
It takes a plugin name and optional parameters to generate a basic plugin structure, saving you time and ensuring consistency.
To generate a new Nextflow plugin, execute the following command:
nf-plugin-generator-cli <plugin-name> [options]Replace <plugin-name> with the desired name for your new Nextflow plugin (e.g., my-awesome-plugin).
The following options can be used to customize the plugin generation:
-
-p <package-name>or--package <package-name>: Specifies the package name for the plugin.- Default:
nextflow.hello - Example:
nf-plugin-generator-cli my-plugin --package com.example
- Default:
-
-d <output-directory>or--dir <output-directory>: Specifies the directory where the plugin structure will be generated.- Default: The current working directory.
- Example:
nf-plugin-generator-cli another-plugin -dir /path/to/plugins
-
-nf-version <nextflow-version>or--nf-version <nextflow-version>: Specifies the default Nextflow version to be used in the plugin configuration.- Default: The latest stable Nextflow version at the time of plugin generation.
- Example:
nf-plugin-generator-cli data-tools --nf-version 23.10.1
-
Generate a plugin named
my-pluginwith default settings:nf-plugin-generator-cli my-plugin
This will create a directory named
my-pluginin the current directory with the default packagenextflow.helloand the latest stable Nextflow version configured. -
Generate a plugin named
bio-pipelinewith a custom package and output directory:nf-plugin-generator-cli bio-pipeline --package org.biocompute --dir /home/user/nextflow-plugins
This will create a directory named
bio-pipelinein/home/user/nextflow-pluginswith the packageorg.biocomputeand the latest stable Nextflow version configured.
Java Development Kit (JDK) 21 (Graalvm) or higher is required
- Clone the repository:
git clone <repository-url>
cd nf-plugin-generator-cli- Build the project (using Gradle):
./gradlew clean build nativeCompileThis will create an executable file in the build/native/nativeCompile directory (e.g., build/native/nativeCompile/nf-plugin-generator-cli).
- Run the CLI:
build/native/nativeCompile/nf-plugin-generator-cli <plugin-name> [options]Contributions to the nf-plugin-generator-cli project are welcome!
Please feel free to submit pull requests or open issues for bug fixes, feature requests, or suggestions.
MIT License