Repository navigation
The first release of Patchsmith, a command line tool that keeps the PHP versions on your Laravel Forge servers patched.
Commands
patchsmith patchpatches every Forge-managed PHP version to its latest patch release. It never installs, removes, or switches PHP minor versions, and it skips archived servers. It runs as a dry run until you pass--apply.patchsmith auditruns a read-only audit script as root on each server through a temporary Forge recipe. It reports the installed PHP versions, PHP packages with updates available, and PHP processes still running on a replaced binary.
Install
The binary needs PHP 8.3 or newer.
curl -LO https://github.com/driftingly/patchsmith/releases/download/v0.1.0/patchsmith
chmod +x patchsmith
./patchsmith patchTo check the download, compare it with patchsmith.sha256:
curl -LO https://github.com/driftingly/patchsmith/releases/download/v0.1.0/patchsmith.sha256
shasum -a 256 -c patchsmith.sha256Forge token
Patchsmith asks for your Forge API token when it starts and never saves it. For unattended runs, set FORGE_TOKEN instead.
patchneeds theorganization:view,server:view, andserver:manage-phpscopes.auditneeds theorganization:view,server:view,recipe:view,recipe:manage, andteam:viewscopes. With--team, it does not needteam:view.
When the token can reach more than one organization, Patchsmith asks which one to use. Pass --org to choose up front.
See the README for every option.