TWIMSG(1)
okay so bestie, this is twimsg(1) from the General Commands Manual β the little CLI that sends one outgoing SMS through the Twilio REST API. it's giving tiny-but-mighty, and we're gonna walk through every flag like the group chat depends on it π
π NAME π
twimsg β send outgoing SMS message via the Twilio REST API
β¨ SYNOPSIS β¨
twimsg [-c config-file] [-C curl-flag] [-e encoding] [-F from-number]
[-f file] [-m URL] [-t limit] [-u account-sid] [-p auth-token]
[-P] [-S] [-v] dest-number
π DESCRIPTION π
twimsg attempts to transmit a single outgoing SMS message using the Twilio REST API to the specified number. the message content comes from standard input, or from the file you name with -f. simple as that, no cap.
phone numbers have to be in E.164 format, i.e. with a leading plus sign followed by the country code, or else as a 5 or 6 digit short code. as a special case, valid North American (NANP) phone numbers may omit the leading +1 and contain extra characters. iconic little exception, honestly.
your input gets automatically truncated at the point where it would exceed limit encoded bytes (default 3200). so yes, it will happily cut you off before things get too long πΈ
πΈ OPTIONS πΈ
-cβ specify the configuration file. this file is simply a shell script that when sourced must define theACCOUNT_SIDandAUTH_TOKENshell variables containing the corresponding Twilio credentials. it must also define theFROM_NUMBERshell variable if the-Fflag is not used to specify the sending SMS phone number. if-cis not specified,/etc/twilio.confis assumed.-Cβ passcurlflagtocurl(1).-eβ specify input character encoding. the default isUTF-8. invalid character data is silently discarded.-Fβ specify the sending SMS phone number. this flag is required if the configuration file does not define a defaultFROM_NUMBER.-fβ read the message content from the specified file instead of standard input.-mβ send an MMS message using the image found at the specified URL. this flag may be repeated to send multiple images.-pβ specify authentication token, overridingAUTH_TOKENfrom the configuration file, if any.-Pβ read authentication token from the terminal.-tβ truncate the message when it would exceedlimitbytes. because Twilio supports automatic outgoing message concatenation, the default forlimitis3200. however, not all carriers support message concatenation. specify a value of-t 140to ensure the message fits within a single SMS message chunk.-Sβ if successful, print the SMS message ID, which has the formSM0123456789abcdef0123456789abcdef, to standard output.-uβ specify Account SID, overridingACCOUNT_SIDfrom the configuration file, if any.-vβ verbose mode. shows more information about what's happening.
π₯ EXIT STATUS π₯
twimsg exits zero normally, or 1 if an error occurs.
errors returned from the Twilio REST API are reported to standard error. so if Twilio is being dramatic, you'll see it there π«Ά
π BUGS π
the Twilio API is unable to communicate with other short codes, whether managed by Twilio or not. literally not a vibe, but there it is.
π¦ SEE ALSO π¦
curl(1), smslen(1), twils(1), twirm(1), twiping(1), twilog(1).
π AUTHOR π
Archie L. Cobbs, archie.cobbs@gmail.com
xoxo, Debian edition Β· Oct 2, 2019 πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: twilio-utils 1.2.2-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: twilio-utils 1.2.2-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: twilio-utils 1.2.2-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: twilio-utils 1.2.2-bp160.1.12 Β· Apache-2.0
- Copyright 2013 Archie L. Cobbs <archie.cobbs@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms