Skip to main content
This CLI is deprecated. The @telnyx/api-cli package is no longer actively maintained.For new projects, use the Telnyx CLI (Go) which offers better performance, simpler authentication, and full API coverage.

About the Legacy CLI

The @telnyx/api-cli is a Node.js-based command-line interface for interacting with the Telnyx API. It provides commands for managing phone numbers, sending messages, making calls, and more.

Features

  • Interactive Setup — Guided authentication with telnyx auth setup
  • Profile Management — Multiple API key profiles for different environments
  • 10DLC Wizard — Step-by-step 10DLC brand and campaign registration
  • Shell Autocomplete — Tab completion for commands and options
  • Dry Run Mode — Preview destructive operations before executing

Legacy Documentation

Installation

npm installation instructions

Authentication

API keys, profiles, and config files

Command Reference

Full command reference

Migrating to the current CLI

The current Telnyx CLI (Go) uses plural resource names and long-form flags. Common command equivalents: Listing sent messages (telnyx message list) has no direct equivalent in the current CLI — use MDR reports instead.

Resources