saveandquit

saveandquit

Instantly saves the game and exits to the main menu. Loading the save will put you at the beginning of the current layer.
World

saveandquit takes no arguments — just type it into the developer console and press Enter.