--- layout: docs title: Commands Overview · Docs · MSM tab: docs docsitem: commands-overview --- Commands ======== The Minecraft Server Manager script has different options or commands you can invoke by adding more words after it on the command line. For this command documentation, required phrases are written as is (i.e. `start`), required variables are denoted by angle bracket placeholders (i.e. ``), and optional phrases are denoted by square brackets (i.e `[now]`.) A variable placeholder should be **replaced** with a string as required (and described) by each individual command. You can always get a quick list of commands by typing `msm help`, which outputs the following info: $ msm help Usage: msm command: --Setup Commands------------------------------------------------ server list List servers server create Creates a new Minecraft server server delete Deletes an existing Minecraft server server rename Renames an existing Minecraft server --Server Mangement Commands------------------------------------- start Starts a server stop [now] Stops a server after warning players, or right now restart [now] Restarts a server after warning players, or right now status Show the running/stopped status of a server connected List a servers connected players worlds list Lists the worlds a server has worlds load Creates links to worlds in storage for a server worlds ram Toggles a world's "in RAM" status worlds todisk Synchronises any "in RAM" worlds to disk a server has worlds backup Makes a backup of all worlds a server has worlds on|off Activate or deactivate a world, inactive worlds are not backed up logroll Move a server log to a gziped archive, to reduce lag backup Makes a backup of an entire server directory jar [] Sets a server's jar file console Connects to the interactive console. Access may be limited config [ ] Lists server settings, or sets a specific setting. --Server Pass Through Commands---------------------------------- wl on|off Enables/disables server whitelist checking wl add|remove Add/remove a player to/from a server's whitelist wl list List the players whitelisted for a server bl player add|remove Ban/pardon a player from/for a server bl ip add|remove Ban/pardon an IP address from/for a server bl list Lists the banned players and IP address for a server op add|remove Add/remove operator status for a player on a server op list Lists the operator players for a server gm survival|creative Change the game mode for a player on a server kick Forcibly disconnect a player from a server say Broadcast a (pink) message to all players on a server time set|add Set/increment time on a server (0-24000) toggledownfall Toggles rain and snow on a server give [amount] [data] Gives an entity to a player xp Gives XP to, or takes away (when negative) XP from, a player save on|off Enable/disable writing world changes to file save all Force the writing of all non-saved world changes to file cmd Send a command string to the server and return cmdlog Same as 'cmd' but shows log output afterwards (Ctrl+C to exit) --Jar Commands-------------------------------------------------- jargroup list List the stored jar files. jargroup create Create a new jar group, with a URL for new downloads jargroup delete Delete a jar group jargroup rename Rename a jar group jargroup changeurl Change the download URL for a jar group jargroup getlatest Download the latest jar file for a jar group --Global Commands----------------------------------------------- start Starts all active servers stop [now] Stops all running servers restart [now] Restarts all active servers version Prints the Minecraft Server Manager version installed config Displays a list of the config values used by MSM [op]: http://www.minecraftwiki.net/wiki/Operator [survival]: http://www.minecraftwiki.net/wiki/Survival [creative]: http://www.minecraftwiki.net/wiki/Creative [we-snapshots]: http://wiki.sk89q.com/wiki/WorldEdit/Snapshots [active-vs-inactive]: https://github.com/marcuswhybrow/minecraft-server-manager/wiki/Active-vs-Inactive-Servers