---
title: License
description: View and manage product licenses.
canonical: 'https://lightning.ai/docs/cli/stable/command-details/license'
---
# License {#license}

View and manage product licenses.

**Usage:**

```console
lightning license [OPTIONS] COMMAND [ARGS]...
```

## Commands {#license-commands}

| Command | Description |
| --- | --- |
| [`download`](#license-download) | Download license for specific products/packages. |
| [`download-all`](#license-download-all) | Download licenses for all user’s products/packages. |
| [`get`](#license-get) | Get a license key for a given product. |
| [`list`](#license-list) | List configured licenses. |
| [`set`](#license-set) | Set a license key for a given product. |

## lightning license download {#license-download}

Download license for specific products/packages.

**Usage:**

```console
lightning license download [OPTIONS] NAME
```

### Arguments {#license-download-arguments}

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `NAME` | `text` | yes | License name to download. |

## lightning license download-all {#license-download-all}

Download licenses for all user’s products/packages.

**Usage:**

```console
lightning license download-all [OPTIONS]
```

## lightning license get {#license-get}

Get a license key for a given product.

**Usage:**

```console
lightning license get [OPTIONS] PRODUCT_NAME
```

### Arguments {#license-get-arguments}

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `PRODUCT_NAME` | `text` | yes | Product name whose license should be shown. |

### Options {#license-get-options}

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--config-file` | `TEXT` | no | `Sentinel.UNSET` | Path to the config file |
| `--json` | — | no | — | Output as JSON. |

## lightning license list {#license-list}

List configured licenses.

**Usage:**

```console
lightning license list [OPTIONS]
```

### Options {#license-list-options}

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--include-key` | — | no | `Sentinel.UNSET` | Print the key as well |
| `--config-file` | `TEXT` | no | `Sentinel.UNSET` | Path to the config file |
| `--json` | — | no | — | Output as JSON. |

### Examples {#license-list-examples}

```console
  lightning license list --include-key
```

## lightning license set {#license-set}

Set a license key for a given product.

**Usage:**

```console
lightning license set [OPTIONS] PRODUCT_NAME LICENSE_KEY
```

### Arguments {#license-set-arguments}

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `PRODUCT_NAME` | `text` | yes | Product name for the license. |
| `LICENSE_KEY` | `text` | yes | License key value to store. |

### Options {#license-set-options}

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--config-file` | `TEXT` | no | `Sentinel.UNSET` | Path to the config file |

---

**Navigation**

- Parent: [Command details](/docs/cli/2026.11.04/command-details.md)
