Prerequisites
- Node.js 20+ installed
- A Telnyx account
- A Telnyx API key
Step 1: Install the CLI
Step 2: Configure Authentication
The CLI needs your API key to authenticate with Telnyx. You can get your API key from the Telnyx Portal.Interactive Setup (Recommended)
Run the setup wizard:~/.config/telnyx/config.json.
Environment Variable
Alternatively, set your API key as an environment variable:Verify Authentication
Check that your credentials are working:Step 3: Run Your First Commands
Check Your Balance
List Your Phone Numbers
Search for Available Numbers
Send a Test Message
You’ll need a messaging-enabled phone number and a configured messaging profile.
Step 4: Explore Commands
Get Help
Enable Autocomplete
Set up shell autocomplete for faster command entry:Common Commands
| Command | Description |
|---|---|
telnyx auth setup | Configure API authentication |
telnyx auth status | Check authentication status |
telnyx number list | List your phone numbers |
telnyx number search | Search available numbers |
telnyx message send | Send an SMS/MMS message |
telnyx message list | List sent/received messages |
telnyx call dial | Initiate an outbound call |
telnyx billing balance | Check account balance |
telnyx 10dlc brand list | List 10DLC brands |
telnyx ai chat | Chat with AI models |