> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Legacy CLI

> Install the deprecated @telnyx/api-cli Node.js CLI for legacy projects. New projects should use the current Telnyx CLI for better support.

<Warning>
  **This CLI is deprecated.** For new projects, use the [current Telnyx CLI](/development/cli/getting-started/install) instead.
</Warning>

## Requirements

The legacy CLI requires **Node.js 20 or later**.

## Installation

Install globally via npm:

```bash theme={null}
npm install -g @telnyx/api-cli
```

This makes the `telnyx` command available from any directory.

## Verify Installation

```bash theme={null}
telnyx --version
```

Expected output:

```
@telnyx/api-cli/1.1.0 darwin-arm64 node-v20.10.0
```

## Update

To update to the latest version:

```bash theme={null}
npm update -g @telnyx/api-cli
```

## Troubleshooting

### "command not found: telnyx"

If the command isn't found after installation:

1. Verify it installed:
   ```bash theme={null}
   npm list -g @telnyx/api-cli
   ```

2. Check npm's global bin is in your PATH:
   ```bash theme={null}
   npm config get prefix
   # Add <prefix>/bin to your PATH if needed
   ```

3. Restart your terminal or reload your shell config:
   ```bash theme={null}
   source ~/.bashrc  # or ~/.zshrc
   ```

### Permission errors

If you get `EACCES` permission errors:

1. Follow [npm's guide to fix permissions](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally)

2. Or use a Node version manager (nvm, fnm) which doesn't require sudo

## Next Steps

<Card title="Authentication" icon="key" href="/development/cli/legacy/authentication">
  Configure API keys and profiles
</Card>
