MC Toolkit / Commands / Server Admin Command Builder / Publish Command Generator
Publish Command Generator
Build a /publish command to open your singleplayer world to LAN, with cheats, joiner game mode, and a custom port — args are positional and cascade.
3 argument paths · Minecraft 26.3 · from Mojang's own command tree
/publish/publish <allowCommands>/publish <allowCommands> <port>
Run these from an operator’s chat, a command block, or the server console.