Polymerium
Advanced

CLI Reference

The trident command-line tool — manage instances, mods, accounts, and more from the terminal.

Installation

The CLI (trident) is included with Polymerium. It's also available as a standalone .NET tool:

dotnet tool install --global Trident.Cli

Global Options

OptionDescription
--home <path>Override the data directory
--jsonOutput results as JSON
--no-interactiveDisable interactive prompts
--verbose / --debugIncrease output verbosity

Instance Commands

Create an Instance

trident instance create my-modpack --version 1.21.4 --loader fabric

Options:

  • --version — Minecraft version (required)
  • --loader — Loader name: fabric, forge, neoforge, quilt

List Instances

trident instance list

Inspect an Instance

trident instance inspect my-modpack

Shows version, loader, mod count, deploy status, and more.

Deploy (Build) an Instance

trident instance build my-modpack

Runs the full deploy pipeline. Equivalent to clicking "Deploy" in the GUI.

Launch an Instance

trident instance run my-modpack

Deploys if needed, then launches Minecraft.

Export a Modpack

trident instance export my-modpack --format modrinth --output ./release/

Supported formats: trident, curseforge, modrinth, multimc.

Import a Modpack

trident instance import ./my-pack.mrpack

Auto-detects the format.

Delete an Instance

trident instance delete my-modpack

Package Commands

Search for Mods

trident package search "sodium"

Add a Mod

trident package add modrinth:sodium

The purl format is repository:project-id or repository:project-id@version-id.

List Installed Mods

trident package list --instance my-modpack

Enable / Disable a Mod

trident package enable modrinth:sodium --instance my-modpack
trident package disable modrinth:sodium --instance my-modpack

View Available Versions

trident package version list modrinth:sodium

Pin a Specific Version

trident package version set modrinth:sodium <version-file-id>

Loader Commands

List Loaders for an Instance

trident loader list --instance my-modpack

Change the Loader

trident loader set my-modpack --loader neoforge --version 21.4.0

Account Commands

Add a Microsoft Account

trident account add

Launches the Device Code Flow in the terminal.

Add an Offline Account

trident account add-offline --username Steve

List Accounts

trident account list

Remove an Account

trident account remove <uuid>

Repository Commands

List Configured Repositories

trident repository list

Check Repository Status

trident repository status

Add a Repository

trident repository add my-repo https://api.example.com

MCP Mode

Start an MCP server for AI agent integration:

trident --mcp

See MCP Mode → for details.

On this page