# Set License

Create KubeMQ Cluster with Enterprise License

{% tabs %}
{% tab title="Kubemqctl" %}

## Flags

| Flag            | Type/Options | Default | Description          |
| --------------- | ------------ | ------- | -------------------- |
| --license-data  | string       | ""      | Set license data     |
| --license-file  | string       | ""      | set license filename |
| --license-token | string       | ""      | Set license token"   |

## Examples

With license token:

```bash
kubemqctl create cluster -t {your-license-token-here}
```

With license key file:

```bash
kubemqctl create cluster --license-file ./license.key
```

Where license.key contains the license data
{% endtab %}

{% tab title="Helm" %}

## Values

| Value   | Type/Options | Default | Description      |
| ------- | ------------ | ------- | ---------------- |
| license | string       | ""      | Set license data |

## Example

With license key file:

```bash
helm install kubemq-cluster --set-file license=./license.key
```

Where license.key contains the license data
{% endtab %}

{% tab title="yaml" %}

## Fields

| Field   | Type/Options | Default | Description      |
| ------- | ------------ | ------- | ---------------- |
| license | string       | ""      | Set license data |

## Example

With license key data:

```yaml
apiVersion: core.k8s.kubemq.io/v1alpha1
kind: KubemqCluster
metadata:
  name: kubemq-cluster
  namesapce: kubemq
  labels:
    app: kubemq-cluster
spec:
  replicas: 3
  license: |-
    { License Data Here}
```

{% endtab %}
{% endtabs %}


---

# 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.kubemq.io/configuration/cluster/set-license.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.
