Plugins are used by the snapcraft command to build a snap from parts defined within
Commonly used plugins include Python, Go, Java, cmake and autotools, and these help when working with projects written in a specific language or with a specific set of build tools.
These, and many other plugins, are included with Snapcraft, all of which can be listed with the following command:
$ snapcraft list-plugins Displaying plugins available for 'core20' autotools cmake dump go make meson nil npm python rust
With Snapcraft 4.0, if the working directory contains a Snapcraft project, the default behaviour is to show only the plugins available for either its specified base or the latest available supported base (currently
To list plugins specific to a defined base, run the following command:
$ snapcraft list-plugins --base core18 Displaying plugins available for 'core18' ant cmake dotnet gradle maven plainbox-provider rust autotools colcon dump kbuild meson python scons catkin conda go kernel nil qmake waf catkin-tools crystal godeps make nodejs ruby
Further information about any specific plugin can be obtained by typing
snapcraft help followed by the plugin name:
$ snapcraft help python
With Snapcraft 4.0, the help command is also base aware. To get help for a plugin targeting a specific base, run:
$ snapcraft help python --base core18
Last updated a month ago. Help improve this document in the forum.