Install Remote Package Installer to your ps4.
npx serve
./ps4-pkg-sender.sh -s {localIp} -d {ps4Ip} -p {pkg}
#!/bin/bash
while getopts s:d:p: flag
do
case "${flag}" in
s) localip=${OPTARG};;
d) ps4ip=${OPTARG};;
p) package=${OPTARG};;
esac
done
echo "Sending $package to $ps4ip";
curl -v "http://$ps4ip:12800/api/install" -H "Content-Type: application/json" --data '{"type":"direct","packages":["http://'$localip':3000/'$package'"]}'