Creating project with script

Hello,

I have got a question, if it is possible to create Unity project without opening Unity?

What I have done so far is, that I create Unity project(in Unity), then I write initializing script(in Visual Studio). Then this script I insert into empty object in Unity and after hitting play button(Unity), game is created.

I would like to eliminate need to open unity and creating of empty object, which will be assigned initializing script.

I just want create some scripts in Visual Studio(VS), link some libraries and after hitting debug button in VS, I would like to see my game.

Any help or idea is very appreciated.

Sure, you can get close (maybe even exactly what you want). See here:

You can create a project, execute some methods (to create your cube and attach the script), and build a target, all from the command line. You could then assign that target exe to the VS project debug path.