Skip to main content

VT Command Installation Guide

The vt command is VibeTunnel’s convenient wrapper that allows you to run any command with terminal sharing enabled. This guide explains how the installation works and how to manage it.

Installation Behavior

When you install VibeTunnel via npm, the vt command installation follows these rules:

Global Installation (npm install -g vibetunnel)

  • Checks for existing vt command to avoid conflicts with other tools
  • If no vt command exists, creates it globally
  • If vt already exists, skips installation and shows a warning
  • You can still use npx vt or vibetunnel fwd as alternatives

Local Installation (npm install vibetunnel)

  • Configures vt for local use only
  • Access via npx vt within your project

Platform Support

macOS and Linux

  • Creates a symlink to the vt script
  • Falls back to copying if symlink creation fails
  • Script is made executable automatically

Windows

  • Creates a .cmd wrapper for proper command execution
  • Copies the actual script alongside the wrapper
  • Works with Command Prompt, PowerShell, and Git Bash

Common Scenarios

Existing VT Command

If you already have a vt command from another tool:
Alternatives:
  • Use npx vt (works globally if installed with -g)
  • Use vibetunnel fwd directly
  • Manually install to a different name (see below)

Manual Installation

If automatic installation fails or you want to customize:

Force Reinstallation

To force VibeTunnel to overwrite an existing vt command:

Troubleshooting

Permission Denied

If you get permission errors during global installation:

Command Not Found

If vt is installed but not found:

Windows Specific Issues

  • Ensure Node.js is in your system PATH
  • Restart your terminal after installation
  • Try using vt.cmd explicitly if vt doesn’t work

Uninstallation

The vt command is removed automatically when you uninstall VibeTunnel:
If it persists, remove manually: