Your Laravel servers,
a keypress away

A terminal UI for Laravel apps in Docker, on your machine or any server you can SSH into: logs, Tinker, queues, databases and files. Nothing to install on the server

brew install alexbabintsev/tap/laraport

Any number of SSH servers and the local Docker in one place. Press c to check them all at once: containers up and down, disk, load and warnings. The containers you opened lately are listed below themMore in the docs

laraport in under three minutes

The commands you no longer type

$ ssh deploy@shop.example.com
$ docker ps | grep shop
$ docker exec -it shop_app.1.x7k2pq9wq3 sh
# cd /var/www/html
# tail -n 500 storage/logs/laravel.log | grep ERROR
# php artisan tinker
> Order::where('status', 'failed')-⁠>count()
  1. ctrl+pshopenterJump to the app, connecting to its server first
  2. 3↓enterSee the log’s errors, grouped by kind
  3. esc2↓enterOpen Tinker in the running app

The next deploy can rename the container: laraport finds the service again

Know what happened last night

Every server at a glance, and what its containers did while you slept

  • E lists the containers that died, ran out of memory, restarted or turned unhealthy, over 1 hour, 24 hours or 7 days
  • Exit codes are explained: 137 is out of memory or killed, 143 a stop
  • A panel above the containers shows load against cores, memory, disks and Docker, and warns of a nearly full disk or a pending reboot
  • c on the home screen checks every server at once

Go from a log to the line that failed

Laravel, Docker and nginx logs, without grep

  • Search as you type, keep only warnings or errors, jump between errors with ] and [
  • Errors groups exceptions by kind: how often, first and last time, file and line
  • enter shows the latest one with its stack trace
  • Follow a whole project in one stream; a 2 GB log opens as fast as a small one

Everything artisan knows, without typing it

laraport reads the app the way the app reads itself

  • Every Artisan, Composer and npm command with its description and autocomplete, plus your own command groups
  • Routes with method, name, controller and middleware: type POST orders or auth:sanctum to filter
  • Scheduled tasks with their next run; t runs one now through schedule:test
  • The app’s variables from .env and the container, with checks and a compare

Failed jobs, without opening a browser

The Horizon dashboard in your terminal, refreshed every 3 seconds

  • Pending, completed and failed jobs with their payloads and exceptions
  • Retry, forget, clear, pause and terminate
  • Throughput, wait times, workload per queue and supervisors
  • Without Horizon, the Queues screen shows failed jobs and queue sizes

Every store the app uses

The connection comes from the app’s own config: nothing to set up

  • PostgreSQL, MySQL, MariaDB and SQLite as a table: sort, filter, export, edit with the SQL shown first
  • Redis keys by pattern with type, TTL and size; MongoDB too
  • Tunnels put the database on 127.0.0.1 for TablePlus or DBeaver; nothing listens on the server
  • Restore a local .sql, .sql.gz or .dump straight into the database

Check a deploy, and finish it

The container’s card says what still needs doing

  • Warnings for pending migrations, debug mode on production, uncached config and maintenance
  • Migrations, optimize, clearing caches, restarting workers and maintenance mode, each after a confirmation with the command
  • Compose: pull, recreate, update the project. Swarm: why a task failed, redeploy, roll back, scale
  • Images, volumes and networks with sizes, an update check, and prune

A handful of keys, and ctrl+k for the rest

Every screen shows its keys at the bottom. The command palette lists every action of the screen you are on: type a few letters, press enter

enter
open
esc
back
/
filter or search
l
logs of the container
t
a shell in it
f
its files
ctrl+p
jump to another container or server
ctrl+k
every action of the screen
?
every key of the screen

Careful with production

You see it before it runs
Every change shows its exact command or SQL, with Cancel focused. Restores make you type the database’s name
Production is marked
Tinker asks before the first run; table editing and restoring dumps have to be switched on
Read-only servers
Mark a server read-only and laraport refuses everything that would change it. Logs, tables and downloads work as usual
A journal of every change
h on the home screen lists what laraport did: the command or SQL, where, when and how it ended. It stays on your computer

Nothing to install on the server

laraport runs the docker commands you would, over your own SSH connection. Your servers need Docker and SSH, nothing else

  • No agent, no open ports, no telemetry Once a day it asks GitHub for its latest release; that can be turned off
  • Secrets stay off the command line Database passwords and Tinker code travel over stdin, so ps on the server never shows them
  • Your keys, your known_hosts The key from the config, then ssh-agent, then ~/.ssh; host keys are checked against known_hosts
  • Works with your SSH setup i imports the hosts of ~/.ssh/config; jump hosts, ssh-agent and sudo -n docker work as they do in ssh
  • Local files are private The config, SQL history, the journal and downloads are written with mode 0600

Install

One binary for macOS and Linux

On Windows there is no native build, but laraport should run in WSL2. How to set it up

  1. Install it with Homebrew

    brew install alexbabintsev/tap/laraport

    Linux without Homebrew: one binary from a release. How to install it

  2. Run it

    laraport

    The local Docker is there without any config

  3. Add your servers

    Press i to import the hosts of your ~/.ssh/config or a to add one. Quick start