Page 1 of 1

CLI for updating Factorio

Posted: Tue Nov 07, 2023 11:53 am
by Hares
TL;DR
Factorio CLI should provide commands for updating Factorio and/or mods

What ?
Factorio command-line interface (CLI) should provide commands for downloading update packages and/or mod updates.
I.e., the following:

Code: Select all

./factorio --download-update experimental --latest
./factorio --apply-update 2.0.0 --download
./factorio --update-mods --all
./factorio --download-mods "space-exploration>=0.6,Milestones"
These should respect other parameters, such as "--mod-directory".
They should also use the already-authorized user's credentials, or allow "--auth USERNAME:PASSWORD" parameter if none.
Why ?
Factorio client already has this functionality, but it is only available in the UI.
Factorio CLI supports only applying already downloaded update packages but does not provide any option to download them.

There are multiple 3rd-party scripts covering this functionality, but it would be nice to have them "from the box", here are some of them:

Re: CLI for updating Factorio

Posted: Wed Apr 17, 2024 12:47 pm
by Maximus-CZ
Oh definetly this! I came looking for solution and finding scripts from 2015 dont inspire much confidence.

Game about automation and it cant be automatically updated? Is this game even out of beta? :D

Re: CLI for updating Factorio

Posted: Thu Apr 18, 2024 5:48 am
by vinzenz
The factorio docker image is also a great way to keep your headless server updated (by using the `stable` or `latest` tag) https://github.com/factoriotools/factorio-docker