Console Commands
The developer console gives access to admin and debugging commands for managing a game or server. Open it by pressing F1 (or the tilde key on some layouts), type a command, and press Enter. Commands are invaluable for server administration, testing, and troubleshooting.
Opening the Console
Press F1 to toggle the console window. Many commands work in both single-player and on a Dedicated Server, though some require admin permissions when connected to a server.
Useful Commands
help: lists available commands or shows detailed help for a specific command.giveself <item> <quality> <count>: spawns an item directly into your inventory.spawnentity/se: spawns an entity such as a zombie or animal, often used with a player ID.teleport/tp: moves your player to given coordinates or to another player.settime <value>: sets the in-game time; useful for skipping to day or night.weather/setweather: adjusts weather conditions for testing or convenience.kill/killall: removes nearby entities, handy for clearing a horde during testing.debugmenu/dm: toggles the debug menu and enables god-mode and flight tools.admin: manages the server admin permission list, adding or removing players.kickandban: remove disruptive players from a server, with ban supporting durations.
Cheating and Creative Modes
cm: toggles creative mode, unlocking the full creative inventory for building.dmcombined with god mode lets you fly and take no damage, ideal for map inspection.
Tips
- Use
help <command>to see the exact arguments a command expects. - Player and entity IDs shown by
listplayers(lpi) are needed for many targeted commands. - On multiplayer servers, keep the admin list tight so only trusted players can run powerful commands.
Updates Needed
This page is community-maintained and may be incomplete or out of date. Spotted something wrong, or know a detail we missed? Sign in and hit Edit to propose changes — approved edits go live and help every survivor who reads this after you. Fresh tips, updated numbers for the latest patch, and clearer step-by-step guides are always welcome.