You select two corners, create a portal id, attach commands, choose how the portal and players trigger it by entering the region.