You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`-u`, `--unity-version <unityVersion>` The Unity version to get (e.g. `2020.3.1f1`, `2021.x`, `2022.1.*`, `6000`). If specified, it will override the version read from the project.
163
166
-`-c`, `--changeset <changeset>` The Unity changeset to get (e.g. `1234567890ab`).
164
167
-`-a`, `--arch <arch>` The Unity architecture to get (e.g. `x86_64`, `arm64`). Defaults to the architecture of the current process.
165
-
-`-b`, `--build-targets <buildTargets>` The Unity build target to get (e.g. `iOS,Android`).
166
-
-`-m`, `--modules <modules>` The Unity module to get(e.g. ios,android).
168
+
-`-b`, `--build-targets <buildTargets>` The Unity build target to get/install as comma-separated values (e.g. `iOS,Android`).
169
+
-`-m`, `--modules <modules>` The Unity module to get/install as comma-separated values (e.g. `ios,android`).
167
170
-`-i`, `--install-path <installPath>` The path to install the Unity Editor to. By default, it will be installed to the default Unity Hub location.
168
171
-`--verbose` Enable verbose logging.
169
172
-`--json` Prints the last line of output as JSON string.
-`-t`, `--build-target <buildTarget>` The Unity build target to switch the project to (e.g. `StandaloneWindows64`, `StandaloneOSX`, `iOS`, `Android`, etc).
237
240
-`--verbose` Enable verbose logging.
238
241
239
-
Opens a specific Unity project with the latest Unity 6 version:
242
+
Opens a specific Unity project with the latest Unity 6 version and switches the active platform to Android:
-`--unity-editor <unityEditor>` The path to the Unity Editor executable. If unspecified, `--unity-project` or the `UNITY_EDITOR_PATH` environment variable must be set.
257
260
-`--unity-project <unityProject>` The path to a Unity project. If unspecified, the `UNITY_PROJECT_PATH` environment variable will be used, otherwise no project will be specified.
258
261
-`--log-name <logName>` The name of the log file.
259
-
-`<args...>` Arguments to pass directly to the Unity Editor executable.
260
262
-`--verbose` Enable verbose logging.
263
+
-`<args...>` Arguments to pass directly to the Unity Editor executable.
261
264
262
265
```bash
263
266
unity-cli run --unity-project <path-to-project> -quit -batchmode -executeMethod StartCommandLineBuild
0 commit comments