Installation
Homebrew
Section titled “Homebrew”On macOS and Linux:
brew install alexbabintsev/tap/laraportUpgrade later with:
brew upgrade laraportlaraport tells you when a new version is out: once a day it asks GitHub for its latest release and says so on the home screen, with the command to upgrade. See Checking for new versions for what it sends and how to turn it off.
Linux without Homebrew
Section titled “Linux without Homebrew”The latest release for your architecture, a single binary with nothing else to install:
version=$(curl -fsSLo /dev/null -w '%{url_effective}' https://github.com/alexbabintsev/laraport/releases/latest | sed 's|.*/v||')arch=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')curl -fsSL "https://github.com/alexbabintsev/laraport/releases/download/v$version/laraport_${version}_linux_$arch.tar.gz" | tar -xz laraportsudo install laraport /usr/local/bin/Repeat it to upgrade.
Windows
Section titled “Windows”There is no native build for Windows. laraport should run in WSL2 with either install above, but it has not been tested there yet. If you try it, tell us how it went.
Inside WSL, laraport sees Linux, not Windows:
- Local Docker: the
dockercommand has to work inside WSL. Turn on WSL integration for your distribution in Docker Desktop, or install Docker Engine in WSL. - SSH: keys and
~/.ssh/configare read from your home in WSL, not fromC:\Users\you\.ssh. Copy them over and runchmod 600on the keys. Thessh-agentof Windows is not visible from WSL, so start one inside it if you use an agent. - Shells on servers: these run the
sshcommand, so WSL needsopenssh-client. - Tunnels: they listen on
127.0.0.1in WSL. WSL2 forwardslocalhostto Windows by default, so TablePlus or DBeaver on Windows should reach them. - Copying: it needs a terminal with OSC 52, such as Windows Terminal. See Troubleshooting.
- Downloads: files land in
~/Downloadsin WSL by default. Open them from Windows through\\wsl$\.
Requirements
Section titled “Requirements”On your computer:
- macOS or Linux (WSL2 on Windows), any terminal with 256 colours or true colour. Layouts work down to 40×12.
- An SSH key for your servers, as a file or in
ssh-agent. The same key you use withsshworks.
On the servers:
- Docker, reachable by the SSH user. If the user is not in the
dockergroup, setdocker_cmd: "sudo -n docker"for the server (see Servers and SSH). - Nothing else. laraport installs nothing on the server or in the containers.
Some features use tools inside the container when they are there: psql, mysql or redis-cli for the database screens, php for the Laravel features. The container screen only shows what the container can do.