Skip to content

Licensing from the command line

Use und to license headless / CI machines. Run und help license for the built-in reference.

See current license info

und license                 # prints current license info + enabled options
und license -enabledoptionsoff   # omit the enabled-options list

und license is read-only and never checks out a seat — safe to run on a saturated floating code or an air-gapped machine. The output includes a License Status line (Authenticated or NOT authenticated), so a stored-but-invalid code — for example after a server authentication failure — is distinguished from an active license. Full details: und license reference.

Configure a license

These are options of the und license command — the complete list is in the und license reference. They are also accepted without the license command, as in earlier versions (und -setlicensecode <CODE>):

und license -setlicensecode <CODE>          # set the license code
und license -setlicenseserver <HOST>        # point at a license server (e.g. licensing.scitools.com)
und license -refreshlicense                 # refresh from the server
und license -deregisterlicensecode          # release / deregister this machine's code

-deregisterlicensecode exits 0 when the license server releases the installation. It exits 1, with the reason, when the server does not release it or when no license code is stored.

Check license state (good for CI gates)

und license -isundlicensed          # prints 1 (licensed) or 0 (not); exits with code 2 when unlicensed
und license -licensehowmanydays     # days remaining

-isundlicensed contacts the server (when floating)

With a floating license this is a live validation, not a local check — it briefly checks a seat out against the license server and releases it again. With a valid offline or node-locked code the check is purely local and never touches the network. In scripts, prefer testing the exit code (0 licensed, 2 not). For a local-only alternative in any mode, run und license — it reports the current license without ever checking out a seat.

Offline codes

und license -enterofflinemode
und license -createofflinerequestcode        # (-showofflinerequestcode / -newofflinerequestcode)
und license -setofflinereplycode <CODE> -expiration <yyyyMMdd>   # add -maintenance <yyyyMMdd> for perpetual licenses
und license -showofflinereturncode           # return: removes the offline license, prints the return code
und license -enteronlinemode

Node-lock codes

und license -createnodelockrequestcode       # (-shownodelockrequestcode)
und license -setnodelockreplycode <CODE> -expiration <yyyyMMdd>   # add -maintenance <yyyyMMdd> for perpetual licenses
und license -shownodelockreturncode          # return: removes the node-lock license, prints the return code

Both return flows, and what to do with the code, are in Return an offline or node-lock license.

Environment-variable overrides

Env vars take precedence over stored settings — handy for CI runners and shared machines:

Variable Effect
UNDERSTAND_LICENSE_CODE Use this license code
UNDERSTAND_LICENSE_SERVER Use this license server (highest precedence)
STI_LICENSE_SERVER Legacy server override (fallback if UNDERSTAND_LICENSE_SERVER unset)
UNDERSTAND_LICENSE_ALLOW_HTTP Allow plain HTTP to the license server (suppresses the HTTPS warning)