From the main menu, click “Play” and follow the prompts to create a new world.
Click on the world’s name after creation and then on “Host Online”.
An invite code will appear that you can share with your friends as well as the “Launch Game” button to start the online session.