Skip to content

Component management

Apex includes component control scripts for deployed TDengine services. Starting, stopping, and checking status do not remove data. uninstall and purge have different effects; confirm the target and backups before either operation.

Name Managed services
tsdb TDengine TSDB and related services
idmp IDMP, including H2, backend, chat, CLS, and UI
taosanode TDgpt TaosAnode service, without model services
tdgpt-models Installed TDgpt model services
tdgpt Shortcut: starts/stops both TaosAnode and models; treated as one product for uninstall

Select all components with --all (Windows: -All) or specify comma-separated names. start --all starts every installed model and can use substantial memory; select taosanode to start only Anode.

Linux:

Terminal window
apex-component-status.sh
apex-component-start.sh tsdb,idmp
apex-component-stop.sh tdgpt
apex-component-uninstall.sh tsdb

Windows PowerShell:

Terminal window
apex-component-status.ps1
apex-component-start.ps1 tsdb,idmp
apex-component-stop.ps1 tdgpt
apex-component-uninstall.ps1 tsdb

Without a component selector, start, stop, status, and uninstall select all components. For a preview or full options, use the controller script:

Terminal window
bash ~/.apex/scripts/apex-componentctl.sh --help
bash ~/.apex/scripts/apex-componentctl.sh stop --components tsdb,idmp --dry-run
Terminal window
powershell -NoProfile -ExecutionPolicy Bypass -File C:\ProgramData\TDengine\Apex\scripts\apex-componentctl.ps1 -Help

Replace the default paths when using a custom spec.apexDir or Apex Home. Reopen the terminal after installation if PATH changes are not visible; on Linux, source ~/.profile may refresh the current shell.

Action Effect
uninstall Stops components and runs product uninstallers; Apex does not do extra data cleanup, but product uninstallers may have their own behavior
purge Uninstalls and removes component data, configuration, logs, and leftover files
apex clean Deletes the target Apex working directory; it does not uninstall products or purge product data

Uninstall and purge display a warning and require the full word confirm. Non-interactive jobs must pass Linux --yes or Windows -Yes. Preview commands with --dry-run / -DryRun first. purge only supports all components:

Terminal window
apex-component-purge.sh --dry-run
apex-component-purge.sh --yes
Terminal window
apex-component-purge.ps1 -DryRun
apex-component-purge.ps1 -Yes

purge is destructive and may remove unrecoverable product data. Stop writes, verify the host and confirm backups before proceeding. If uncertain, run only status or a dry run. purge does not remove the Apex CLI, Apex Home, or cache.