A CLI tool for creating Minecraft modpacks using the Fabric loader.
|
||
---|---|---|
bin | ||
docs | ||
src | ||
test-pack | ||
.gitignore | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
tsconfig.json |
horizr CLI
A CLI tool for creating and maintaining Minecraft modpacks using the Fabric loader.
🎉 Features:
- Access Modrinth
- Search
- Add
- View available versions
- View dependencies
- Check for updates and view changelogs before applying them
- Export the pack to the Modrinth format (
.mrpack
) - Export the pack to the
packwiz
format - HTTP-serve the
packwiz
export for usage withpackwiz-installer
Usage
Because both pkg and nexe don’t support ES modules at the time of writing, I can‘t publish executable files.
The only way of installing is therefore npm
.
$ npm i -g @horizr/cli
Run any command with the -h
flag to see the available options.
A new pack can be initiated using horizr init <path>
.
Examples
- Activate the latest (compatible) version of Charm
$ horizr modrinth mod activate charm
# or short:
$ horizr mr mod a charm
- Activate
v4.1.1
of Charm
$ horizr modrinth mod versions charm
# `BT9G1Jjs` is the version code you are looking for.
# This output will be colored in your console.
BT9G1Jjs 4.2.0+1.18.2 (↓ 137)
featured
Name: [1.18.2] 4.2.0
Channel: release
Minecraft versions: 1.18.2
Publication: last week
https://modrinth.com/mod/pOQTcQmj/version/BT9G1Jjs
# … more versions omitted for brevity
$ horizr modrinth version activate BT9G1Jjs
Charm (4.2.0+1.18.2) was successfully activated.
Dependencies
◉ Fabric API (P7dR8mSH): any version
- Check for updates
$ horizr update
# Because Sodium's version string is not a valid SemVer,
# the publication date will instead be used for comparison.
❯ Sodium has no valid semantic version: mc1.18.2-0.4.1. The
publication date will instead be used.
Available updates
- charm Charm: 4.1.0+1.18.2 → 4.2.0+1.18.2
$ horizr update charm
Changelog for 4.2.0+1.18.2
* Added ebony wood.
* Fixed issue with Totems not always spawning or being
carried away by mobs.
# … omitted for brevity
Apply the update? [Y/n] y
Successfully updated Charm to 4.2.0+1.18.2.