TWILS(1)
π twils(1) β like, the Twilio SMS lister, bestie
okay so this is twils from the General Commands Manual, section 1, and it's genuinely one of my fave little tools β it goes and fetches your Twilio Message resources and just, like, tells you their SIDs. no drama. β¨
πΈ SYNOPSIS πΈ
twils [-c config-file] [-u account-sid] [-p auth-token] [-P]
[-C curl-flag] [--from number] [--to number] [--minDate date]
[--maxDate date] [--limit num] [--pageSize size] [--raw]
twils [-c config-file] [-u account-sid] [-p auth-token] [-P]
[-C curl-flag] [--raw] SID
two whole forms, bestie. pick your fighter π«Ά
π¦ DESCRIPTION π¦
so twils hits up the Twilio REST API, grabs your Message resources, and prints their message SID's to standard output. that's the whole vibe. π
messages come back in reverse chronological order β newest first, obviously, main character energy π
and in that second form up there? you hand it the SID of one specific message and it goes and gets that one. iykyk π
β¨ OPTIONS β¨
-cβ tells it which config file to use. lowkey important: this file is literally just a shell script that, when sourced, has to define theACCOUNT_SIDandAUTH_TOKENshell variables with your corresponding Twilio credentials. if you don't pass-c, it assumes/etc/twilio.conf. no cap. π-Cβ passes curlflag straight through tocurl(1). yes bestie, you get to talk to curl directly, slay.--fromβ only show messages sent from the phone number you give (it must be in E.164 format) or a 5 or 6 digit short code. π±--toβ only show messages sent to the phone number you give (again, E.164 format) or a 5 or 6 digit short code. π²--minDateβ only messages sent on or after the date you give. the date has to be in the formYYYY-MM-DDorYYYY-MM-DDTHH:MM:SSZ. β°--maxDateβ only messages sent on or before the date you give, and again it must beYYYY-MM-DDorYYYY-MM-DDTHH:MM:SSZ. β³--limitβ return at most num results. boundaries, we love them π-pβ specify the authentication token, which overridesAUTH_TOKENfrom the config file, if there is one. π-Pβ reads the authentication token from the terminal. cute and secret, we respect that π--pageSizeβ set the query page size. default is 1000. yes, one thousand, that's not a typo π--rawβ outputs the raw XML from each page of results instead of just the message SID's. for the girlies who want everything π₯-uβ specify the Account SID, overridingACCOUNT_SIDfrom the config file, if there is one. πͺͺ
π EXIT STATUS π
twils exits zero when everything's chill, or 1 if an error happens. π
and any errors coming back from the Twilio REST API get reported to standard error β so they're not gonna sneak into your pretty stdout, thank god.
π SEE ALSO π
curl(1), smslen(1), twirm(1), twiping(1), twilog(1). go read the whole family, they're all iconic π
π AUTHOR π
Archie L. Cobbs <archie.cobbs@gmail.com> β thank you for your service, king π«Ά
okay that's the whole page, and fr fr the whole thing is Debian, dated Feb 27, 2020, TWILS(1) β so like, that's the version and the date, mwah, go list some messages bestie πβ¨π
π¦ 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