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.
Component names
Section titled “Component names”| 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.
Common operations
Section titled “Common operations”Linux:
apex-component-status.shapex-component-start.sh tsdb,idmpapex-component-stop.sh tdgptapex-component-uninstall.sh tsdbWindows PowerShell:
apex-component-status.ps1apex-component-start.ps1 tsdb,idmpapex-component-stop.ps1 tdgptapex-component-uninstall.ps1 tsdbWithout a component selector, start, stop, status, and uninstall select all components. For a preview or full options, use the controller script:
bash ~/.apex/scripts/apex-componentctl.sh --helpbash ~/.apex/scripts/apex-componentctl.sh stop --components tsdb,idmp --dry-runpowershell -NoProfile -ExecutionPolicy Bypass -File C:\ProgramData\TDengine\Apex\scripts\apex-componentctl.ps1 -HelpReplace 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.
Uninstall and purge
Section titled “Uninstall and purge”| 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:
apex-component-purge.sh --dry-runapex-component-purge.sh --yesapex-component-purge.ps1 -DryRunapex-component-purge.ps1 -Yespurge 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.