Publish the plugin

Let’s imagine that we are satisfied with our plugin and we would like to share it with our colleagues or other QGIS users. There are several steps which must be performed.

Create zip package

A zip package can be created by pb_tool (see Build the plugin). Go to your plugin directory and type:

pb_tool zip

A new zip file will be created in the current directory. This archive contains all necessary information in order to install the QGIS plugin.


Try to install QGIS plugin directly from this zip file. Go to Plugins ‣ Manage and Install Plugins…. Choose Install from ZIP.


Improve plugins metadata

Modify metadata.txt file.

Official QGIS plugin repository

You can publish your plugin in official QGIS Plugin repository. Plugin must fulfill basic requirements (GNU GPL license, English-friendly, documentation included). You can upload the plugin at Note that it can take few days when your plugin will be approved by the moderators.

Local QGIS plugin repository

It can be relatively easy to set up a local (in-house) QGIS plugin repository. It is only question of creating a XML file accessible via HTTP protocol (so web server must run in your infrastructure).

Simple example for our plugin:

<?xml version="1.0"?>
 <pyqgis_plugin name="fiberplanitconvert" version="0.1">
     <description>Convert input files to output FiberPlanIT shapefiles</description>

Store it as qgis_plugins.xml and check if the file is accessible over HTTP protocol, eg. http://server/qgis_plugins.xml.

Now add the new repository to QGIS. Go to Plugins ‣ Manage and Install Plugins….


Fig. 18 In tab Settings add the new repository.

Now you should see the plugin in the search list.



When searching for more advanced solutions take a look at or similar solutions.