62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: 'Commands: license put'
|
|
description: |
|
|
The license put command is used to set the Nomad Enterprise license.
|
|
---
|
|
|
|
# Command: license put
|
|
|
|
The `license put` command is used to set the Nomad Enterprise license.
|
|
|
|
~> License commands are new in Nomad 0.12.0 and are only available with Nomad
|
|
Enterprise.
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad license put
|
|
```
|
|
|
|
When ACLs are enabled, this command requires a token with the 'operator:write'
|
|
capability.
|
|
|
|
## General Options
|
|
|
|
@include 'general_options_no_namespace.mdx'
|
|
|
|
## Put Options
|
|
|
|
- `-force`: Force the license to be applied. By default, Nomad will only accept
|
|
a new license if it is newer than the one currently applied (specified by the
|
|
license issue date). Use `-force` to override and apply an older, unexpired
|
|
license.
|
|
|
|
```plaintext
|
|
Install a new license from a file:
|
|
|
|
$ nomad license put <path>
|
|
|
|
Install a new license from stdin:
|
|
|
|
$ nomad license put -
|
|
```
|
|
|
|
## Examples
|
|
|
|
Set a license using a path
|
|
|
|
```shell-session
|
|
$ nomad license put -force /path/to/my/license.hclic
|
|
```
|
|
|
|
Set a license using a path
|
|
|
|
```shell-session
|
|
$ nomad license put -
|
|
|
|
02MV4UU43BK5HGYYTOJZWFQMTMNNEWU33JLJKES6S2NJMXUWLKIV2E2RCCNRMXSMBQLJKFSM2MK5KTKTLKLF2FS6SJPFNFIYZVJV5GI2S2K5LGUSLJO5UVSM2WPJSEOOLULJMEUZTBK5IWST3JJF5E4VCBPJHFIWTMJZJTANCZK5LGUTCXJJVVU2SRORHUIVLYJVBTC2KNNJATCTKEMM2VSMSONBNEISLJJRBUU4DCNZHDAWKXPBZVSWCSOBRDENLGMFLVC2KPNFEXCSLJO5UWCWCOPJSFOVTGMRDWY5C2KNETMSLKJF3U22SBORGUIVLUJVCGQVKNKRITMTLKJU3E26TDOVHHURJRJVVEC52NPJATGV3JJFZUS3SOGBMVQSRQLAZVE4DCK5KWST3JJF4U2RCJO5GFIQJRJRKECNCWIRAXOT3KIF3U62SBO5LWSSLTJFWVMNDDI5WHSWKYKJYGEMRVMZSEO3DULJJUSNSJNJEXOTLKIF2E2RCVORGUI3CVJVCECNSNIRATMTKEIJQUS2LXNFSEOVTZMJLWY5KZLBJHAYRSGVTGIR3MORNFGSJWJFVES52NNJAXITKEKV2E2VCCKVGUIQJWJVCECNSNIRBGCSLJO5UWGSCKOZNEQVTKMRBUSNSJNU2XMYSXIZVUS2LXNFNG26DILIZU22KPNZZWSYSXHFVWIV3YNRRXSSJWK54UU3TCGNNGYY3NGVUGE3KONRGFQQ
|
|
|
|
<ctrl-d>
|
|
```
|