Files
rmcl/README.md
T
objz 538c37f853 feat: export modpacks in CurseForge, Modrinth and MultiMC formats
Add shared export planning, cached scans, exact file selection, safe overwrite confirmation and background TUI progress. Refine sectioned confirmations and allow ordinary content changes while games run.

Invalidate stale export fingerprints on validation failure, preserve ownership and mutation checks, and use ordered lookups for unmatched-file highlighting. Add export, UI, locking and cache-recovery regression tests.
2026-10-25 19:12:29 +01:00

374 lines
14 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div align="center">
# rmcl
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![GPL-3.0 License][license-shield]][license-url]
**R**usty **M**ine**C**raft **L**auncher. or **R**ust **M**ine**C**raft c**L**i. pick whichever sounds better to you.
![screenshot](assets/screenshot.png)
![modpage](assets/modpage.png)
[Report Bug](https://github.com/objz/rmcl/issues) · [Request Feature](https://github.com/objz/rmcl/issues)
</div>
---
## about
we all love TUIs. and we all know the official Minecraft launcher is not exactly a joy to use (performance wise; no hatespeech here). so here's rmcl, a fully featured Minecraft launcher that lives in your terminal. written in Rust.
it does everything you'd expect from a launcher.
![showcase](assets/showcase.gif)
## features
| Mod Loader | Supported |
|------------|-----------|
| Vanilla | ✅ |
| Fabric | ✅ |
| Forge | ✅ |
| NeoForge | ✅ |
| Quilt | ✅ |
| LiteLoader | ❌ |
| Rift | ❌ |
### modpacks and accounts
Browse Modrinth and CurseForge modpacks or import Modrinth, CurseForge, and MultiMC/Prism archives (including GTNH packs in that format). Direct imports accept a local archive, Modrinth URL, or Modrinth project slug. CurseForge requires a build-time [API key](#curseforge-api). Multiple Microsoft accounts and offline accounts are supported.
### exporting modpacks
Press `e` on an instance to open the TUI exporter; its file scan starts immediately.
Unchanged files reuse hashes from the content index; writing the archive verifies them again.
Use `j`/`k` or the arrow keys to select a row, `h`/`l` to cycle formats, and `Enter`
to edit metadata. The format row shows the archive extension; MultiMC/Prism also
shows a **Bundled** badge.
Author defaults to the system username. Metadata unsupported by the chosen
format stays disabled, so changing formats does not resize the form.
Once scanning finishes, open **Included files** to browse the game folder. Default pack files start
checked; worlds, logs and personal settings start unchecked. Use `h`/`l` to move
between folders and `Space` to select or deselect a file or a whole folder. `h`
stops at the root; only `Esc` returns to the form. The selection summary appears
beside the files, or above them in narrow terminals. It separates download links,
ordinary file copies (such as configs and shaders), and unmatched content. Links
are downloaded on import; file copies are stored inside the archive. Unmatched
files and their containing folders use yellow names, even when unchecked.
Press `c` to allow copying those files after checking their redistribution licences. Press `Enter` for
the final export summary, then `Enter` again to write the archive. Existing files
require one additional overwrite confirmation. The popup closes when writing
starts; progress appears in Overview and errors appear as toasts, without a
completion popup. `Esc` goes back without exporting. Symlinks, disabled files and
unsafe paths are not selectable.
The CLI supports the same formats:
```sh
rmcl export "My Instance" --format curseforge --output pack.zip
rmcl export "My Instance" --format mrpack --output pack.mrpack
rmcl export "My Instance" --format mmc --output prism-pack.zip
```
`curseforge` is the default. MultiMC/Prism exports bundle selected files and work
offline. CurseForge and Modrinth exports identify content through their APIs and
reference exact matching files. Unmatched content requires explicit approval:
`--bundle-unmatched` in the CLI or the checkbox in the TUI file browser. Only bundle
files you have permission to redistribute. Author metadata is written for
CurseForge; the other formats do not have an equivalent author field.
Modrinth exports target clients; server compatibility is not inferred from an
installed client instance.
Exports include enabled mods, configs, scripts, resource packs, shaders and the
top-level datapacks folder. Worlds, logs and personal settings are excluded by
default. Add files or folders with repeatable `--include` arguments, for example
`--include options.txt --include saves/MyWorld`. Symlinks and non-portable paths
are rejected. The CLI refuses existing output files; the TUI replaces them only
after confirmation and successful archive creation. Output must be outside the game folder.
For a standalone folder, use `--directory` instead of an instance name:
```sh
rmcl export --directory ./minecraft --minecraft 1.21.1 --loader fabric \
--loader-version 0.16.14 --format mrpack --output pack.mrpack
```
---
## navigation
Use `Ctrl` + arrow keys to move between the Instances, Content, Accounts,
Settings, and Overview panels. In Content, use plain `Left` / `Right` or `h` / `l`
to switch tabs, and `Tab` to switch between installed content and discovery.
Content can be installed, updated, removed, or enabled/disabled while a game is
running. Mods normally apply on the next launch; packs and configs may reload
live, and the operating system can still reject changes to open files. Instance
deletion, renaming, world deletion/renaming, runtime changes, and whole-modpack replacement require stopping it.
## authentication
rmcl uses its own Microsoft client ID for Minecraft account authentication.
Authentication is performed through Microsoft’s official services.
## CurseForge API
Git, source, and Cargo builds use rmcl's dedicated API key unless `CURSEFORGE_API_KEY` is set at compile time. An empty or whitespace-only override disables CurseForge.
Use of the API is subject to the [CurseForge 3rd Party API Terms and Conditions](https://support.curseforge.com/en/support/solutions/articles/9000207405-curse-forge-3rd-party-api-terms-and-conditions).
Keys supplied for rmcl are for rmcl builds only. Forks, rebranded applications,
and unrelated projects must use their own key. Keys included in source or compiled
binaries are extractable; do not publish a private key.
## installation
[![GitHub release](https://img.shields.io/github/v/release/objz/rmcl?style=for-the-badge&logo=github)](https://github.com/objz/rmcl/releases)
### macOS / Linux
prebuilt archives are attached to each GitHub release.
[![Homebrew tap](https://img.shields.io/badge/homebrew-objz%2Ftap-FBB040?style=for-the-badge&logo=homebrew)](https://github.com/objz/homebrew-tap)
```sh
# Homebrew
brew install objz/tap/rmcl
```
Linux archives and Homebrew installations require the system `libxcb` runtime
package (`libxcb1` on Debian/Ubuntu, `libxcb` on Arch).
An ARM64 launcher build still needs Minecraft natives for that platform. For
example, Minecraft 1.20.1 supplies macOS ARM64 natives but no Linux ARM64 natives;
using a custom GLFW library alone does not provide the other required libraries.
### Windows
release builds include a `.zip` archive and an `.msi`. WinGet packages are
submitted from release CI and become available after review.
[![WinGet](https://img.shields.io/badge/winget-Objz.Rmcl-0078D4?style=for-the-badge&logo=windows11)](https://winstall.app/apps/Objz.Rmcl)
```powershell
# WinGet
winget install Objz.Rmcl
```
### Arch Linux
[![AUR rmcl](https://img.shields.io/aur/version/rmcl?style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/rmcl)
[![AUR rmcl-bin](https://img.shields.io/aur/version/rmcl-bin?style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/rmcl-bin)
[![AUR rmcl-git](https://img.shields.io/aur/version/rmcl-git?style=for-the-badge&logo=archlinux)](https://aur.archlinux.org/packages/rmcl-git)
```sh
# from source (release tarball)
paru -S rmcl
# prebuilt binary
paru -S rmcl-bin
# latest git
paru -S rmcl-git
```
### Nix
[![Nix](https://img.shields.io/badge/nix-5277C4?style=for-the-badge&logo=nixos&logoColor=white)](https://github.com/objz/rmcl)
```sh
nix run github:objz/rmcl
nix profile install github:objz/rmcl
```
the flake builds rmcl from source. To use your own key instead, override it
at build time:
```sh
CURSEFORGE_API_KEY=your-key nix build --impure .#
```
Minecraft 1.12 and older currently fail to launch because rmcl doesn't pass
`-Djava.library.path` for legacy version profiles.
### Cargo
[![crates.io](https://img.shields.io/crates/v/rmcl?style=for-the-badge&logo=rust)](https://crates.io/crates/rmcl)
```sh
cargo install rmcl
```
### from source
requires a Rust toolchain and a JDK (`javac` and `jar` on `PATH`).
Linux builds also require the libxcb development package (`libxcb1-dev` on Debian/Ubuntu, `libxcb` on Arch).
```sh
git clone https://github.com/objz/rmcl.git
cd rmcl
cargo build --release
```
---
## where things live
### config & data
settings, accounts, instances, and cached game metadata.
| what | Linux | macOS | Windows |
|---|---|---|---|
| config (`config.toml`, `theme.toml`, `accounts.json`) | `~/.config/rmcl/` | `~/Library/Application Support/rmcl/` | `%APPDATA%\rmcl\` |
| instances | `~/.local/share/rmcl/instances/` | `~/Library/Application Support/rmcl/instances/` | `%APPDATA%\rmcl\instances\` |
| metadata (versions, libraries, assets, loader profiles) | `~/.local/share/rmcl/meta/` | `~/Library/Application Support/rmcl/meta/` | `%APPDATA%\rmcl\meta\` |
These are default locations. On Linux, `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, and
`XDG_CACHE_HOME` override the corresponding base directories. Instance and metadata
paths can also be changed in `config.toml`.
each instance has an `instance.json` for its config and a `minecraft/` directory with the actual game files.
Launcher settings saved through the TUI apply immediately, except changes to
`instances_dir`, `meta_dir`, and `image_protocol`, which require a restart.
Settings files opened through rmcl's editor shortcut are reloaded after saves;
otherwise, restart rmcl after editing `config.toml` externally. When neither global nor instance
`java_path` is set, rmcl selects Java automatically. Global JVM arguments and
environment variables are applied before per-instance values. Instances can
explicitly inherit the launcher window mode and resolution defaults.
```toml
[general]
check_modpack_updates = true
check_content_updates = true
[defaults]
memory_min = "512M"
memory_max = "2G"
jvm_args = []
environment = {}
window_mode = "windowed"
resolution = [854, 480]
[ui]
image_protocol = "auto"
hidden_shortcut_hints = [] # all, main, instances, content, accounts, settings, popups
[content]
preferred_provider = "modrinth"
preferred_provider_only = false
ask_on_provider_conflict = true
```
Use `hidden_shortcut_hints = ["main"]` to keep only popup guides,
`["all"]` to hide every guide, or list individual areas to hide them selectively.
### logs
launcher logs are per-session and contain rmcl's own output. instance launch logs capture game stdout/stderr per launch.
| what | Linux | macOS | Windows |
|---|---|---|---|
| launcher logs | `~/.cache/rmcl/` | `~/Library/Caches/rmcl/` | `%LOCALAPPDATA%\rmcl\` |
| instance launch logs | `<instances>/<name>/minecraft/logs/launches/` | same | same |
---
## performance
the following measurements were taken from a release build on a Linux development system. they are intended as a practical reference, since terminal, window size, content count, and hardware all affect the result.
### idle instance list
over a `60` second sample, the instance list used `497.81 ms` of CPU time. that is about `0.83%` of one CPU core. resident memory was `15.1 MiB`.
### idle mods list
with a populated mods list and its icons loaded, a `60` second sample used `664.77 ms` of CPU time. that is about `1.11%` of one CPU core. resident memory was `67.2 MiB`, with a peak of `69.9 MiB`.
### scrolling mods list
continuously scrolling through the populated mods list used `1000.02 ms` of CPU time over 30 seconds. that is about `3.33%` of one CPU core.
In comparison, the Modrinth AppImage used approximately `14-30%` of a CPU core and about `327 Mib` of memory while browsing the mod list.
---
## themes
rmcl ships with 10 built-in themes:
`catppuccin` · `dracula` · `nord` · `gruvbox` · `one-dark` · `solarized` · `tailwind` · `tokyo-night` · `rose-pine` · `terminal`
pick one in `~/.config/rmcl/theme.toml`:
```toml
theme = "gruvbox"
border_style = "rounded" # rounded | plain | double | thick
```
### custom themes
drop a TOML file in `~/.config/rmcl/theme/` and reference it by name, or point `theme` at an absolute path. keys are flat and top level, don't nest them under `[theme]`. only `name`, `id` and `accent` are required, the rest falls back to a default:
```toml
# ~/.config/rmcl/theme/my-theme.toml
name = "My Theme"
id = "my-theme"
accent = { Rgb = [249, 115, 22] }
accent_dim = "#7f5539"
text = "#cdd6f4"
text_dim = "DarkGray"
text_bright = "#ffffff"
success = "#a6e3a1"
error = "#f38ba8"
warning = "#f9e2af"
info = "#89dceb"
diff_added = "#a6e3a1"
diff_removed = "#f38ba8"
diff_context = "DarkGray"
border = "#585b70"
surface = "#313244"
background = "#1e1e2e"
```
then set `theme = "my-theme"` in `theme.toml`.
colors accept `"#f97316"`, ANSI names (`"Red"`, `"LightBlue"`), `{ Rgb = [r, g, b] }` or `{ Indexed = n }`.
note that `[custom]` in `theme.toml` overrides colors of the selected theme, whether built-in or loaded from a file; it doesn't define a standalone theme. `border_style` belongs at the top level of `theme.toml`, not in a custom theme file.
---
## contributing
contributions are welcome. fork it, branch it, PR it. see [CONTRIBUTING.md](CONTRIBUTING.md)
---
## license
Copyright (C) 2026 Constantin Bauer
This project is licensed under the GNU General Public License v3.0. see [LICENSE](LICENSE).
---
[contributors-shield]: https://img.shields.io/github/contributors/objz/rmcl.svg?style=for-the-badge
[contributors-url]: https://github.com/objz/rmcl/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/objz/rmcl.svg?style=for-the-badge
[forks-url]: https://github.com/objz/rmcl/network/members
[stars-shield]: https://img.shields.io/github/stars/objz/rmcl.svg?style=for-the-badge
[stars-url]: https://github.com/objz/rmcl/stargazers
[issues-shield]: https://img.shields.io/github/issues/objz/rmcl.svg?style=for-the-badge
[issues-url]: https://github.com/objz/rmcl/issues
[license-shield]: https://img.shields.io/github/license/objz/rmcl.svg?style=for-the-badge
[license-url]: https://github.com/objz/rmcl/blob/master/LICENSE