Tunnel a branch to localhost

connect & shell

// what it does

Opens a secure authenticated tunnel and exposes the branch as a plain MySQL server on 127.0.0.1:3306 — any local client, GUI, or app connects as if the database were local, with no credentials in any env file. This is the standard local-dev setup for Vitess databases.

// shell

$ pscale connect mydb add-users-table

// gotcha

Vitess-only: Postgres branches don't support connect — create a role and connect directly with its connection string instead. If 3306 is taken, pscale silently picks a random port (watch the output) unless you pass --no-random.

// resources