CLI Reference
Complete reference for the v2raytunsetup command-line tool — install, update, backup, and manage V2RayTun.
Overview
v2raytunsetup is the command-line tool for managing V2RayTun panel installations. It is installed automatically by the install script and placed in /usr/local/bin.
Commands
install-panel
Install the V2RayTun panel on the current server.
v2raytunsetup install-panelNon-interactive mode:
V2RAYTUN_PANEL_DOMAIN=panel.example.com \
V2RAYTUN_SUB_DOMAIN=sub.example.com \
v2raytunsetup install-panelupdate
Update the panel to the latest version. Pulls new Docker images and restarts services.
v2raytunsetup updaterestart
Restart all panel Docker services.
v2raytunsetup restartstop
Stop all panel Docker services.
v2raytunsetup stopstart
Start all panel Docker services.
v2raytunsetup startstatus
Show the status of all panel Docker services.
v2raytunsetup statusExample output:
NAME STATUS PORTS
backend Up 3 hours 0.0.0.0:3000->3000/tcp
frontend Up 3 hours 0.0.0.0:3001->3001/tcp
caddy Up 3 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp
postgres Up 3 hours 5432/tcp
redis Up 3 hours 6379/tcp
rabbitmq Up 3 hours 5672/tcp, 15672/tcpbackup
Create a full backup of the panel data (database, certificates, configuration).
v2raytunsetup backupThe backup archive is saved to /opt/v2raytun/backups/ with a timestamped filename.
restore
Restore the panel from a backup archive.
v2raytunsetup restore /opt/v2raytun/backups/backup-2025-06-10.tar.gzuninstall
Remove the panel and all its data. You will be prompted to confirm.
v2raytunsetup uninstalllogs
View live logs from all panel services.
v2raytunsetup logsFollow logs for a specific service:
v2raytunsetup logs backendversion
Print the current version of v2raytunsetup.
v2raytunsetup versionGlobal Flags
| Flag | Description |
|---|---|
--help | Show help for any command |
--yes | Skip confirmation prompts |