사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/team-telnyx/ai --skill telnyx-cli시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
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
# 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/releasesAuthentication
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:
# Top-level resource list
telnyx --help
# Commands for a specific resource
telnyx messages --help
# Full usage for a specific command
telnyx messages create --helpCommand Structure
Commands follow a consistent pattern:
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
telnyx messages create \
--from +15551234567 \
--to +15559876543 \
--text "Hello from the CLI"List phone numbers
telnyx phone-numbers list --page-size 25Search for available numbers
telnyx available-phone-numbers list \
--country-code US \
--state CA \
--features smsOrder a phone number
telnyx number-orders create \
--phone-numbers +15551234567Make an outbound call
telnyx calls create \
--connection-id 1234567890 \
--from +15551234567 \
--to +15559876543List SIM cards
telnyx sim-cards list --page-size 10Create an AI assistant
telnyx assistants create \
--name "Support Agent" \
--model telnyx_aiCheck account balance
telnyx balance getOutput Formats
# 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 |


