When to Use the CLI vs the API
| Use Case | CLI | API |
|---|---|---|
| Quick manual tasks | ✅ Best choice | Overkill |
| Scripting & automation | ✅ Great for bash/shell | ✅ Better for complex logic |
| CI/CD pipelines | ✅ Simple integrations | ✅ Full control |
| Production applications | ❌ Not recommended | ✅ Use SDKs or direct API |
| Exploring the API | ✅ Fast iteration | Slower feedback loop |
Features
Full API Coverage
Access Telnyx APIs for messaging, voice, numbers, 10DLC, verification, storage, and more
Multiple Authentication
Support for API keys, environment variables, and named profiles
Shell Autocomplete
Tab completion for commands, flags, and resource IDs
JSON & Table Output
Flexible output formats for scripting and human readability
Quick Example
Installation
Install via npm:Installation Guide
Detailed installation instructions and troubleshooting
Documentation
Quickstart
Get up and running in 5 minutes
Authentication
Configure API keys and profiles
General Usage
Output formats, filtering, and scripting
Command Reference
Full list of all CLI commands