Skip to content

Viaalink CLI v3.2.1

Choose a tag to compare

@kwuite kwuite released this 31 Oct 16:10
· 6 commits to main since this release

The CLI is via all the way down: via.yaml, VIA_* settings and via data and config directories. Existing asd.yaml files, ASD_* names and asd directories keep working.

New

  • via.yaml is the project file. via init writes via.yaml in a new project. A project with only asd.yaml keeps using it, unchanged. When a folder has both, via.yaml is used and the CLI says asd.yaml is ignored.
  • Every ASD_* setting can be set as VIA_* (VIA_SKIP_BINARIES=all, VIA_MODE, VIA_HTTP_HOST, …). When both are set, VIA_ wins. The installers read VIA_INSTALL_BASE_URL, VIA_HOME and VIA_NO_MODIFY_PATH.
  • Your data and config directories are named via: ~/.local/share/via and ~/.config/via on Linux, ~/Library/Application Support/via on macOS, %LOCALAPPDATA%\via and %APPDATA%\via on Windows. The installer, or the first via run, moves an existing asd directory there and leaves a link at the old name. Relay enrolments, device keys, the vault, projects and running services carry on untouched. If Windows holds a file in the old directory open, the CLI keeps using it and tries the move again on a later start.

Changed

  • Messages, help and via schema name via.yaml, the via directories and VIA_* settings. via auth prints VIA_TUNNEL_* exports for containers.
  • The relay client is viaalink-relay 1.37.0, with pinned checksums for Linux, macOS and Windows.
  • On Windows the CLI is installed in %LOCALAPPDATA%\via\bin.

Also in this release (from 3.1.9)

3.1.9 and 3.2.0 were not published on their own; everything in them ships here.

New

  • via files start [folder] shares a folder in the browser. It asks three questions: keep serving in the background (yes), publish it on your relay (no), and put a login in front (yes). Flags answer them for scripts: --background/--foreground, --public, --auth=none|basic. via files tunnel shares it publicly in one step; via files list and via files stop <name> manage shares, from any folder. Hidden files (.env, .git/…) are never served, and a symlink cannot lead outside the shared folder.
  • via expose auth --rotate replaces the logins of a project (the basic auth and the web terminal's). Old passwords and links stop working at once. It asks first; --yes for scripts.
  • Quick login, opt-in: via config set preferences.show_auth_in_urls true. In a terminal that supports it, links open with one click and show the password as dots. In CI, a pipe, a log or Apple Terminal no password is printed.
  • via expose checks the public address before it says it is live, and tells you when the tunnel does not answer yet.

Changed

  • No passwords in output. Only via expose auth shows them, now including the web terminal's login. terminal start, net apply, the service menus and via urls no longer print one.
  • You pick the default relay. The first relay you add becomes the default. Adding another asks whether it should be the default; without a terminal the default stays and the new relay is added to via relay list. --default switches without asking; via relay set <name> switches later.
  • via relay rotate-key asks before it replaces the device key; --yes for scripts.
  • via net apply without a relay applies everything on this machine and ends with a clear warning that nothing was published, with the steps to add a relay.
  • Output says via and Viaalink. Hints name the command you typed, and services read "VS Code", "Network inspector", "Database manager", "Web terminal" and "Dashboard".
  • A bare via shows the same task-ordered overview as via help.
  • via help no longer lists database (it needs a separate Bun install) and, on Windows, code (no Windows build). Both still run.
  • via init registers the folder as a project, so via projects list shows it.

Fixed

  • via expose list shows exposes without a tunnel ("On this machine only") and no longer reports a live tunnel in a temp folder as an orphan.
  • Short options take their value: -s prod, -n 50, -p <dir>.
  • via ssh connect works when the project path contains a space.
  • via vault import imports .env files next to a .env.example and skips a Python .env/ folder.
  • On Windows the installer keeps %VAR% entries in your PATH.
  • via terminal start points at via terminal tunnel (the expose hint led to a login loop).
  • Stop commands say "stopped" or "was not running"; "Did you mean?" no longer suggests unrelated commands.
  • A python3 -m http.server is detected as a service.