twilio-cli-reference
The Twilio CLI reference enables agents to manage Twilio resources directly from the terminal, including phone number provisioning, sending SMS and email…
Identity proven by GitHub's verified organisation badge (twilio)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- MIT (permissive)
- Pin
- 8aba46fpinned Oct 9, 2026
- Context cost
- about 1,800 tokenswhen the skill loads
- GitHub stars
- 37on twilio/ai
- Scripts
- None found
What it does
“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.”
Generated summary from the skill's own text
The Twilio CLI reference enables agents to manage Twilio resources directly from the terminal, including phone number provisioning, sending SMS and email, deploying serverless functions, and configuring webhooks. Agents can use CLI commands to set up integrations and test configurations without writing application code.
When to use it
- Developer asks to run commands or use the terminal
- Need to provision phone numbers or send SMS quickly
- Setting up webhooks or deploying serverless functions
- Testing Twilio integration without writing code
When not to
- Building application code that needs SDK integration
- Using Twilio Email (comms API) instead of SendGrid
- Requiring autocomplete on Windows systems
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add twilio/ai --skill twilio-cli-referenceInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install twilio/ai twilio-cli-reference@8aba46fb65dc8d9a20f4b301a68352064b4159a5Installs the commit we checked (8aba46f).
Copy by hand
Download the folder at 8aba46f and put it in .claude/skills/twilio-cli-reference for Claude Code and in .agents/skills/twilio-cli-reference for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install twilio-developer-kit@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "twilio-cli-reference" by Twilio. Source, pinned to commit 8aba46fb65dc8d9a20f4b301a68352064b4159a5: https://github.com/twilio/ai/tree/8aba46fb65dc8d9a20f4b301a68352064b4159a5/skills/twilio/twilio-cli-reference 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/twilio-cli-reference/ for Claude Code and .agents/skills/twilio-cli-reference/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/twilio/twilio-cli-reference
SKILL.md at the pin
--- name: twilio-cli-reference description: > 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. --- ## 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 ```bash # 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 ```bash # 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 ```bash 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. ```bash # Configure defaults twilio email:set --from "noreply@example.com" --subject "Default Subject" # Send email twilio email:send \ --to "user@example.com" \ --subject "Invoice attached" \ --text "Please find your invoice." \ --attachment ./invoice.pdf # Pipe output as email body ps aux | twilio email:send --to "ops@example.com" --subject "Process list" ``` --- ## Webhook Development ```bash # 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 ```bash # 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 ```bash 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 ```bash 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 resources | | `@twilio-labs/plugin-webhook` | Emulate webhook events for local testing | | `@twilio-labs/plugin-flex` | Create, build, deploy Flex plugins | --- ## Regional & Edge Routing ```bash # Login to a specific region twilio login --region au1 --edge sydney # Set edge globally twilio config:set --edge=sydney # Or via env vars export TWILIO_REGION=au1 export TWILIO_EDGE=sydney ``` Supported: `au1`/`sydney`, `ie1`/`dublin`, `jp1`/`tokyo`. Each region uses a different Auth Token from your US1 credentials. Find yours in the Twilio Console under API keys & tokens, selecting your target region. --- ## Configuration ```bash twilio config:list # show all settings twilio config:set --edge=sydney # set default edge twilio config:set --require-profile-input # prompt before using active profile ``` Config stored at `~/.twilio-cli/config.json`. **Syntax notes:** - Commands use spaces by default, using colon also works: `twilio api core messages create` = `twilio api:core:messages:create` - `twilio [COMMAND] --help` for any command's options - Multi-line: use `\` for line continuation --- ## CANNOT - **Default list limit is 50 records** — always pass `--limit` for larger result sets. - **API timeout is 30 seconds** — long-running operations may fail silently. - **Cannot use localhost URLs for webhooks** — use a tunneling service, such as ngrok, installed separately. - **No autocomplete on Windows** — only bash/zsh supported. - ** ngrok is not bundled with twilio-cli**, install separately - **Cannot send Twilio Email (comms API) via CLI** — `twilio email:send` uses SendGrid only. For Twilio Email, use the REST API directly. --- ## Next Steps - **Account setup and API keys:** `twilio-account-setup`, `twilio-iam-auth-setup` - **Webhook architecture and signature validation:** `twilio-webhook-architecture` - **Debugging and observability:** `twilio-debugging-observability` - **Send SMS via API/SDK:** `twilio-send-message` - **SendGrid email setup:** `twilio-sendgrid-account-setup`
From twilio/ai at 8aba46f, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 8aba46fFiles
- SKILL.md7.7 KB · c16543910ee3
- agents/
- openai.yaml466 B · f662fa3c1962
- assets/
- icon-large.png9.6 KB · 0ba822e01172
- icon-small.png5.6 KB · 400e3f49b6c1
4 files, 23 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 8aba46fMore from Twilio
twilio-account-setup
Sets up a Twilio account from scratch, including free trial signup, credential retrieval, phone number purchase, and enabling specific products like AI…
Claude Code, Codex, Cursor +4 · about 2.5K tokens · pinned 6 days ago
twilio-agent-augmentation-architect
This skill helps developers design AI-augmented contact center systems that enhance human agents with real-time intelligence.
Claude Code, Codex, Cursor +3 · about 3.6K tokens · pinned 6 days ago
twilio-agent-connect
Twilio Agent Connect is middleware that integrates LLM agents with Twilio communication channels (voice, SMS, RCS, WhatsApp, chat).
Claude Code, Codex, Cursor +4 · about 4.1K tokens · pinned 6 days ago
twilio-ai-agent-architect
Planning skill that helps developers design AI-powered conversational agents by assessing their use case across outcome sophistication, channels, and customer…
Claude Code, Codex, Cursor +3 · about 4.9K tokens · pinned 6 days ago
twilio-call-recordings
This skill teaches agents to record Twilio voice calls correctly using the appropriate method for the use case.
Claude Code, Codex, Cursor +4 · about 2.6K tokens · pinned 6 days ago
twilio-compliance-onboarding
This skill guides developers through Twilio's mandatory registration and compliance programs before messaging and voice traffic can flow.
Claude Code, Codex, Cursor +4 · about 3.9K tokens · pinned 6 days ago
Related in Cloud and DevOps
create-phone-number
The skill provisions, imports, routes, updates, and verifies phone numbers through the Vapi API.
by VapiOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.4K tokens · pinned 6 days ago
create-phone-number
This skill enables agents to provision, import, route, and manage Vapi phone numbers via the public API.
by VapiOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.4K tokens · pinned 6 days ago
twilio-numbers-senders
This skill helps developers select the right Twilio sender before building their application, comparing US number types (local 10DLC, toll-free, short code)…
by TwilioOfficial publisher
Claude Code, Codex, Cursor +4 · about 3.3K tokens · pinned 6 days ago
twilio-organizations-setup
This skill guides setup and management of Twilio Organizations, the top-level container for account governance, user roles, and security policies.
by TwilioOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.3K tokens · pinned 6 days ago
n8n-cli
This skill enables agents to manage n8n workflows, credentials, executions, and instance resources via the n8n CLI command-line tool.
by n8nOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.9K tokens · pinned 6 days ago
managing-streamlit-apps
Manage Streamlit apps running in PostHog sandboxes through the full lifecycle: create, set or edit source code, start and stop the sandbox, poll status, and…
by PostHogOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.4K tokens · pinned 6 days ago