Skip to content

CLI Reference

Use this page as a reference for collector global flags. The collector has no sub-commands.

  • Linux: ms-teams-agent.bin
  • Windows: ms-teams-agent.exe
Terminal window
ms-teams-agent [--config <path>] [options]
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

Continuous collection

Terminal window
./ms-teams-agent.bin --config ./conf/config.yaml

Print version

Terminal window
./ms-teams-agent.bin --version

Single cycle, ignore previous state

Terminal window
./ms-teams-agent.bin --config ./conf/config.yaml --ignore_state

Process one call ID

Terminal window
./ms-teams-agent.bin --config ./conf/config.yaml --call_id "<CALL_ID>"

Use absolute config paths for service actions.

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
# Replace an existing service with same name
sudo ./ms-teams-agent.bin --config /absolute/path/to/config.yaml --enable_boot_start --force_service_creation

For complete operational procedures, see Service Management.