# Install a plugin

There are two ways to install plugins in SonarQube:

* **Marketplace** - With Community Edition, you can use Marketplace to automatically install plugins from the SonarQube. With commercial editions, you can browse plugins in the Marketplace, but you need to manually install and update your plugins.
* **Manual Installation** - You need to manually install plugins when using commercial editions of SonarQube. You can also manually install plugins if your SonarQube instance doesn’t have internet access or the plugin you’re installing isn’t in the Marketplace.

{% hint style="warning" %}
Plugins are not provided by Sonar, and you therefore install them at your own risk. A SonarQube administrator needs to acknowledge this risk in the Marketplace before installing plugins or when prompted in SonarQube after installing a plugin manually.
{% endhint %}

### Installing plugins from the marketplace <a href="#installing-plugins-from-the-marketplace" id="installing-plugins-from-the-marketplace"></a>

{% hint style="info" %}
You can only install and update plugins from the Marketplace in SonarQube Community Edition. With commercial editions, you need to manually install and update plugins.
{% endhint %}

If your instance has internet access and you’re connected with a SonarQube user with the **Administer System** global permission, you can find the Marketplace at **Administration > Marketplace**. From here:

* Find the plugin you want to install
* Click **Install** and wait for the download to be processed

Once the download is complete, a **Restart** button will be available to restart your instance. Restarting will enable the new plugin. This restart will not take into account any change to sonar-properties settings.

See [marketplace](https://docs.sonarsource.com/sonarqube-server/9.8/instance-administration/marketplace "mention") for more details on how to configure your SonarQube Server to connect to the internet.

## Manually installing plugins <a href="#manually-installing-plugins" id="manually-installing-plugins"></a>

To manually install a plugin:

1. Download the plugin you want to install. The version needs to be compatible with your SonarQube version.
2. Put the downloaded jar in `<SONARQUBE_HOME>/extensions/plugins`, and remove any previous versions of the same plugins.
3. Restart your SonarQube server.

## Uninstalling plugins <a href="#uninstalling-plugins" id="uninstalling-plugins"></a>

To uninstall a plugin:

1. Delete the plugin from the `<SONARQUBE_HOME>/extensions/plugins` folder.
2. Restart your SonarQube server.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/9.8/setup-and-upgrade/install-a-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
