Helldivers 2 Mod Manager CLI is a command line interface for managing Helldivers 2 mods. Since there is no Linux mod manager available and I like being a nerd by using CLI tools instead of GUIs, this project was born.
Pre-requisites:
- The
unzippackage must be installed for ZIP archives. - The
unarchiverpackage is recommended for RAR and 7Z archives.
To install Helldivers 2 Mod Manager CLI run the following command in the terminal:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/v4n00/h2mm-cli/refs/heads/master/install.sh)"The script gets added to /usr/local/bin/h2mm (or $HOME/.local/bin on Steam Deck) and can be used by running h2mm in the shell, which will print the help message along with all available commands.
h2mm --helpTo find out how to use a command, run h2mm COMMAND --help. This is the most up-to-date source of information about the commands.
installori- Install a mod by the file provided (directory, zip, patch)uninstalloru- Uninstall a modlistorl- List all installed modsenableore- Enable a moddisableord- Disable a modrenameorr- Rename a modorderoro- Change load order for a modexportorex- Export installed mods to a zip fileimportorim- Import mods from a zip filemodpackorm- Manage modpacks (collections of mods)nexus-setuporns- Setup Nexus Mods integrationupdateorup- Update h2mm to latest versionresetorrs- Reset all installed modshelporh- Display this help message
h2mm install --help
h2mm install ~/Downloads/mod.zip
h2mm install ~/Downloads/mod\ files/
h2mm install a0b1c2d3.patch_0 a0b1c2d3.patch_0.stream -n "Example mod"
h2mm list
h2mm uninstall --index 3
h2mm modpack create "Example modpack"
h2mm modpack switch "Example modpack"When installing, it is recommended to be in the directory where mod archives are, or to use absolute paths. Use
cd ~/Downloadsto go to the Downloads folder, and runls -lato find the archives to install. Use the Tab key to auto-complete file and folder names, this helps escape spaces and special characters.Use the
--indexflag with commands that normally require a mod name to specify a mod by its index. The index can be obtained withh2mm list.
Nexus Mods integration allows the use the 1-click install feature of Nexus Mods (with the "Vortex" or "Mod manager download" buttons). Set up Nexus Mods integration by running h2mm nexus-setup. Setup includes providing the Nexus Mods API key and selecting the preferred terminal.
Feel free to contribute to this project by creating a pull request or opening an issue.