twilio-cli-reference
БесплатноБез исполняемых скриптовНе проверенTwilio CLI reference for managing Twilio resources from the terminal. Covers installation, credential profiles, phone number provisioning, sending SMS and…
от openai★ 8 494 звезды на GitHubОб этом скилле
Overview
The Twilio CLI lets you manage Twilio resources, send messages, configure webhooks, and deploy serverless functions directly from the terminal. AI coding agents can use CLI commands to provision resources and test integrations without writing application code.
Install:
| Platform | Command |
|---|---|
| macOS | brew tap twilio/brew && brew install twilio |
| Windows | scoop bucket add twilio-scoop https://github.com/twilio/scoop-twilio-cli && scoop install twilio-cli |
| Linux (apt) | See twilio-cli/getting-started/install for repo setup, then apt install twilio |
| npm | npm install -g twilio-cli |
Update: brew upgrade twilio / scoop update twilio-cli / npm install -g twilio-cli@latest
Authentication & Profiles
# First-time login — creates a local API key stored as a profile
twilio login
# Named profiles for multiple accounts
twilio profiles:create --account-sid ACxxx --auth-token xxx --profile staging
# Avoid --auth-token as a plain argument — it will be stored in shell history. Use TWILIO_AUTH_TOKEN env var instead.
twilio profiles:list
twilio profiles:use staging
# Run a single command against a different profile
twilio api:core:messages:list -p production
# Subaccount access
twilio api:core:messages:list --account-sid ACxxx_SUBACCOUNT
Credential priority: explicit -p/--account-sid flag > env vars (TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN) > active profile.
Phone Numbers
# Search available numbers (US local, area code 415)
twilio api:core:available-phone-numbers:local:list --country-code US --area-code 415
# Purchase a number
twilio api:core:incoming-phone-numbers:create --phone-number "+14155551234"
# List owned numbers
twilio phone-numbers:list
# Set webhooks on a number
twilio phone-numbers:update +14155551234 \
--sms-url "https://example.com/sms" \
--voice-url "https://example.com/voice"
Send SMS
twilio api:core:messages:create \
--from "+14155551234" \
--to "+14155556789" \
--body "Your order has shipped."
# List recent messages
twilio api:core:messages:list --to "+14155556789" --limit 10
Send Email (SendGrid)
Requires SENDGRID_API_KEY environment variable.
# Configure defaults
twilio email:set --from "[email protected]" --subject "Default Subject"
# Send email
twilio email:send \
--to "[email protected]" \
--subject "Invoice attached" \
--text "Please find your invoice." \
--attachment ./invoice.pdf
# Pipe output as email body
ps aux | twilio email:send --to "[email protected]" --subject "Process list"
Webhook Development
# Set webhook URLs on a number
twilio phone-numbers:update +14155551234 --sms-url "https://your-tunnel-url.example.com/sms"
# Emulate webhook events locally (requires plugin)
twilio plugins:install @twilio-labs/plugin-webhook
twilio webhook:invoke http://localhost:3000/sms --type sms
Local development: The CLI rejects localhost URLs directly. Tunneling services such as ngrok are not bundled with twilio-cli. install one separately, then set the public tunnel URL as your webhook.
** ngrok is NOT included in the CLI — install separately: npm install -g ngrok or via https://ngrok.com
- Start tunnel: ngrok http 3000, then use the provided URL for webhook
configuration
Debugging & Monitoring
# Debug logging on any command (logs to stderr)
twilio api:core:messages:create --from +14155551234 --to +14155556789 --body "test" -l debug
# Real-time monitoring (requires plugin)
twilio plugins:install @twilio-labs/plugin-watch
twilio watch # stream debugger alerts, calls, messages in real time
# Output formatting
twilio api:core:messages:list -o json # JSON output
twilio api:core:messages:list -o tsv # tab-separated
twilio api:core:messages:list --properties sid,status,direction # select columns
twilio api:core:messages:list --limit 200 # override default 50-record cap
Serverless Deployment
twilio plugins:install @twilio-labs/plugin-serverless
# Create a new Functions project
twilio serverless:init my-project --template blank
cd my-project
# Local development
twilio serverless:start # serves functions at localhost:3000
# Deploy to Twilio
twilio serverless:deploy
Plugins
twilio plugins:install <package>
twilio plugins:list
twilio plugins:remove <package>
| Plugin | What it does |
|---|---|
@twilio-labs/plugin-serverless |
Develop and deploy Twilio Functions and Assets |
@twilio-labs/plugin-dev-phone |
Test SMS/Voice without a real phone |
@twilio-labs/plugin-watch |
Real-time monitoring of debugger alerts, calls, messages |
@twilio-labs/plugin-token |
Generate client-side SDK tokens (Voice, Chat, Video) |
@twilio-labs/plugin-assets |
Upload static resou |
Установить twilio-cli-reference в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл twilio-cli-reference?
Twilio CLI reference for managing Twilio resources from the terminal. Covers installation, credential profiles, phone number provisioning, sending SMS and email, webhook configuration, local development with a tunneling service, debugging with watch and logs, serverless deployment, and plugin ecosystem. Use when the developer asks to "just do it", "set this up", "run a command", mentions "CLI", "command line", or "terminal", or when an AI agent can execute a task directly instead of writing application code.
Как установить скилл twilio-cli-reference?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл twilio-cli-reference запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic