Basic plugin management

Installation

To install a plugin, use the –install flag:

nptool --install <plugin-name>

Where <plugin-name> is to be replaced by a valid plugin name. To install several plugins, use a list with a comma separator (example here to install both pfad and must2 plugin):

nptool --install pfad,must2

Installation takes care of dependencies and will install automatically all required plugins.

For advanced users:

In some cases, you may need to pass cmake options to nptool to be used during the plugin compilation stage. This could be done using the –cmake-option flags. The argument needs to be encapsulated in {curly brackets}. If quotes are used, they need to be escaped.

nptool --install geant4 --cmake-option {-DQT_HOME=/usr/lib}
nptool --install geant4 --cmake-option {-DNAME=\"alpha\"}

Update

To update a plugin to the latest version, use the –update flag:

nptool --update <plugin-name>

Uninstall

To uninstall a plugin, use the –uninstall flag:

nptool --uninstall <plugin-name>

Advance features

You can choose to install a plugin specifying a branch or revision number. The entire repository will be cloned, then the specified branch or commit will be checked out.

nptool --install <plugin-name> --branch <branch-name>

or

nptool --install <plugin-name> --commit <commit-hash>