> ## 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.

# Dify Helm Chart

## Requirements

* Release Log: [https://langgenius.github.io/dify-helm](https://langgenius.github.io/dify-helm)
* Kubernetes 1.24+
* Helm 3.14+
* `Warning`: If you are using a restricted environment (like OpenShift), make sure pods are allowed to run as `root`.

## Quick Start

### Get Helm Repository Info

```bash theme={null}
helm repo add dify https://langgenius.github.io/dify-helm
helm repo update
```

See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation.

### Check Available Versions

* If you want to check the versions between the community and the enterprise, you can use the following command.
* The `APP VERSION` is the version of the Dify community, and the `CHART VERSION` is the version of the Dify enterprise.

```bash theme={null}
helm repo update
helm search repo dify/dify --versions
```

See [helm search repo](https://helm.sh/docs/helm/helm_search_repo/) for command documentation.

### Installation or Upgrade

For the first time installation or upgrade Dify, you can use the following command:

<Warning>
  Before upgrade, please make sure to backup your database. If failed to upgrade, you can rollback version and restore the database quickly.
</Warning>

```bash theme={null}
helm repo update
helm search repo dify/dify
helm upgrade -i dify -f values.yaml dify/dify
# If you want to upgrade to target version, you can use the following command:
# helm upgrade -i dify -f values.yaml dify/dify --version x.x.x
```

See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation.

## Advanced Usage

### Uninstallation

To uninstall Dify, you can use the following command:

<Warning>
  * If you want to re-install Dify, please make sure to clean up the database of `dify_plugin_daemon` first.
  * For more details, please refer to the [Postgresql Database](/en/3.10.x/deploy/advanced-configuration/database-configuration).
</Warning>

```bash theme={null}
helm uninstall dify
```

See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation.

### Display Helm Chart Values

For more information about the Helm chart values, you can use the following command:

```bash theme={null}
helm show values dify/dify
```

See [helm show values](https://helm.sh/docs/helm/helm_show_values/) for command documentation.

### Use Helm Template to Generate Kubernetes YAML

You can use the following command to generate the Kubernetes YAML files:

```bash theme={null}
helm template dify -f values.yaml dify/dify > dify-k8s-template.yaml
```

See [helm template](https://helm.sh/docs/helm/helm_template/) for command documentation.

### Download the Helm Chart locally

You can use the following command to download the Helm chart:

```bash theme={null}
helm pull dify/dify
# helm pull dify/dify --version x.x.x
```
