CLI Reference
Use this page as a reference for collector global flags. The collector has no sub-commands.
Binary Names by OS
Section titled “Binary Names by OS”- Linux:
ms-teams-agent.bin - Windows:
ms-teams-agent.exe
Command Shape
Section titled “Command Shape”ms-teams-agent [--config <path>] [options]| Flag | Purpose |
|---|---|
--version | Print version and exit |
--config <path> | Start continuous collection |
--ignore_state | Run one cycle and ignore state file |
--call_id <ID> | Process one call and exit |
--enable_boot_start | Install as a Linux systemd service |
--disable_boot_start | Remove the Linux systemd service |
--service_name_suffix=<suffix> | Add suffix for named service instances |
--force_service_creation | Replace an existing service with same name |
Core Execution Commands
Section titled “Core Execution Commands”Continuous collection
./ms-teams-agent.bin --config ./conf/config.yaml.\ms-teams-agent.exe --config .\conf\config.yamlPrint version
./ms-teams-agent.bin --version.\ms-teams-agent.exe --versionState and Targeted Debug
Section titled “State and Targeted Debug”Single cycle, ignore previous state
./ms-teams-agent.bin --config ./conf/config.yaml --ignore_state.\ms-teams-agent.exe --config .\conf\config.yaml --ignore_stateProcess one call ID
./ms-teams-agent.bin --config ./conf/config.yaml --call_id "<CALL_ID>".\ms-teams-agent.exe --config .\conf\config.yaml --call_id "<CALL_ID>"Service Flags (Linux)
Section titled “Service Flags (Linux)”Use absolute config paths for service actions.
# Install and start servicesudo ./ms-teams-agent.bin --config /absolute/path/to/config.yaml --enable_boot_start
# Remove servicesudo ./ms-teams-agent.bin --config /absolute/path/to/config.yaml --disable_boot_start
# Named instancesudo ./ms-teams-agent.bin --config /path/to/config-prod.yaml --enable_boot_start --service_name_suffix=-prod
# Replace an existing service with same namesudo ./ms-teams-agent.bin --config /absolute/path/to/config.yaml --enable_boot_start --force_service_creationFor complete operational procedures, see Service Management.