Skip to content

CLI Users

Agora CLI reference

The Agora CLI is an advanced tool for AI agents and commandline familiar users. We do not recommend it for most users.

The agora binary exposes the same core instance, catalog, health, launch, snapshot, runtime, install, and community-plugin services used by the desktop application. It is intended for advanced users, support diagnostics, scripting, and AI assistant apps.

The CLI can modify the same data used by the desktop application. Read the safety section before experimenting.

Build or install

The desktop app includes the CLI: agora.exe in the install folder on Windows and beside Agora Launcher.exe in the portable ZIP, Agora Launcher.app/Contents/MacOS/agora on macOS, and /usr/bin/agora from the Linux packages. Settings → Services → AI assistant shows its exact path. It is not added to PATH, so call it by that path or add it yourself. The standalone agora-cli-* archives on the release page are for machines without the desktop app.

To build it from source, from the repository root:

cargo build -p agora-cli

The development binary is written under Cargo's target directory:

target/debug/agora

To install it into Cargo's binary directory:

cargo install --path crates/agora

Confirm the installed interface:

agora --version
agora --help

Safety first

Before running a modifying command, print the paths Agora resolved:

agora paths

For experiments, use an isolated data root:

agora --data-dir ./tmp/agora-cli-test paths

Keep these rules in mind:

  • The default data root may be shared with the desktop application.
  • The desktop app and the CLI can run at the same time. An instance one of them is changing is locked, and the other waits up to 30 seconds and then names who holds it; the desktop app reloads an instance the CLI changed. Avoid editing the same instance setting from both at once: the last save wins.
  • Use --dry-run on install, remove, and update operations before executing a complex plan.
  • Create a snapshot before manual or high-risk changes.
  • Use disposable instances when learning destructive commands.
  • instance delete moves the instance to Recently deleted, where it can be restored for 30 days; then it goes to the OS trash. snapshots restore, snapshots delete, lockfile import, and some install conflict choices can replace or remove files.
  • Never place access tokens or account codes in command history, log files, or bug reports.
  • --data-dir isolates files under the Agora data root, but Microsoft credentials use the operating-system credential store. auth status, auth login, and auth logout therefore inspect or change the same credential entry used by the desktop app. The exception is a portable copy (a portable.txt beside the executable, with no AGORA_DATA_DIR override), which never uses the operating-system store and keeps its credentials encrypted in its own data folder.

Global syntax

agora [GLOBAL OPTIONS] <COMMAND> [COMMAND OPTIONS]

Global options:

OptionPurpose
--data-dir <PATH>Override the Agora data root. Without it the CLI resolves the root exactly as the desktop app does, so AGORA_DATA_DIR and a portable.txt marker beside the executable apply to both
--jsonShorthand for --output json
`--output <humanjson>`
--registry-repo <OWNER/REPO>Override the catalog repository for development or testing
--log-file <PATH>Append CLI diagnostics to a chosen file
--helpShow help
--versionShow the CLI version

Human output is the default. Prefer --output json for scripts.

NDJSON is not a public output format. Commands return one ordinary JSON value when JSON output is selected. Line-delimited JSON-RPC is available only through agora mcp serve --stdio.

Progress and diagnostic messages may be written to standard error while command results are written to standard output. Scripts should capture the streams separately.

A ten-minute tour

Inspect the environment:

agora paths
agora registry status
agora list-instances

Synchronize the signed catalog:

agora registry sync

Create a disposable instance:

agora instance create "CLI Test" \
  --mc-version 1.21.1 \
  --loader fabric \
  --loader-version 0.16.10

Use list-instances to obtain the generated instance ID:

agora list-instances

Search the curated catalog:

agora mod search sodium --content-type mod --mc-version 1.21.1

Resolve an install without changing files:

agora mod install sodium <INSTANCE_ID> --dry-run

Execute only after reviewing the plan:

agora mod install sodium <INSTANCE_ID>

Check health and launch:

agora health <INSTANCE_ID>
agora launch <INSTANCE_ID> --timings

Inspect and install a community plugin:

agora plugin list
agora plugin preview package ./example-plugin.zip
agora plugin install package ./example-plugin.zip

Command map

Discovery and paths

CommandPurpose
agora pathsPrint resolved application, database, cache, runtime, and instance paths
agora list-instancesList local instances
agora get-instance <ID>Print one instance
agora inventory <INSTANCE>Inspect installed content
agora health <INSTANCE>Run the local health scanner

Catalog

CommandPurpose
agora registry statusInspect the cached catalog and its active state
agora registry syncDownload and verify the latest signed catalog
agora syncConvenience alias for catalog synchronization

Use --registry-repo only for an intentional development or sandbox catalog. A different repository changes the trust and governance boundary.

Registry review and governance

These commands only read. They never vote, and they never post to GitHub.

CommandPurpose
agora registry under-reviewList registry items under review, lowest score first
agora registry reviews <ITEM>Show the curator reviews recorded for one item
agora registry audit-log [--limit N]Show recent audit log entries, newest first (1-1000, default 200)
agora registry resolutions [--limit N]Show recent triage resolutions (1-1000, default 50)
agora governance summary <ITEM>Show the vote counts and status for one item
agora governance events [--item <ITEM>] [--limit N]List governance events, newest first (1-1000, default 100)
agora governance configShow the governance repository and environment this build uses
agora governance diagnosticsRun the governance setup checks, local and GitHub

These queries read the installed registry, so they fail with an error when none is installed; run agora registry sync first. A registry database that cannot be read is an error too, never an empty list. An empty list means there is genuinely nothing to show. governance diagnostics prints one line per check and exits with status 1 when any check fails. Its GitHub checks are read-only requests. When GitHub is unreachable or you are not signed in, those checks report their own failure rather than passing.

Instances

agora instance create
agora instance clone
agora instance rename
agora instance lock
agora instance unlock
agora instance repair-loader
agora instance recommend-memory
agora instance delete
agora instance deleted
agora instance restore
agora instance purge
agora instance health <INSTANCE_ID> | --all
agora instance revert <INSTANCE_ID>
agora instance loader-version <INSTANCE_ID> <VERSION> [--yes]
agora instance java <INSTANCE_ID> [--path <FILE> | --clear-path] [--memory <MB>] [--jvm-args <ARGS>]
agora instance wrapper <INSTANCE_ID> [<COMMAND> | --clear]
agora instance window <INSTANCE_ID> [<WIDTH>x<HEIGHT> | --clear]
agora instance hooks <INSTANCE_ID> [--pre <COMMAND>] [--post <COMMAND>] [--env NAME=VALUE ...] [--clear]
agora instance notes <INSTANCE_ID> [<TEXT> | --clear]
agora instance group <INSTANCE_ID> [<NAME> | --clear]
agora instance share <INSTANCE_ID> [--options on|off] [--servers on|off]

Examples:

agora instance recommend-memory <INSTANCE_ID>
agora instance lock <INSTANCE_ID>
agora instance clone <SOURCE_ID> "Debug Copy" --no-saves
agora instance health --all
agora instance java <INSTANCE_ID> --memory 6144 --jvm-args "-Dexample.flag=true"
agora instance wrapper <INSTANCE_ID> "mangohud --dlsym"

Clone flags can omit saves, mods, resource packs, shader packs, screenshots, configuration, servers.dat, or options. Hard-link and symlink modes change filesystem behavior and should be used only when the destination and source relationship is understood.

Locking prevents ordinary content mutation. Unlock explicitly before applying intended changes.

Deleted instances wait in Recently deleted for 30 days. instance deleted lists them with their entry ID (the ID to pass to restore and purge, which is not the instance ID), name, deletion time, and size. instance restore brings one back with its files and records; if its original ID has been taken, it returns under a new one and says so. instance purge sends one to the OS trash now and asks first unless you pass --yes; Agora cannot restore it afterwards, though the OS trash may still hold the files. Agora also runs the same 30-day cleanup when an instance command starts, so expired entries reach the trash without the desktop app open.

agora --json instance deleted
agora instance restore <ENTRY_ID>
agora instance purge <ENTRY_ID> --yes

instance health runs the same cached health check the desktop app uses. With --all it checks every instance, prints the whole table, and then exits nonzero if any instance is red or cannot be read. instance revert returns an unlocked instance to the snapshot taken when it was last locked, and takes an undo point first. It refuses an instance that was never locked.

instance loader-version shows the current loader, the compatible versions for the enabled mods, and the recommendation, then asks before switching. A version outside the compatible list is refused before anything changes. --yes skips the question.

instance java with no options shows the current settings. --path must name an existing file, and --clear-path goes back to the global Java setting. --memory is in MB; Agora keeps heap sizes between 2048 and 32768 and says so when it adjusts one. Setting memory makes the choice manual, as creation does. --jvm-args replaces the instance's arguments.

instance wrapper sets the command the game is launched under, for example a frame-timing overlay. It is checked the way the launcher reads it, so an unmatched quote is refused. An empty command or --clear removes it.

instance window sets the size the game window opens at, for example 1280x720; each side must be between 200 and 16384. --clear goes back to the global default (agora_window_size in settings), and without either the game picks its own size. It applies to direct launch; the official launcher keeps the resolution set on its own installation.

instance hooks sets a command run in the instance folder before a direct launch (if it fails, the game is not started), a command run after the game exits, and environment variables for the game and both commands. Commands are split on spaces with quotes respected; no shell is used. Both get INST_NAME, INST_ID, INST_DIR, INST_MC_DIR and INST_JAVA, the same variables Prism Launcher provides. An option replaces only what it names; --env replaces all variables; --clear removes everything.

instance notes keeps free-form text with the instance, in plain text in its manifest. instance group files the instance under a group on My Instances. instance share keeps game settings (options.txt, except resource packs and other per-instance keys) and the server list the same across every instance that shares them: the shared copy is written in before each launch and taken back when the game closes. The first instance to share provides the shared copy.

Worlds and servers

agora world list <INSTANCE_ID>
agora world rename <INSTANCE_ID> <WORLD_FOLDER> <NAME>
agora world copy <INSTANCE_ID> <WORLD_FOLDER>
agora world delete <INSTANCE_ID> <WORLD_FOLDER> [--yes]
agora world export <INSTANCE_ID> <WORLD_FOLDER> --out <FILE.zip>
agora world import <INSTANCE_ID> <FILE.zip>
agora server list <INSTANCE_ID> [--ping]
agora server add <INSTANCE_ID> <ADDRESS> [--name <NAME>]
agora server remove <INSTANCE_ID> <POSITION>

A world is named by its folder under saves/, which world list shows. world rename changes the name shown in game and keeps the folder, so data pack choices and launch --world keep pointing at it. world delete moves the world to the system recycle bin and asks first unless you pass --yes. world import accepts a zip holding the world at its root or inside one folder, and picks a free folder name.

server edits the game's own multiplayer list (servers.dat), keeping the icons and other details the game stored. Positions start at 1, in the order server list prints. --ping also asks each server whether it is online, with its player count and latency, using the game's own status protocol (Minecraft 1.7 and later). Servers reachable only through a DNS SRV record show as offline. Pinging is covered by Lockdown Mode and the Server status switch on the Privacy page.

Logs, proxy and skins

agora log list <INSTANCE_ID>
agora log share <INSTANCE_ID> [--path logs/latest.log] [--preview] [--yes]
agora proxy show | system | none
agora proxy set <URL> [--username <NAME>]
agora skin show
agora skin wear <FILE.png> [--slim]
agora skin reset
agora skin cape <NAME | none>

log share uploads the latest game log or a recent crash report to mclo.gs and prints the link. User folder names, anything shaped like a token and the signed-in account's own token are removed first; --preview prints exactly what would be sent. It asks before uploading unless --yes, and is covered by Lockdown Mode and the Log sharing switch.

proxy sets how Agora's own requests reach the internet: system uses the HTTPS_PROXY, HTTP_PROXY and ALL_PROXY environment variables (the default), none connects directly, and set takes an http, https, socks5 or socks5h URL. A password is read from the AGORA_PROXY_PASSWORD environment variable and kept in the operating-system credential store. The change applies the next time Agora starts. Minecraft itself does not use this proxy.

skin changes the active Microsoft account's skin and cape, as changing them on minecraft.net would. A skin must be a 64×64 (or 64×32) PNG.

All of these refuse to run while the game has the instance open, because Minecraft rewrites both files when it closes.

Mods and content

agora mod list <INSTANCE>
agora mod search <QUERY>
agora mod install <PROJECT> <INSTANCE>
agora mod remove <PROJECT> <INSTANCE>
agora mod update <INSTANCE> <ITEM>
agora mod update-all <INSTANCE>
agora mod pin <INSTANCE> <FILE>
agora mod unpin <INSTANCE> <FILE>
agora mod changelog <INSTANCE> <FILE>
agora mod enable <INSTANCE> <FILE> [--with-deps]
agora mod disable <INSTANCE> <FILE>
agora mod worlds <INSTANCE> <FILE> --worlds <A,B> | --all
agora mod sync-datapacks <INSTANCE>
agora mod graph <INSTANCE>
agora mod orphans <INSTANCE>
agora mod why <INSTANCE> <FILE>
agora mod disable-plan <INSTANCE> <FILE>

Examples:

agora mod graph <INSTANCE_ID>
agora mod why <INSTANCE_ID> <FILE>
agora mod enable <INSTANCE_ID> <FILE> --with-deps

Common planning options:

OptionMeaning
--dry-runResolve and print the plan without executing
--include-optional <A,B>Include named optional dependencies
--exclude-optionalExclude all optional dependencies
--replace-conflictsChoose replacement for every resolvable conflict
--abort-conflictsAbort when any conflict remains
--remove-anywaymod remove only: remove the file even though an installed mod still requires it
--allow-replacePermit replacement of existing files
--skip-health-scanSkip the post-operation health gate

--replace-conflicts is broad. Review a dry-run first, especially on an established instance.

mod remove stops when the file is a required dependency of another installed mod. --remove-anyway accepts that for the file being removed (and nothing else), prints a warning naming the mods that lose their dependency, and leaves the instance with a health alert until the dependency is restored. It cannot be combined with --abort-conflicts.

The default source is Agora's curated strategy. Use --source modrinth only when the optional Modrinth integration and its network permissions are enabled.

mod enable and mod disable fail with a clear error and a nonzero exit when the named file does not exist. Confirm the filename with mod list if the error is unexpected.

mod graph lists every dependency between installed mods that are switched on. mod orphans lists dependency-installed mods that no user-installed mod still needs. mod why traces one file back to the mod that asked for it. mod disable-plan shows which installed mods declare a dependency on a file, so you can see what switching it off would affect; it changes nothing. These four only read the instance.

mod enable --with-deps also re-enables the required dependencies of the file that are switched off. It is best-effort, as in the desktop app: a dependency that cannot be re-enabled is reported as a warning, and the file itself is still enabled.

Minecraft only loads data packs from inside a world, so Agora copies enabled data packs into the instance's worlds before each launch and after installs and removals. mod worlds limits one data pack to the named world folders (or --all to go back to every world), and mod sync-datapacks runs the copy now, for example for a world created since the last launch. Agora only removes or replaces data pack files it placed itself.

Packs, import, and export

CommandPurpose
agora import <PATH>Import a supported local pack
agora import --url <MRPACK_URL>Download and import a Modrinth pack URL
agora pack install <PATH> <INSTANCE>Install an Agora pack manifest into an existing instance
agora pack versions <PACK>List a curated registry pack's locked releases, newest first
agora pack curated <PACK> <INSTANCE> --release <VERSION>Install a locked release (the instance must be on its Minecraft version and loader)
agora pack curated <PACK> <INSTANCE>Install the pack's flexible recipe against the instance's own Minecraft version
agora pack export <INSTANCE> --format mrpack|agora|lockfile --out <FILE>Export an instance as a Modrinth pack, an Agora pack, or a lockfile
agora pack review <FILE>Show what importing a .mrpack or .agora-pack.json would do and stage the reviewed copy; prints a review id
agora pack import <REVIEW_ID> [--name <NAME>] [--import-anyway]Import exactly the copy pack review staged
agora import launchers [--root <DIR>]List Prism, CurseForge and Modrinth instances that can be imported
agora import plan <KEY>... [--name <NAME>] [--no-settings]Show what importing launcher instances would copy; prints a plan fingerprint
agora import run <KEY>... [--fingerprint <HASH>]Import launcher instances (items commit independently)
agora backup export <INSTANCE> --out <DIR> [--snapshot <ID>]Write a snapshot (a new one unless --snapshot is given) to a folder as one zip
agora backup import <FILE> [--instance <INSTANCE>]Read a backup zip into an instance as a restorable snapshot
agora backup prune <INSTANCE> [--keep <N>] [--yes]Delete snapshots beyond the newest N (default 10)
agora export <INSTANCE> <DEST>Export a standalone server environment
agora pack update-preview <INSTANCE> <MRPACK>Show what a newer .mrpack would change. Changes nothing
agora pack update <INSTANCE> <MRPACK>Apply a newer .mrpack; asks for --yes and an answer to every conflict
agora migrate-data --from <PATH>Plan migration from an older CLI data root
agora migrate-data --from <PATH> --yesExecute the migration

pack export warns when an Agora pack would leave out mods that have no catalog or Modrinth source (a .mrpack bundles them). It asks first, or pass --yes to export anyway. pack import refuses a pack with hard problems whatever the flags; files that cannot be fetched stop it unless --import-anyway, which leaves exactly those out. A launcher key that two launchers share is written prism:KEY, curseforge:KEY or modrinth:KEY. A backup import never changes the live instance; restore it with snapshots restore. backup prune deletes snapshots and, without a terminal, needs --yes.

migrate-data is a dry-run unless --yes is supplied. Read every reported conflict before executing it.

pack curated plans first and installs nothing if a mod marked required has no build for the target; recommended and optional mods without one are listed as left out. Add --dry-run to print the plan without installing. Optional dependencies of the pack's mods are not added, because a CLI run cannot answer that prompt.

--symlink-saves makes imported saves depend on the original path. It is not a copy or backup.

Snapshots

agora snapshots list <INSTANCE>
agora snapshots create <INSTANCE> --label "Before update"
agora snapshots restore <INSTANCE> <SNAPSHOT_ID>
agora snapshots delete <INSTANCE> <SNAPSHOT_ID>

A restore replaces tracked instance state. Preserve valuable worlds separately and verify the intended snapshot ID before restoring.

Agora's automatic pre-launch recovery snapshot is optimized for mod, configuration, and layout recovery and does not include saves/. Full manual and transactional snapshots use a broader scope, but no local snapshot system should be the only backup for an irreplaceable world.

Loadouts

agora loadout create <INSTANCE> <NAME>
agora loadout list <INSTANCE>
agora loadout apply <INSTANCE> <NAME> [--others keep|off]
agora loadout update <INSTANCE> <NAME> [--yes]
agora loadout delete <INSTANCE> <NAME>

A loadout records the on/off state of mods, resource packs, shader packs, data packs and worlds. Applying one sets each item it records to that state. An enabled mod it does not list (one added since it was saved, say) is a choice: --others keep leaves it on and --others off switches it off. When there are such mods and no --others is given, apply refuses and names them, so nothing changes. Packs and worlds it does not list are left as they are. Apply refuses a locked instance, and an instance whose game is running or starting, and changes nothing in either case. Before switching, apply saves an undo point labelled before-loadout (only the newest is kept). loadout update saves a profile again from the instance's current setup, so a mod added since it was saved stops being unlisted. It lists what would change (added, turned on or off, or dropped because it is gone) and asks first on an interactive terminal. Without a terminal it changes nothing and names the changes; pass --yes once the person using this computer has agreed. It does not touch the instance, so a locked instance or a running game does not block it.

A loadout does not revert mod versions or configuration files.

Templates

agora template list
agora template create <NAME> [--from <INSTANCE> --include <FILE>...] [--memory <MB>] [--gc <GC>] [--java-path <FILE>] [--jvm-args <ARGS>] [--description <TEXT>]
agora template apply <TEMPLATE_ID> <INSTANCE>
agora template delete <TEMPLATE_ID> [--yes]

Examples:

agora template create "Sodium options" --from <INSTANCE_ID> --include config/sodium-options.json
agora template create "Big heap" --memory 8192 --gc low_latency
agora template apply <TEMPLATE_ID> <INSTANCE_ID>

A template keeps chosen configuration files and JVM settings so you can copy them to another instance. Only the files named with --include are captured, by path relative to the source instance; --include needs --from. A template with no files and no JVM setting is refused. Applying a template copies its files over the same paths in the target instance, and takes an undo point first when it copies any. A JVM setting the template does not name is left alone. Deleting a template asks first; without a terminal, pass --yes.

Mod bisect

agora bisect start <INSTANCE> [--suspect <FILENAME>]
agora bisect status <INSTANCE>
agora bisect apply <INSTANCE>
agora bisect good <INSTANCE>
agora bisect bad <INSTANCE>
agora bisect back <INSTANCE>
agora bisect cancel <INSTANCE>
agora bisect run <INSTANCE> [--suspect <FILENAME>]

Bisect finds the mod that breaks a launch by turning half of the enabled mods off for each round. apply switches the round's mods off and leaves the others on. Mods that depend on a switched-off mod go off with it, so a missing library is not mistaken for the culprit. You launch the game yourself, then good (the problem did not happen) or bad (it did) narrows the suspects. back undoes the last answer and tries the other half. cancel ends the bisect and puts every mod back the way it was, at any point. --suspect names a mod the crash report implicated and tests it first; it only applies when starting. run walks through the same rounds with prompts and needs an interactive terminal. A bisect does not start the game itself; you launch it. The session is kept in the instance folder, so it survives closing the terminal. start, status, good, bad and back do not move any mod files; apply and cancel do. start and apply refuse a locked instance, and start, apply and cancel refuse a game that is running or starting, changing nothing. cancel still restores a locked instance, because putting the baseline back is the way out. If run is stopped with Ctrl+C, the mods stay as the current round left them until agora bisect cancel is run.

Reproduction lockfiles

agora lockfile export <INSTANCE> --out instance.lock.json
agora lockfile verify instance.lock.json
agora lockfile repair <INSTANCE> --out repaired.lock.json
agora lockfile import instance.lock.json <INSTANCE>

A lockfile describes reproducible artifact state. It is not a backup of private world or configuration contents.

Review a lockfile's source before importing it. Hashes prove byte identity, not safety or licensing.

A lockfile exported from a vanilla instance passes lockfile verify immediately; export-then-verify is a valid round trip for vanilla and modded instances alike.

Java runtimes

agora runtime list
agora runtime inspect <JAVA_PATH>
agora runtime ensure <MAJOR>
agora runtime remove-unused

Examples:

agora runtime ensure 21
agora runtime inspect "C:\Program Files\Java\jdk-21\bin\java.exe"

Use instance recommend-memory to inspect Agora's memory estimate without changing settings.

Loader profiles

agora loader list
agora loader list --mc-version 1.21.1
agora loader install <LOADER> <MC_VERSION> <LOADER_VERSION>

Loader installation is restricted to Agora's pinned catalog. --force reinstalls a verified profile.

Instance health can identify enabled mods whose loader-version requirements are not satisfied. The desktop app provides the richest interactive candidate-selection flow; the CLI should be used with explicit versions and a follow-up health check.

Community plugins

agora plugin list
agora plugin status                         # alias for list
agora plugin preview package <PATH>
agora plugin preview development <PATH>
agora plugin install package <PATH>
agora plugin install development <PATH>
agora plugin enable <PLUGIN_ID>
agora plugin disable <PLUGIN_ID>
agora plugin remove <PLUGIN_ID>
agora plugin remove <PLUGIN_ID> --purge-data
agora plugin log <PLUGIN_ID> --lines 200
agora plugin disable-all
agora plugin settings <PLUGIN_ID>
agora plugin set <PLUGIN_ID> <KEY> <VALUE>
agora plugin check-update [PLUGIN_ID]
agora plugin update <PLUGIN_ID>
agora plugin update <PLUGIN_ID> --yes
agora plugin keygen --out <PATH> --key-id <ID>
agora plugin sign <DOCUMENT> --key <PATH> --key-id <ID>

plugin settings prints the settings a plugin declares, with their types and current values. plugin set writes one of them. The value is read as JSON (true, 42, "text"); text that is not valid JSON is taken as a plain string. Core checks the value against the type the plugin declared and refuses a wrong type or an undeclared key, so nothing is stored in that case.

plugin list reads the core-resolved install state without starting plugins. Its status column explains why an installed plugin is not runnable, including disabled plugins, incompatible host APIs, dependency problems, cycles, and recorded activation failures. plugin status is a convenience alias.

plugin preview validates a package or development folder and prints the same install preview used by the install flow. It does not install or activate anything. A package is copied into Agora's managed plugin directory; a development folder is registered in place so edits remain visible to the author.

An install that requests capabilities prints each required or optional capability, its user-facing explanation, and whether it can change data, then asks for consent. Answer y or yes to continue. --yes skips this prompt for a deliberately scripted invocation:

agora plugin install package ./example-plugin.zip --yes
agora plugin install development ./example-plugin --yes

Without --yes, a non-interactive invocation cannot grant capabilities. The CLI shows the preview and passes a negative consent answer to core, so PluginService refuses the install. This keeps scripting fail-closed; do not use --yes unless the package's preview is trusted. In JSON mode, a pending interactive preview and prompt are written to standard error; the completed plugin summary is the single JSON value on standard output.

Content providers

agora provider list
agora provider enable <PROVIDER_ID>
agora provider disable <PROVIDER_ID>
agora provider search <PROVIDER_ID> [QUERY] --content-type pack
agora provider plan-digest <PROVIDER_ID>:<PROJECT_ID>@<VERSION_ID>

provider list shows the official providers (Modrinth, Technic) and every plugin provider, with why one is unusable right now. Enabling or disabling a plugin's provider enables or disables that plugin. plan-digest resolves one pack version and prints the digest a curator pins as sha256 for a provider_pack catalog entry (see REGISTRY_CURATION_REFERENCE.md).

agora pack install --provider <PROVIDER_ID> --project <PROJECT_ID>
agora pack install --provider <PROVIDER_ID> --project <PROJECT_ID> --version <VERSION_ID> --name <NAME>
agora technic search <QUERY> --limit 20
agora technic install <SLUG>
agora technic install <SLUG> --build <BUILD> --name <NAME>
agora technic install <SLUG> --minecraft <VERSION> --loader <LOADER> --loader-version <VERSION> --sha256 <HEX>

pack install --provider installs a provider's modpack as a new instance, through the same registry the desktop uses. It cannot be combined with a manifest path and instance. --version is optional; without it the provider chooses.

Technic consent is off by default. It is stored as the technic_enabled setting, and zip packs also need allow_unverified_packs; agora settings set technic_enabled true changes it. technic search and technic install are refused while the setting is off. Solder packs install at their recommended build unless --build names one. Zip packs carry no metadata, so you must give their Minecraft version, loader, and loader version. Pass --sha256 <HEX> (64 hex digits) to check the zip download against a published SHA-256; the download fails if it does not match. Without --sha256 the CLI warns that the zip is installed unverified, and it does so before the install starts. --sha256 is refused for Solder packs. Core checks both settings on every call, whatever flags you pass.

Updates

agora instance updates <INSTANCE>
agora instance updates <INSTANCE> --apply
agora instance updates <INSTANCE> --apply --yes
agora mod pin <INSTANCE> <FILE>
agora mod unpin <INSTANCE> <FILE>
agora mod changelog <INSTANCE> <FILE>
agora pack update-preview <INSTANCE> <MRPACK>
agora pack update <INSTANCE> <MRPACK> --yes

instance updates checks every installed item against its source and lists what is newer, the same check the desktop's update panel runs, and it stores the result for the instance badge. Rows that are only notes (a newer build for another Minecraft version) or whose release date is unknown are listed but never applied. --apply plans the applicable updates as one batch with one snapshot and full rollback, and prints that plan. Nothing changes until you add --yes.

mod pin keeps one installed file out of update checks, and mod unpin lets it be offered again. Pins are stored in the instance manifest. mod changelog prints what changed between the installed file and its pending update, from the signed registry. It reports when there is no newer version or when the source published no changelog.

pack update-preview compares an .mrpack against the instance and lists the changes, the downloads, and every conflict, without changing anything. pack update applies the same merge. It refuses unless every conflict has an answer: --keep-ours <KEY> keeps the instance's file and --take-theirs <KEY> adopts the pack's file, and each key must be one the preview listed. It also refuses without --yes.

plugin check-update fetches a plugin's signed update document and reports what it means. It downloads only the metadata, never a package. With no plugin id it checks everything installed, and reports plugins with no update source rather than skipping them silently. The result distinguishes cases that a single "up to date" would blur together: a newer release that needs a newer Agora is reported as exactly that, and an installed version ahead of what the publisher lists is reported rather than downgraded.

plugin update applies what the publisher is offering. It re-checks rather than trusting an earlier result, downloads the package, verifies it against the size and SHA-256 in the signed document, and then goes through the same install path a manual install uses. A release asking for capabilities or network hosts the installed version was not granted stops and prints what is new; --yes accepts that. Development folders are never updated.

Both require the plugin system to be on. Nothing contacts a publisher until you ask it to, or until you turn on automatic checking, which is off by default.

Publishing

plugin keygen and plugin sign are author tooling. The launcher never holds a private key.

agora plugin keygen --out ./signing.key --key-id 2026-09

writes an Ed25519 private key and prints the public half as a ready-to-paste agora-plugin-update.json. It refuses to overwrite an existing file, because a signing key cannot be regenerated and overwriting one destroys the only copy. Keep it out of your repository: losing it means you cannot ship updates to existing installs, and nothing can restore that.

agora plugin sign ./updates.json --key ./signing.key --key-id 2026-09

signs an update document in place. The document does not need a signatures block beforehand — requiring a valid signature in order to produce one is a requirement nobody can meet — but everything else about it is validated first, so a bad release fails here rather than at every user who later fetches it.

See docs/plugins/publishing.md for what the signature does and does not prove.

plugin enable and plugin disable change only the installed plugin's enabled state. plugin remove removes the plugin and its log while keeping plugin data by default; add --purge-data only when that separate data-removal decision is intended. Removing a development plugin never deletes its source folder. plugin log reads the requested number of recent lines, defaulting to 200. plugin disable-all is the recovery path: it stops and disables every currently enabled plugin without removing installations or stored data.

Launching

agora launch <INSTANCE>
agora launch <INSTANCE> --timings
agora launch <INSTANCE> --yes
agora launch <INSTANCE> --world <WORLD_FOLDER>
agora launch <INSTANCE> --server <HOST[:PORT]>

--world opens a world as soon as the game starts (Minecraft 1.20 or newer), and --server joins a server (any version that can join servers from the command line). They cannot be combined.

The CLI writes the total session duration to standard error. --timings adds individual launch-phase durations there as well.

--yes bypasses the interactive health confirmation. It does not make an unhealthy instance safe and should not be used as a generic automation default.

The CLI launches directly through Agora core. Microsoft authentication is therefore required for normal online identity.

Microsoft authentication

agora auth login
agora auth login --no-browser
agora auth status
agora auth list
agora auth switch <USERNAME_OR_UUID>
agora auth logout [--account <USERNAME_OR_UUID>]

These commands manage the Microsoft/Xbox/Minecraft identity used for direct launch. They are separate from the GitHub account used by desktop governance features.

auth login uses the Microsoft device-code flow: it prints a short code and a verification URL, opens the URL in your browser unless --no-browser is given, and then waits until you finish signing in. Press Ctrl-C to cancel. The device code and every token stay inside Agora; nothing is pasted back into the terminal.

Sessions created before Agora moved to its own Microsoft application cannot be renewed. auth status reports those as sign_in_required; run auth login once to restore direct launch. Instances and other accounts are unaffected.

More than one account can be signed in. auth login with a different account adds it and makes it the active one; the previous account stays signed in. auth list marks the active account with *, and auth switch changes which one launches use. auth logout signs out the active account, and the next signed-in account becomes active; --account signs out a particular one.

Authentication is not scoped by --data-dir. auth logout removes the shared operating-system credential entry and can sign the desktop app out even when the CLI uses a disposable data root.

Settings

agora settings list
agora settings get <KEY>
agora settings set <KEY> <VALUE>

settings set parses the value as JSON and falls back to a string. Quote strings explicitly in scripts when the distinction matters:

agora settings set launch_mode '"direct"'
agora settings set always_pre_touch false

Unknown or internal setting keys may change between releases. Prefer dedicated commands when one exists.

Crash investigation

agora crash list <INSTANCE>
agora crash inspect <INSTANCE> <FILE>
agora crash investigate <INSTANCE>
agora crash investigate <INSTANCE> --file extra-log.txt

--file may be repeated. Review logs for local paths, usernames, server addresses, tokens, or private chat before sharing output.

Guide for AI agents

agora skill

Prints, in the SKILL.md format agent tools read, how an AI agent should use this CLI: Agora's vocabulary, house rules (ask before changing anything, snapshot and dry-run first, never pass --yes on the person's behalf), the crash-diagnosis workflow, and what the exit codes mean. The text is compiled into the binary, so it matches that binary's commands, and printing it opens no Agora data. Save the output as SKILL.md in an agent's skills folder to keep it loaded, or ask the agent to run the command itself. The player-facing walkthrough is the AI assistant task guide.

Commands that stop for consent in a non-interactive session (launch on a red health check, plugin capability grants, plugin data restores) say that --yes should be passed only once the person using the computer has agreed.

MCP over standard input/output

agora mcp serve --stdio

The CLI MCP transport uses standard input/output. It is different from the desktop application's optional authenticated localhost server.

When an external client launches this command:

  • Reserve standard input and output for JSON-RPC.
  • Do not wrap it in a shell that injects banners.
  • Keep the process local.
  • Use Agora's approval and instance-locking controls for modifying tools.

The stdio transport reads one JSON-RPC request per line and writes one response per line. Notifications do not receive a response. Diagnostics remain on standard error so standard output stays protocol-only.

Structured output

Examples:

agora --output json paths
agora --output json health <INSTANCE_ID>
agora --output json registry status

Do not parse human tables. For automation:

  1. Select JSON explicitly.
  2. Check the process exit code.
  3. Capture standard error separately.
  4. Tolerate additive JSON fields.
  5. Never treat a printed success message as sufficient when the exit code is nonzero.

On a command failure in JSON mode, standard error contains an envelope shaped like:

{
  "error": "Instance 'missing' not found",
  "exitCode": 1
}

Standard output remains reserved for a successful result. Planning failures can add a structured status envelope; always compare the embedded exit code with the process exit code.

Exit codes

The CLI maps many core failures to stable semantic ranges.

Code or rangeMeaning
0Success
1Generic or unclassified failure
2Command-line usage error
7Minecraft process classified as a crash
10Local-state or database failure
11Instance locked or profile missing/corrupt
12Instance creation failure
13Catalog missing, invalid, or unsupported
20Offline
21Download or catalog-download failure
30–34Integrity, trust, archive, or disk failure
40Authentication required or expired
50Feature disabled or unavailable
60–62Official-launcher, version/loader, or Java failure
70–72Dependency, decision, or migration failure
80–82MCP rate limit, denial, or authentication failure
90–94Network-policy denial
100+Process identity or process-state failure

Scripts should still inspect structured error output because several distinct errors share a range.

Most ordinary lookups for a nonexistent instance currently return generic exit code 1, not 11.

Support checklist

When reporting a CLI problem, include:

Agora version:
Operating system:
Exact command with secrets removed:
Exit code:
Standard output:
Standard error:
Output of `agora paths` with private usernames redacted:
Instance Minecraft and loader versions:
Whether the desktop app was open:

Do not attach the whole data directory. Start with the smallest relevant output.

Source: docs/CLI.mdView on GitHub