Repository navigation
Viaalink CLI v4.1.0
4.1.0 closes the ways a service on your own machine could be reached without a login, makes commands say truthfully whether they did what was asked, and finishes the GitHub side of Viaalink CI/CD: VS Code on a runner with via gh code, the job's log with via gh logs, and a session you start from GitHub's Actions page now shows its address in the job's log.
Install or update
curl -fsSL https://raw.githubusercontent.com/viaalink/cli/main/install.sh | bashWindows (PowerShell): irm https://raw.githubusercontent.com/viaalink/cli/main/install.ps1 | iex · Already on 4.x: via update · Coming from 3.x: run the installer again.
Security
- DbGate is reachable only through the studio's login. It ran on a network port with its own login off, so anyone on the same network, and any web page you visited, could read and change your databases. On Linux and macOS it now listens on a socket only you can open; on Windows on 127.0.0.1 with its own login on. Restart a running DbGate (
via dbgate stop,via dbgate start) and runvia net apply. - VS Code in the browser is no longer open to every user on your machine.
via code startnow listens on a socket only you can open (Linux, macOS) or asks for its own password (Windows). Restart it and runvia net apply. - The MCP control server (
via serve mcp,via serve hub) needs a login for everything except health, the service list, tunnels, relays and the shell list, and masks secrets in what it returns. Runvia env initandvia net applyonce after upgrading. Scripts and apps that called it without a login must now send one. via tmux kill-allonly ends sessions the CLI started. It used to end every tmux session whose name starts withasd-, also your own.via net start --id <id>no longer restarts a detected service from the folder you stand in (which could serve your project's.env). It runs the service in its own folder, or starts nothing and says why.via caddy server-addno longer wipes your routes. If you used it before, runvia net applyto put them back.
Check before you upgrade scripts and CI
- Commands exit non-zero when they did not do what was asked. Among them:
via up,via startandvia stopwhen a task fails;via initwhen a module asked to auto-start did not start;via config validateoutside a project;via gh active,via gh runsandvia gh stopwhen the GitHub CLI call fails. The changelog lists every one. - Every command refuses an option it does not take, with a pointer to its
--help, instead of ignoring it. via gh terminal --interface codeserveris gone: usevia gh code.via gh terminalno longer asks which CLI version the runner installs; pass--cli-version <tag>to choose one.via gh setupandvia ci installuse the git repository of the folder you are in, and exit 1 outside one.- Template helpers take named arguments only:
getRandomString(length=64), notgetRandomString(64); the same forgetRandomPort(s)andgetPortRange. - Removed:
via deps sync,via deps validate,via deps update(they only worked in the source checkout),via repo setup(usevia init) andvia env-init(usevia env init).
Viaalink CI/CD
via gh codestarts VS Code on a GitHub runner, or reopens yours. It isvia gh terminalwith VS Code instead of a terminal.via gh logs [<run-id>]prints the job log of a session's run, without GitHub's timestamps;--grep <text>keeps the matching lines.- A session started from GitHub's Actions page shows its address.
via gh setupandvia ci installnow store the relay's address (VIA_TUNNEL_HOST,VIA_TUNNEL_PORT) as repository variables instead of secrets. GitHub replaces a secret's value with***in a run's log, so the address could not be read there. The key, the host key pins and the terminal password stay secrets. A repository set up earlier keeps working; to get the readable address, runvia gh setupagain, push the newterminal.yml, and runvia gh setuponce more. via gh setupandvia ci installtake--yesfor scripts, and never replace an editedterminal.ymlwithout saying its changes are lost (--replace-workflow).- Each run's title says whether it is a terminal or a VS Code session.
New
- Pair a phone with the hub:
via hub pairprints an address and a one-time code for the Android app;via hub deviceslists paired phones andvia hub unpairremoves one.
Fixed
- Downloads and GitHub API calls give up instead of hanging: an API call after 15 seconds, a download when no data arrives for 60 seconds.
via startandvia stoprun their task the wayvia rundoes, and background steps of a task keep running after the command returns.- More than forty further fixes are in the changelog.