ferium
ferium copied to clipboard
Override active profile using a flag
The Problem
I'm writing a script that calls ferium and portablemc in order to automatically sync the Minecraft version to my server's, then update Fabric and mods before launching the game and connecting to the server. Ideally I would like to do so without modifying the active ferium profile. Currently, the only way to do this I can think of is:
- Parse the output of
ferium profile
to remember the previously active profile - Use
ferium switch
to switch to the profile for playing on the server - Run
ferium profile configure --game-version
to ensure the Minecraft version is correct - Run
ferium upgrade
to ensure mods are up to date - Run
ferium profile switch
to restore the previously active profile
Your Solution(s)
It would be nice to have a --profile
option that overrides the active profile for the scope of this command only. This would allow the workflow above to be reduced to:
-
ferium --profile=foo profile configure --game-version
-
ferium --profile=foo upgrade