1. Host a server. Doesn't matter if it's singleplayer, LAN, or internet.
2. Open the console by pressing ~
3. Type serverCmd and press the tab key
4. Repeat pressing Tab until you find an interesting cmd. Open chat, type / followed by whatever is after serverCmd, then press enter. For example, if it was serverCmdHug, you'd type /hug.