Skip to main content
This CLI is deprecated. For new projects, use the current Telnyx CLI instead.

Requirements

The legacy CLI requires Node.js 20 or later.

Installation

Install globally via npm:
npm install -g @telnyx/api-cli
This makes the telnyx command available from any directory.

Verify Installation

telnyx --version
Expected output:
@telnyx/api-cli/1.1.0 darwin-arm64 node-v20.10.0

Update

To update to the latest version:
npm update -g @telnyx/api-cli

Troubleshooting

”command not found: telnyx”

If the command isn’t found after installation:
  1. Verify it installed:
    npm list -g @telnyx/api-cli
    
  2. Check npm’s global bin is in your PATH:
    npm config get prefix
    # Add <prefix>/bin to your PATH if needed
    
  3. Restart your terminal or reload your shell config:
    source ~/.bashrc  # or ~/.zshrc
    

Permission errors

If you get EACCES permission errors:
  1. Follow npm’s guide to fix permissions
  2. Or use a Node version manager (nvm, fnm) which doesn’t require sudo

Next Steps

Authentication

Configure API keys and profiles