# LICENSE.INFO

> Show the state of this server's HotKV license, its expiry and the features it enables.

URL: https://docs.hotkv.com/commands/license-info/

```
LICENSE.INFO
```

- Group: License
- Complexity: O(1)
- HotKV Cloud: all plans
- On-Premise: no license needed

`LICENSE.INFO` shows whether this server has a license in force, when it
expires, and which enterprise and AI features it turns on. It needs no
license itself. To install a license, see
[LICENSE.SET](https://docs.hotkv.com/commands/license-set/index.md) and
[LICENSE.RELOAD](https://docs.hotkv.com/commands/license-reload/index.md), or the
[On-Premise quick start](https://docs.hotkv.com/quickstart-onpremise/index.md).

## Fields to check

| Field | Meaning |
| --- | --- |
| `state` | Whether the license is in force |
| `reason` | Details when the license is not in force, in plain words (empty otherwise) |
| `licensee` | Who the license is for |
| `features` | The features the license covers, comma separated, as the `NOLICENSE` errors name them (for example `replication, encryption-at-rest, audit-log`), or `none` |
| `expires_at` | When the license expires, as a UTC timestamp |
| `days_until_expiry` | Days left until `expires_at` |

## Return value

A map in RESP3, or a flat array of field and value pairs in RESP2. Dates
are bulk strings (empty when not known); `days_until_expiry` is an integer.

## Examples

Output shortened:

```
127.0.0.1:6379> LICENSE.INFO
 1) "state"
 2) "valid"
 3) "reason"
 4) ""
 5) "licensee"
 6) "Acme Corp"
 7) "features"
 8) "replication, encryption-at-rest, audit-log"
...
```

## Compatibility

HotKV-only command.

## See also

[LICENSE.CHECK](https://docs.hotkv.com/commands/license-check/index.md), [LICENSE.SET](https://docs.hotkv.com/commands/license-set/index.md),
[LICENSE.RELOAD](https://docs.hotkv.com/commands/license-reload/index.md),
[On-Premise quick start](https://docs.hotkv.com/quickstart-onpremise/index.md)