telnyx-cli
Use the Telnyx CLI to manage phone numbers, send messages, make calls, and access all Telnyx APIs from the terminal. 946 commands auto-generated from the OpenAPI spec — every API endpoint is a CLI command.
Best use case
telnyx-cli is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use the Telnyx CLI to manage phone numbers, send messages, make calls, and access all Telnyx APIs from the terminal. 946 commands auto-generated from the OpenAPI spec — every API endpoint is a CLI command.
Teams using telnyx-cli should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/telnyx-cli/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How telnyx-cli Compares
| Feature / Agent | telnyx-cli | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use the Telnyx CLI to manage phone numbers, send messages, make calls, and access all Telnyx APIs from the terminal. 946 commands auto-generated from the OpenAPI spec — every API endpoint is a CLI command.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Telnyx CLI The Telnyx CLI provides command-line access to the entire Telnyx API. Every API endpoint maps to a CLI command — 946 commands covering messaging, voice, numbers, IoT, AI, and more. ## Installation ```bash # Homebrew (macOS/Linux) brew install telnyx/tap/telnyx # Go install go install github.com/team-telnyx/telnyx-go/cmd/telnyx@latest # Or download a binary from GitHub releases: # https://github.com/team-telnyx/telnyx-go/releases ``` ## Authentication ```bash export TELNYX_API_KEY="KEY..." ``` The CLI reads `TELNYX_API_KEY` from your environment. Set it once in your shell profile. ## Command Discovery The CLI is fully self-documenting. Use `--help` at any level to explore: ```bash # Top-level resource list telnyx --help # Commands for a specific resource telnyx messages --help # Full usage for a specific command telnyx messages create --help ``` ## Command Structure Commands follow a consistent pattern: ```text telnyx <resource> <action> [--flag value ...] ``` Resources match API paths. Actions are `list`, `create`, `get`, `update`, `delete`, and resource-specific verbs. ## Common Operations ### Send an SMS ```bash telnyx messages create \ --from +15551234567 \ --to +15559876543 \ --text "Hello from the CLI" ``` ### List phone numbers ```bash telnyx phone-numbers list --page-size 25 ``` ### Search for available numbers ```bash telnyx available-phone-numbers list \ --country-code US \ --state CA \ --features sms ``` ### Order a phone number ```bash telnyx number-orders create \ --phone-numbers +15551234567 ``` ### Make an outbound call ```bash telnyx calls create \ --connection-id 1234567890 \ --from +15551234567 \ --to +15559876543 ``` ### List SIM cards ```bash telnyx sim-cards list --page-size 10 ``` ### Create an AI assistant ```bash telnyx assistants create \ --name "Support Agent" \ --model telnyx_ai ``` ### Check account balance ```bash telnyx balance get ``` ## Output Formats ```bash # Default: human-readable table telnyx phone-numbers list # JSON output for scripting telnyx phone-numbers list --format json # Pipe to jq for filtering telnyx phone-numbers list --format json | jq '.data[].phone_number' ``` ## When to Use CLI vs SDK | Use case | Recommended | |----------|-------------| | Quick one-off operations | CLI | | Shell scripts and automation | CLI | | Application code | SDK (Python, JS, Go, Java, Ruby) | | Interactive exploration | CLI | | CI/CD pipelines | CLI or SDK | | Complex business logic | SDK |
Related Skills
telnyx-whatsapp-ruby
Send WhatsApp messages, manage templates, WABAs, and phone numbers via the Telnyx WhatsApp Business API.
telnyx-whatsapp-python
Send WhatsApp messages, manage templates, WABAs, and phone numbers via the Telnyx WhatsApp Business API.
telnyx-whatsapp-javascript
Send WhatsApp messages, manage templates, WABAs, and phone numbers via the Telnyx WhatsApp Business API.
telnyx-whatsapp-java
Send WhatsApp messages, manage templates, WABAs, and phone numbers via the Telnyx WhatsApp Business API.
telnyx-whatsapp-go
Send WhatsApp messages, manage templates, WABAs, and phone numbers via the Telnyx WhatsApp Business API.
telnyx-whatsapp-curl
Send WhatsApp messages, manage templates, WABAs, and phone numbers via the Telnyx WhatsApp Business API.
telnyx-webrtc-ruby
Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Ruby SDK examples.
telnyx-webrtc-python
Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Python SDK examples.
telnyx-webrtc-javascript
Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides JavaScript SDK examples.
telnyx-webrtc-java
Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Java SDK examples.
telnyx-webrtc-go
Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides Go SDK examples.
telnyx-webrtc-curl
Manage WebRTC credentials and mobile push notification settings. Use when building browser-based or mobile softphone applications. This skill provides REST API (curl) examples.