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
`run [options] <args...>`: Run Unity Editor command line arguments (passes args directly to the editor).
222
+
223
+
-`--unity-editor <unityEditor>` The path to the Unity Editor executable. If unspecified, `--unity-project` or the `UNITY_EDITOR_PATH` environment variable must be set.
224
+
-`--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.
225
+
-`--log-name <logName>` The name of the log file.
226
+
-`--log-level <logLevel>` Override the logger verbosity (`debug`, `info`, `minimal`, `warning`, `error`). Defaults to `info`.
227
+
-`--verbose` Enable verbose logging. (Deprecated, use `--log-level <value>` instead)
228
+
-`<args...>` Arguments to pass directly to the Unity Editor executable.
229
+
230
+
> [!NOTE]
231
+
> When setting the `--log-level` option to `minimal`, only the unity telemetry logs will be shown in the console output. All other logs will be written to the log file. This option is only supported when running the command locally in the terminal. ***This options is still experimental and may change in future releases.***
232
+
>
233
+
> When running in CI environments the logger will automatically print the full logs to the console no matter the log level.
234
+
235
+
```bash
236
+
unity-cli run --unity-project <path-to-project> -quit -batchmode -executeMethod StartCommandLineBuild
`run [options] <args...>`: Run Unity Editor command line arguments (passes args directly to the editor).
280
-
281
-
-`--unity-editor <unityEditor>` The path to the Unity Editor executable. If unspecified, `--unity-project` or the `UNITY_EDITOR_PATH` environment variable must be set.
282
-
-`--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.
283
-
-`--log-name <logName>` The name of the log file.
284
-
-`--log-level <logLevel>` Override the logger verbosity (`debug`, `info`, `minimal`, `warning`, `error`). Defaults to `info`.
285
-
-`--verbose` Enable verbose logging. (Deprecated, use `--log-level <value>` instead)
286
-
-`<args...>` Arguments to pass directly to the Unity Editor executable.
287
-
288
-
> [!NOTE]
289
-
> When setting the `--log-level` option to `minimal`, only the unity telemetry logs will be shown in the console output. All other logs will be written to the log file. This option is only supported when running the command locally in the terminal. ***This options is still experimental and may change in future releases.***
290
-
>
291
-
> When running in CI environments the logger will automatically print the full logs to the console no matter the log level.
302
+
`editor-logs`: Prints the path to the Unity Editor log files.
292
303
293
304
```bash
294
-
unity-cli run --unity-project <path-to-project> -quit -batchmode -executeMethod StartCommandLineBuild
0 commit comments