> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# License Activation

<Warning>
  * License is bound to the `namespace` of the kubernetes cluster.
  * Don't change the `namespace` after activation.
</Warning>

## Active Type

* Online (Default)
* Offline

## Online Activation

* Click on the License tab in the left menu of the Dify Enterprise dashboard, then click the activation button in the upper right corner.
* Select `Online` as the activation type, enter the `License ID`, and complete the activation process.
* After activating the license, you need to restart the `enterprise` service for the new license to take effect.

```bash theme={null}
kubectl rollout restart deployment dify-enterprise
```

![](https://assets-docs.dify.ai/2025/04/767730970c14696c6eea2eb3b2289898.png)

## Offline Activation

* Click on the License tab in the left menu of the Dify Enterprise dashboard, then click the activation button in the upper right corner. Select `Offline` as the activation type.
* Copy the `Cluster ID` and send it to your Dify business team to obtain the `Offline Code`.

![](https://assets-docs.dify.ai/2024/11/3b5198ceff1db9bab8e614b7ef39e699.png)

* Before activating the license, you need to change the `licenseMode` value in the `values.yaml` file to `offline`.

  1. Display Helm Chart Values
     ```
     helm show values dify/dify
     ```

  2. Set License Mode to `offline`
     ```yaml theme={null}
     enterprise:
         licenseMode: "offline"
     ```

  3. Apply the change (redeploy for it to take effect)
     ```bash theme={null}
     helm upgrade -i dify -f values.yaml dify/dify
     ```
* After making the changes, return to the License activation tab, enter the `Offline Code`, and complete the activation process.
* After activating the license, you need to restart the `enterprise` service for the new license to take effect.

```bash theme={null}
kubectl rollout restart deployment dify-enterprise
```

![](https://assets-docs.dify.ai/2024/11/beac33066670e291dbafa1c71c2bf58c.png)

## Refresh License

* The flow for refreshing the license is the same as the activation process.
* After refreshing the license, you need to restart the `enterprise` service for the new license to take effect.

```bash theme={null}
kubectl rollout restart deployment dify-enterprise
```
