Skip to content

Viaalink CLI v4.1.0

Choose a tag to compare

@kwuite kwuite released this 19 Nov 00:17
· 2 commits to main since this release

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 | bash

Windows (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 run via net apply.
  • VS Code in the browser is no longer open to every user on your machine. via code start now listens on a socket only you can open (Linux, macOS) or asks for its own password (Windows). Restart it and run via 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. Run via env init and via net apply once after upgrading. Scripts and apps that called it without a login must now send one.
  • via tmux kill-all only ends sessions the CLI started. It used to end every tmux session whose name starts with asd-, 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-add no longer wipes your routes. If you used it before, run via net apply to 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 start and via stop when a task fails; via init when a module asked to auto-start did not start; via config validate outside a project; via gh active, via gh runs and via gh stop when 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 codeserver is gone: use via gh code. via gh terminal no longer asks which CLI version the runner installs; pass --cli-version <tag> to choose one.
  • via gh setup and via ci install use the git repository of the folder you are in, and exit 1 outside one.
  • Template helpers take named arguments only: getRandomString(length=64), not getRandomString(64); the same for getRandomPort(s) and getPortRange.
  • Removed: via deps sync, via deps validate, via deps update (they only worked in the source checkout), via repo setup (use via init) and via env-init (use via env init).

Viaalink CI/CD

  • via gh code starts VS Code on a GitHub runner, or reopens yours. It is via gh terminal with 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 setup and via ci install now 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, run via gh setup again, push the new terminal.yml, and run via gh setup once more.
  • via gh setup and via ci install take --yes for scripts, and never replace an edited terminal.yml without 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 pair prints an address and a one-time code for the Android app; via hub devices lists paired phones and via hub unpair removes 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 start and via stop run their task the way via run does, and background steps of a task keep running after the command returns.
  • More than forty further fixes are in the changelog.