SplatDev.LicenseTree.Cli 1.0.0

dotnet tool install --global SplatDev.LicenseTree.Cli --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local SplatDev.LicenseTree.Cli --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SplatDev.LicenseTree.Cli&version=1.0.0
                    
nuke :add-package SplatDev.LicenseTree.Cli --version 1.0.0
                    

SplatDev LicenseTree CLI (ltree)

A cross-platform .NET global tool for managing licenses on the SplatDev LicenseTree platform.

Installation

dotnet tool install -g SplatDev.LicenseTree.Cli

Quick Start

# Point the tool at your LicenseTree API instance
export LTREE_BASE_URL=https://api.my-licensetree.example.com   # Linux/macOS
set LTREE_BASE_URL=https://api.my-licensetree.example.com      # Windows

# Validate a license key (no authentication required)
ltree validate --key XXXX-XXXX-XXXX-XXXX

# Log in and store a token for subsequent commands
ltree login --email admin@example.com --password "secret"

# List licenses
ltree license list

# Generate a new license
ltree license generate --customer-id 1 --product-id 2 --type Standard --qty 1

# Activate a license on this machine
ltree activate --key XXXX-XXXX-XXXX-XXXX --device MyPC

# Request an offline token
ltree offline request-token --key XXXX-XXXX-XXXX-XXXX --machine MyPC

# Validate an offline token
ltree offline validate --token <jwt>

Environment Variables

Variable Description
LTREE_BASE_URL Base URL of your LicenseTree API (required)
LTREE_API_KEY API key sent as X-Api-Key header (optional)
LTREE_TOKEN Bearer token (set automatically by ltree login)

A saved token from ltree login is written to ~/.ltree/token and loaded automatically.

Commands

Command Description
validate Validate a license key (anonymous)
activate Activate a license on a device
deactivate Deactivate a license on a device
license list List all licenses (requires auth)
license get Get license details by ID
license generate Generate one or more new licenses
license revoke Revoke a license
login Authenticate and store a bearer token
offline request-token Request a signed offline JWT
offline validate Validate a locally held offline JWT

License

MIT © SplatDev

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 85 4/27/2026