Skip to content

Offline commercial installation and licensing

This procedure downloads and verifies Host artifacts on a connected machine, builds a bundle for the target platform, installs commercial TDengine All-in-One on an isolated host, and imports a license through the local Customer License Service (CLS). It does not apply to Docker, macOS, or the Windows TDengineSetup GUI installer.

Offline Host installation supports Linux x64/arm64 and Windows x64. The connected builder and target must use the same operating system and architecture. macOS and Docker are not supported by this Host workflow. The default All-in-One profile contains TSDB, IDMP, and TDgpt.

Linux requires kernel 3.10.0-1160 or later and glibc 2.28 or later. Recommended target resources are 12 CPU cores, 16 GB RAM, and 500 GB free disk. Reserve at least 20 GB on the connected builder and transfer media. Linux x64 All-in-One also requires AVX2. Check product requirements and ports for the target release before starting.

Download install.sh (or install.ps1 for Windows) from the Apex release directory. Use latest or a pinned version. Run Linux as root and Windows PowerShell as Administrator:

Terminal window
curl -fL -o install.sh https://downloads.tdengine.com/apex/latest/install.sh
sudo bash install.sh --build-offline-bundle -m apex -o /var/tmp/apex-offline-linux-x64.tar.gz
Terminal window
iwr https://downloads.tdengine.com/apex/latest/install.ps1 -UseBasicParsing -OutFile install.ps1
.\install.ps1 -BuildOfflineBundle -Mode apex -Output .\apex-offline-windows-x64.zip

Pin a release with Linux -v or Windows -Version. Bundle creation downloads the artifacts required by the component manifests, verifies SHA256, and packs only artifacts referenced by the selected profile.

Before leaving the connected environment, inspect bundle.meta.yaml and cache/artifact-index.yaml in the archive. Confirm install_mode, operating system, architecture, and profile match the target. The artifact index must list every artifact filename and SHA256. On Linux:

Terminal window
tar -tzf /var/tmp/apex-offline-linux-x64.tar.gz | grep -E 'bundle.meta.yaml|artifact-index.yaml'

Transfer only the generated bundle and, later, the license code or offline-license.key. Do not use the connected machine’s entire cache or home directory as the offline bundle.

Keep the target unable to reach the public internet. On Linux, extract the archive and run its installer:

Terminal window
mkdir -p /opt/apex-staging
tar -xzf apex-offline-linux-x64.tar.gz -C /opt/apex-staging
cd /opt/apex-staging/apex-offline-linux-x64
sudo bash install.sh --offline -m apex

On Windows, use an elevated PowerShell:

Terminal window
Expand-Archive .\apex-offline-windows-x64.zip C:\Temp\apex-bundle -Force
Set-Location C:\Temp\apex-bundle\apex-offline-windows-x64
.\install.ps1 -Offline -Mode apex

The installer checks the bundle platform and every artifact hash. Missing or mismatched files stop installation; rebuild the bundle on the connected machine. Do not rename another file to bypass validation. Make sure required All-in-One ports are not occupied. Identify and release conflicts before retrying.

In this All-in-One bundle, CLS is deployed with IDMP; a separate CLS package is not required. Common local endpoints:

Service Address or port
TSDB SQL / REST TCP 6030 / http://<host>:6041
IDMP http://<host>:6042
CLS http://<host>:6059
TDgpt TCP 6035
  1. From a browser that can reach the host, open http://<host>:6042/, register and sign in, then open /license-onboarding.
  2. Choose Commercial, obtain the activation code generated by the page, and exchange it with your licensing provider for a license code or offline-license.key.
  3. On the Commercial page, set the CLS address to http://<host>:6059 and enter the code or upload the license file.
  4. Check the parsed license ID and slot, confirm activation, and verify the license on the license management page.

Keep outbound internet blocked. Confirm TSDB, IDMP, TDgpt, and CLS are healthy and ports 6030, 6041, 6042, 6035, and 6059 are reachable. CLS should show the imported license and TSDB/IDMP slots; IDMP should show the commercial edition. Perform a basic TSDB read/write and access the IDMP UI. On Linux:

Terminal window
sudo bash /root/.apex/scripts/apex-componentctl.sh status --all

For renewal, exchange a new activation code for a license and import it on the Commercial page in IDMP. Complete renewal before the current license expires; do not rely on any grace period. To upgrade software, build a new bundle on a connected machine with the same OS, architecture, and profile, then repeat the --offline / -Offline install on the isolated host. Back up product data and licensing information before upgrading.