Skip to content

Commands

andre-carbajal edited this page Oct 20, 2026 · 1 revision

Complete command reference

Run packwiz from the modpack folder (the one containing pack.toml). This reference lists the commands and subcommands in the current packwiz command tree. To see the arguments and options supported by your installed version, append --help:

packwiz --help
packwiz <command> --help
packwiz modrinth add --help

Text in angle brackets (< >) is a placeholder that you must replace. For example, do not type <name> literally.

Create and maintain a pack

Command Alias Purpose
packwiz init — Create a modpack.
packwiz list — List pack files; options filter by side, provider, or pinned status.
packwiz update <name> or packwiz update --all upgrade Update one managed file or all files with a supported updater.
packwiz link [<name>] — Add a reference to the other platform for an installed file. Use --all to process all files that need a link.
packwiz pin <name> hold Prevent packwiz from automatically updating a file.
packwiz unpin <name> unhold Allow automatic updates for a file again.
packwiz remove <name> delete, uninstall, rm Remove an externally managed file from the pack.
packwiz refresh — Rebuild the index after manual changes.
packwiz rehash <hash-format> — Migrate hashes to sha1, sha256, or sha512.
packwiz serve server Start a local HTTP server to test the pack.

To find the <name> accepted by these commands, run packwiz list --slug. Use the identifier shown, without the .pw.toml extension.

Link a file with packwiz link

link records references on CurseForge and Modrinth for the same installed file. Packwiz verifies that the bytes are identical; similar file names or version numbers are not enough.

# Automatically search for the same file on the other platform
packwiz link sodium

# Add any missing references for all mods
packwiz link --all

# Specify a project or version URL when there is more than one match
packwiz link sodium --modrinth <URL-from-Modrinth>
packwiz link sodium --curseforge <URL-from-CurseForge>

For an individual link, you can provide --modrinth or --curseforge, but not both. A supplied URL must point to a file with identical contents. For exports, resolving missing file references, or allowing export exceptions, see Importing and exporting.

Add, import, and export content

CurseForge (packwiz curseforge; aliases: cf, curse)

Command Alias Purpose
packwiz curseforge add [URL/slug/search] install, get Add a project from a URL, slug, ID, or search.
packwiz curseforge detect — Detect JAR files in the mods folder (experimental).
packwiz curseforge import <modpack-path> — Import a modpack ZIP or an installed instance's metadata JSON.
packwiz curseforge export — Export the modpack as a CurseForge ZIP.
packwiz curseforge open <name> doc Open a CurseForge file page in the browser.

Modrinth (packwiz modrinth; alias: mr)

Command Alias Purpose
packwiz modrinth add [URL/slug/search] install, get Add a project from a URL, slug, ID, or search.
packwiz modrinth import <modpack-path> — Import a Modrinth .mrpack modpack.
packwiz modrinth export — Export the modpack as a .mrpack.

GitHub (packwiz github; alias: gh)

Command Alias Purpose
packwiz github add [URL/slug] install, get Add a project published in a GitHub repository.

Direct downloads

Command Alias Purpose
packwiz url — Show the available direct-download subcommands.
packwiz url add <name> <URL> install, get Add a file from a direct URL on a site without a native integration.

Minecraft, mod loader, and settings

Command Alias Purpose
packwiz migrate — Show the migration subcommands.
packwiz migrate minecraft <version> mc Migrate the pack's Minecraft version.
packwiz migrate loader <version/latest/recommended> — Migrate the pack's mod-loader version.
packwiz settings — Show the settings subcommands.
packwiz settings acceptable-versions <versions> av View or manage the Minecraft versions accepted by the pack.

Help and utilities

Command Alias Purpose
packwiz help [command] — Show general help or help for a specific command. You can also use --help.
packwiz utils — Show the packwiz utility commands.
packwiz completion — Show how to generate shell completion.
packwiz completion bash — Generate completion for Bash.
packwiz completion fish — Generate completion for Fish.
packwiz completion powershell — Generate completion for PowerShell.
packwiz completion zsh — Generate completion for Zsh.
packwiz utils markdown md Generate Markdown documentation for every command.

Global options

These options can be used with commands that support them:

  • --pack-file <path>: use a different pack file (default: pack.toml).
  • --meta-folder <folder>: choose where metadata files are stored.
  • --meta-folder-base <folder>: change the base path used to resolve the metadata folder.
  • --cache <folder>: choose where downloaded files are cached.
  • --config <path>: use a specific configuration file.
  • --yes / -y: automatically choose the default or affirmative response; this may select an unwanted result in searches.