---
layout: docs
page_title: 'Commands: license'
description: |
  The license command is used to interact with an enterprise license.
---

# Command: license

~> License commands are only available with Nomad Enterprise.

The `license` commands can be used to retrieve license information from a server,
or inspect and validate a license.

Click [here](https://www.hashicorp.com/products/nomad/trial) to get a trial license for Nomad Enterprise.

## Usage

Usage: `nomad license <subcommand> [options]`

Run `nomad license <subcommand> -h` for help on that subcommand. The following
subcommands are available:

- [`license get`][get] - Get the current license from a server
- [`license inspect`][inspect] - Inspect and validate a license

[get]: /nomad/docs/commands/license/get 'Get the current license from a server'
[inspect]: /nomad/docs/commands/license/inspect 'Inspect and validate a license'
