Update: Now not just PHP but also PowerShell and Shell. See the github repo: GitHub - VIRUXE/cfx-artifacts-updater: A bundle of scripts to easily update your Cfx.re (FiveM/RedM) server artifacts.
Just made this tiny script and thought the rest of the community would benefit from it.
Using this PHP script you automatically update your server artifacts with a single console command or even a double-click.
You can place the script outside your “artifacts” directory (the one that has the server binary inside) if you’re running Windows or inside it if you’re running Linux.
Usage syntax: php artifacts.php ('recommended'/'optional'/'latest'/'critical')
If you don’t specify a build type, it will update to the ‘latest’ build.
If you don’t have PHP added to your Path in Windows and don’t feel like adding it then just set PHP files to open with php.exe
, wherever it might be installed.
Download: Update your FiveM/Cfx.re Server Artifacts · GitHub