Search Unity

Question Could not open project via command line

Discussion in 'Unity Hub' started by Aka_ToolBuddy, Jan 21, 2021.

  1. Aka_ToolBuddy

    Aka_ToolBuddy

    Joined:
    Feb 25, 2014
    Posts:
    543
    Hi

    The project to open is already in the projects list when opening Unity Hub. It has a valid Unity version associated to it. I can open it with no issue by using the Unity Hub UI. Now I want to open it via command line.

    I want to use the Unity Hub exe in the command, and not the Unity exe, because the Unity version used for the project will evolve with time.

    I did not find any documentation explaining how to open a project using Unity Hub via CLI. The --headless --help shown nothing but the --help command.

    I tried to use the "<pathToUnityHubExe> -projectPath <pathToProject>", but it opens Unity Hub and that's it.

    Any help is welcomed.

    Thanks
     
    io-games likes this.