Use the parameters at https://terraria.gamepedia.com/Server#Command_line_parameters to automatically generate the world if it's not found, eliminating the need for interactive generation