The Fabric command line tools (CLI) can be used by mod developers to generate new mods directly from your terminal. If you happen to find an issue please make sure to report it on our GitHub page.
deno install -A -n fabric https://fabricmc.net/cli
To update the Fabric command line tools run:
If you wish to remove the Fabric CLI tools run:
deno uninstall fabric
The Fabric CLI tools currently offer one main sub-command,
init sub-command can be used to generate a customised template mod. To generate a new mod in the current directory, the following command can be used:
You can optionally pass a directory path, if the directory does not exist it will be created.
fabric init MyCoolMod
If you wish to accept all of the default values you can pass the
-y argument. The directory name is then used to infulence the mod name.
fabric init MyCoolMod -y
Run without installing
If you do not wish to install the Fabric CLI tools to your system, you can use deno to run it directly like so:
deno run https://fabricmc.net/cli init
Deno is secure by default, so will ask for permission before making any changes to your system.