How to Install a Fabric Server
Fabric is the fast, light way to run a modded Minecraft server. Download the launcher, drop in Fabric API plus a couple of performance mods, and you get a snappy server that boots in seconds with Loading N mods ... done in the console.
Fabric Loader scans the mods/ folder at boot and resolves dependencies in order, which is why fabric-api must be present before anything that needs it. Keep server-side-only mods (Lithium, FerriteCore, spark) here so vanilla clients can still connect, and put any content mods on both the server and every player.
Quick answers
+What is the difference between Fabric and Forge?
+Do I always need Fabric API?
+Why won't my server start?
+How much RAM should I give it?
+Can players use a vanilla client?
+Where do I set the world and player limit?
The loader, the API and the version lock
The server jar and the loader are two different downloads
Fabric gives you a launcher that pulls the loader, and the game server itself still has to be there. Running the loader against a missing or mismatched server jar is the usual first failure, and the log says so plainly in its first ten lines.
Most mods need Fabric API as well
Fabric API is a separate mod file, not part of the loader, and a mod list that quietly does nothing on startup is usually a missing API. Install it first and update it at the same time you update the loader, because a stale API breaks mods that did not change.
Every mod is locked to one game version
A mod built for one version will refuse to load on the next, so upgrading the server means checking every mod before the upgrade rather than after. Keep the working mods folder as a copy before you touch anything, because rolling back a world is much harder than rolling back a folder.
Blocks and items in this guide
Target is named in the guide above. Look them up in the item database.