# Installing a Discovery licence

This page describes how to install and upgrade a [Discovery licence](discovery-licensing.md).

## Installing a licence via Discovery’s web interface

Follow the steps below:

1. In a web browser, open the following URL:

   ```
   http://__discovery_host__:4567/
   ```
2. Click **Main Menu ( icon:bars[] ) > Upload New Licence**
3. Paste the Caplin Discovery licence in the **Licence Key** field.
4. Click **Submit** to install the licence.
5. Click the dialog’s close icon ( icon:close[] )

The new licence is effective immediately. You do not need to restart the Discovery server or any other component in the deployment.

Discovery stores the licence in the database defined by the Discovery configuration option [spring.datasource.url](discovery-server-configuration.md#spring-datasource-url), and the licence persists between restarts of the Discovery server.

When deploying a licence to a Discovery cluster, because the cluster nodes share the same database, you only need to deploy the licence to one node. Deploying the licence to one node deploys the licence to all nodes.

## Installing a licence as a file

**❗ IMPORTANT**\
This installation method cannot be used to update an existing expired licence. To update an expired licence, follow instructions in [Installing a licence via Discovery’s web interface](#installing-a-licence-via-discoverys-web-interface).

To deploy a Discovery licence as a file, set the Discovery configuration option [licence-file-path](discovery-server-configuration.md#licence-file-path) to the location of the licence file.

When deploying a licence to a Discovery cluster, because the cluster nodes share the same database, you only need to deploy the licence to one node. Deploying the licence to one node deploys the licence to all nodes.

## Updating an existing licence

Follow instructions in [Installing a licence via Discovery’s web interface](#installing-a-licence-via-discoverys-web-interface).
