CLI for updating Factorio

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 581
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

CLI for updating Factorio

Post 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:
Maximus-CZ
Inserter
Inserter
Posts: 23
Joined: Sun Aug 31, 2014 2:39 pm
Contact:

Re: CLI for updating Factorio

Post 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
User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 352
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: CLI for updating Factorio

Post 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
bringing the oops to devops
porridge
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Oct 21, 2024 10:43 pm
Contact:

Re: CLI for updating Factorio

Post by porridge »

Yeah I guess we could deploy docker, but we're adding quite a bit of complexity at that point. Is that the recommended path? If so, can that be put in the wiki then?
I love this game, have gotten several people to buy it and play with me. The attention to detail and customizability is top notch. BUT. Documentation on running the server is really bad. You don't actually explain any of the command line options. There is no clear path to go from running headless server to updating to 2.0
I'm pretty savvy, but it feels like you guys are assuming an awful lot about the players.
Like, I'm sorry, what is this?
https://updater.factorio.com/get-available-versions
It's not explained anywhere that I can find.
Is the upgrade path a full rip and replace? I've googled quite a bit and I guess that's what I'm going to do. I hope the save is compatible.

(I'm not trying to be too contentious, but I've run quite a few dedicated servers and I'm surprised at how onerous this one is to deploy and maintain.)
ctgPi
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Mar 23, 2022 6:25 am
Contact:

Re: CLI for updating Factorio

Post by ctgPi »

For the record, there is an

Code: Select all

--apply-update
command-line switch, but it expects a ZIP file (I haven't investigated). Is this supported/documented somewhere?

(For the record, what I have been doing for now is

Code: Select all

tar xf ~/Downloads/factorio-space-age_linux_2.0.10.tar.xz --strip-components=1
on the root Factorio instance directory.)
Post Reply

Return to “Ideas and Suggestions”