Skip to content

CLI Reference

This page summarizes the collector CLI flags.

Terminal window
ms-teams-agent [--config <path>] [options]

The collector uses a single binary command style (no sub-commands).

  • Linux: ms-teams-agent.bin
  • Windows: ms-teams-agent.exe
FlagPurpose
--versionPrint version and exit
--config <path>Start continuous collection
--ignore_stateRun one cycle and ignore state file
--call_id <ID>Process one call and exit
--enable_boot_startInstall as a Linux systemd service
--disable_boot_startRemove the Linux systemd service
--service_name_suffix=<suffix>Add suffix for named service instances
--force_service_creationReplace an existing service with same name
Terminal window
# Print version
./ms-teams-agent.bin --version
# Start continuous collection
./ms-teams-agent.bin --config ./conf/config.yaml
# First run without previous state
./ms-teams-agent.bin --config ./conf/config.yaml --ignore_state
# Debug a single call
./ms-teams-agent.bin --config ./conf/config.yaml --call_id "<CALL_ID>"
Terminal window
# Install and start service
sudo ./ms-teams-agent.bin --config /absolute/path/to/config.yaml --enable_boot_start
# Remove service
sudo ./ms-teams-agent.bin --config /absolute/path/to/config.yaml --disable_boot_start
# Named instance
sudo ./ms-teams-agent.bin --config /path/to/config-prod.yaml --enable_boot_start --service_name_suffix=-prod