Create a scene from script

Hello there, I need to be able to create a new scene and define the game objects for it at a Editor script.

How could I do this?

Thanks.

Look this up. Scene are created with YAML and here is the docs to it:

http://docs.unity3d.com/Manual/TextualSceneFormat.html

Sorry people, I did not search before ask here, sorry again.

For those seeking the same question, you can use the methods EditorApplication.NewScene and EditorApplication.SaveScene.