Introduction
📢 TNZ SMSCLI is a lightweight, Rust-based command-line tool that allows users to send SMS messages via the TNZ API. Whether you need to send one-time passwords (OTP), alerts, or general notifications, TNZ SMSCLI makes it fast and easy from your terminal.
✅ Send SMS messages directly from the command line
✅ Supports customizable messages and default OTP messages
✅ Works on Windows with cmd
✅ Secure API integration with the TNZ REST API
✅ Simple configuration via INI
Syntax
TNZSMSCLI.exe "[Mobile]" "[Message]"
Examples
Send a custom Message:
TNZSMSCLI.exe "+642100001" "Hi Aaron, your appointment is scheduled for 3pm on Thursday. Reply Y to confirm."
Send the Default OTP Message:
TNZSMSCLI.exe "+642100001"
Send the Default OTP Message and prompt the user for the mobile number:
TNZSMSCLI.exe
Send a single SMS from a PowerShell script:
Start-Process -FilePath ".\TNZSMSCLI.exe" -ArgumentList '"+642100001", "Your appointment is scheduled for 3pm on Thursday"'
Send a batch of SMS messages from a PowerShell script:
$numbers = Get-Content ".\List of mobile numbers.txt"
foreach ($number in $numbers) {
Start-Process -FilePath ".\TNZSMSCLI.exe" -ArgumentList "$number", '"System outage: The server at domain.com is down."'
}
Send a SMS messages using Windows Task Scheduler:
- Open Task Scheduler from the Start menu.
- In the Action panel click Create Task.
- Under the General tab, give your task a name (e.g. "Send Reminder SMS").
- Under the Triggers tab, set a trigger (e.g. Daily at 9:00 AM).
- Under the Actions tab, select New, and in the Program/Script box, enter the path to TNZSMSCLI.exe
- In the Add arguments (optional) box, enter the following arguments, then save the task:
"+642100001" "Reminder: Run daily tasks."
Documentation and Download
➡️ TNZSMSCLI Command Line CLI Tool