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
@@ -54,36 +54,97 @@ With options always using double dashes (`--option`) and arguments passed direct
54
54
-`unity-cli [command] --json` to get the output in JSON format (if supported).
55
55
-`unity-cli [command] --verbose` to enable verbose logging for debugging.
56
56
57
+
```bash
58
+
unity-cli --help
59
+
```
60
+
57
61
#### Auth
58
62
59
-
-`unity-cli license-version`: Print the Unity License Client version.
60
-
-`unity-cli activate-license [options]`: Activate a Unity license.
63
+
##### License Version
64
+
65
+
-`license-version`: Print the Unity License Client version.
66
+
67
+
```bash
68
+
unity-cli license-version
69
+
```
70
+
71
+
##### Activate License
72
+
73
+
-`activate-license [options]`: Activate a Unity license.
61
74
-`-l`, `--license`: License type (personal, professional, floating). Required.
62
75
-`-e`, `--email`: Email associated with the Unity account. Required when activating a personal or professional license.
63
76
-`-p`, `--password`: Password for the Unity account. Required when activating a personal or professional license.
64
77
-`-s`, `--serial`: License serial number. Required when activating a professional license.
65
78
-`-c`, `--config`: Path to the configuration file, or base64 encoded JSON string. Required when activating a floating license.
66
79
-`--verbose`: Enable verbose output.
67
-
-`unity-cli return-license [options]`: Return a Unity license.
80
+
81
+
```bash
82
+
unity-cli activate-license --license personal --email <your-email> --password <your-password>
83
+
```
84
+
85
+
##### Return License
86
+
87
+
-`return-license [options]`: Return a Unity license.
68
88
-`-l`, `--license`: License type (personal, professional, floating)
69
89
-`--verbose`: Enable verbose output.
70
90
91
+
```bash
92
+
unity-cli return-license --license personal
93
+
```
94
+
71
95
#### Unity Hub
72
96
73
-
-`unity-cli hub-version`: Print the Unity Hub version.
97
+
##### Hub Version
98
+
99
+
-`hub-version`: Print the Unity Hub version.
100
+
101
+
```bash
102
+
unity-cli hub-version
103
+
```
104
+
105
+
##### Hub Path
106
+
74
107
-`unity-cli hub-path`: Print the Unity Hub executable path.
108
+
109
+
```bash
110
+
unity-cli hub-path
111
+
```
112
+
113
+
##### Unity Hub Install
114
+
75
115
-`unity-cli hub-install [options]`: Install or update the Unity Hub
76
116
-`--auto-update`: Automatically updates the Unity Hub if it is already installed. Cannot be used with --hub-version.
77
117
-`--hub-version`: Specify to install a specific version of Unity Hub. Cannot be used with --auto-update.
78
118
-`--verbose`: Enable verbose output.
79
119
-`--json`: Output installation information in JSON format.
120
+
121
+
```bash
122
+
unity-cli hub-install
123
+
```
124
+
125
+
##### Run Unity Hub Commands
126
+
80
127
-`unity-cli hub [options] <args...>`: Run Unity Hub command line arguments (passes args directly to the hub executable).
81
128
-`<args...>`: Arguments to pass directly to the Unity Hub executable.
82
129
-`--verbose`: Enable verbose output.
83
130
131
+
Lists available Unity Hub commands:
132
+
133
+
```bash
134
+
unity-cli hub help
135
+
```
136
+
137
+
Gets a list of installed editors:
138
+
139
+
```bash
140
+
unity-cli hub editors --installed
141
+
```
142
+
84
143
#### Unity Editor
85
144
86
-
-`unity-cli setup-unity [options]`: Find or install the Unity Editor for a project or specific version.
145
+
##### Setup Unity Editor
146
+
147
+
-`setup-unity [options]`: Find or install the Unity Editor for a project or specific version.
87
148
-`-p`, `--unity-project <unityProject>` The path to a Unity project or `none` to skip project detection.
88
149
-`-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.
89
150
-`-c`, `--changeset <changeset>` The Unity changeset to get (e.g. `1234567890ab`).
@@ -93,20 +154,48 @@ With options always using double dashes (`--option`) and arguments passed direct
93
154
-`-i`, `--install-path <installPath>` The path to install the Unity Editor to. By default, it will be installed to the default Unity Hub location.
94
155
-`--verbose` Enable verbose logging.
95
156
-`--json` Prints the last line of output as JSON string.
96
-
-`unity-cli uninstall-unity [options]`: Uninstall a Unity Editor version.
157
+
158
+
Installs the latest Unity 6 version with Android and iOS modules:
-`uninstall-unity [options]`: Uninstall a Unity Editor version.
97
167
-`-e`, `--unity-editor <unityEditor>` The path to the Unity Editor executable. If unspecified, `-u`, `--unity-version` or the `UNITY_EDITOR_PATH` environment variable must be set.
98
168
-`-u`, `--unity-version <unityVersion>` The Unity version to get (e.g. `2020.3.1f1`, `2021.x`, `2022.1.*`, `6000`). If unspecified, then `--unity-editor` must be specified.
99
169
-`-c`, `--changeset <changeset>` The Unity changeset to get (e.g. `1234567890ab`).
100
170
-`-a`, `--arch <arch>` The Unity architecture to get (e.g. `x86_64`, `arm64`). Defaults to the architecture of the current process.
101
171
-`--verbose` Enable verbose logging.
102
-
-`unity-cli list-project-templates [options]`: List available Unity project templates for an editor.
172
+
173
+
```bash
174
+
unity-cli uninstall-unity --unity-version 6000
175
+
```
176
+
177
+
##### List Project Templates
178
+
179
+
> [!NOTE]
180
+
> Regex patterns are supported for the `--template` option. For example, to create a 3D project with either the standard or cross-platform template, you can use `com.unity.template.3d(-cross-platform)?`.
181
+
182
+
-`list-project-templates [options]`: List available Unity project templates for an editor.
103
183
-`-e`, `--unity-editor <unityEditor>` The path to the Unity Editor executable. If unspecified, `-u`, `--unity-version` or the `UNITY_EDITOR_PATH` environment variable must be set.
104
184
-`-u`, `--unity-version <unityVersion>` The Unity version to get (e.g. `2020.3.1f1`, `2021.x`, `2022.1.*`, `6000`). If unspecified, then `--unity-editor` must be specified.
105
185
-`-c`, `--changeset <changeset>` The Unity changeset to get (e.g. `1234567890ab`).
106
186
-`-a`, `--arch <arch>` The Unity architecture to get (e.g. `x86_64`, `arm64`). Defaults to the architecture of the current process.
107
187
-`--verbose` Enable verbose logging.
108
188
-`--json` Prints the last line of output as JSON string.
109
-
-`unity-cli create-project [options]`: Create a new Unity project from a template.
-`create-project [options]`: Create a new Unity project from a template.
110
199
-`-n`, `--name <projectName>` The name of the new Unity project. If unspecified, the project will be created in the specified path or the current working directory.
111
200
-`-p`, `--path <projectPath>` The path to create the new Unity project. If unspecified, the current working directory will be used.
112
201
-`-t`, `--template <projectTemplate>` The name of the template package to use for creating the unity project. Supports regex patterns. (default:
@@ -115,71 +204,61 @@ With options always using double dashes (`--option`) and arguments passed direct
115
204
-`-e`, `--unity-editor <unityEditor>` The path to the Unity Editor executable. If unspecified, `-u`, `--unity-version`, or the `UNITY_EDITOR_PATH` environment variable must be set.
116
205
-`--verbose` Enable verbose logging.
117
206
-`--json` Prints the last line of output as JSON string.
118
-
-`unity-cli open-project [options]`: Open a Unity project in the Unity Editor.
119
-
-`-p`, `--unity-project <unityProject>` The path to a Unity project. If unspecified, the `UNITY_PROJECT_PATH` environment variable or the current working directory will be used.
120
-
-`-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.
121
-
-`-t`, `--build-target <buildTarget>` The Unity build target to switch the project to (e.g. `StandaloneWindows64`, `StandaloneOSX`, `iOS`, `Android`, etc).
122
-
-`--verbose` Enable verbose logging.
123
-
-`unity-cli run [options] <args...>`: Run Unity Editor command line arguments (passes args directly to the editor).
124
-
-`--unity-editor <unityEditor>` The path to the Unity Editor executable. If unspecified, `--unity-project` or the `UNITY_EDITOR_PATH` environment variable must be set.
125
-
-`--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.
126
-
-`--log-name <logName>` The name of the log file.
127
-
-`<args...>` Arguments to pass directly to the Unity Editor executable.
128
-
-`--verbose` Enable verbose logging.
129
207
130
-
#### Unity Package Manager
131
-
132
-
> [!WARNING]
133
-
> This command feature is in beta and may change in future releases.
134
-
135
-
-`unity-cli sign-package [options]`: Sign a Unity package for distribution.
136
-
-`--package <package>` Required. The fully qualified path to the folder that contains the package.json file for the package you want to sign. Note: Don’t include package.json in this parameter value.
137
-
-`--output <output>` Optional. The output directory where you want to save the signed tarball file (.tgz). If unspecified, the package contents will be updated in place with the signed .attestation.p7m file.
138
-
-`--email <email>` Email associated with the Unity account. If unspecified, the `UNITY_USERNAME` environment variable will be used.
139
-
-`--password <password>` The password of the Unity account. If unspecified, the `UNITY_PASSWORD` environment variable will be used.
140
-
-`--organization <organization>` The Organization ID you copied from the Unity Cloud Dashboard. If unspecified, the `UNITY_ORGANIZATION_ID` environment variable will be used.
141
-
-`--verbose` Enable verbose logging.
142
-
143
-
#### Install Unity Hub and Editor
208
+
Creates a new Unity project named "MyGame" using the latest version of Unity 6 and the 3D template:
Supports personal, professional, and floating licenses (using a license server configuration).
214
+
##### Open Unity Project
153
215
154
-
```bash
155
-
unity-cli activate-license --license personal --email <your-email> --password <your-password>
156
-
```
216
+
-`open-project [options]`: Open a Unity project in the Unity Editor.
217
+
-`-p`, `--unity-project <unityProject>` The path to a Unity project. If unspecified, the `UNITY_PROJECT_PATH` environment variable or the current working directory will be used.
218
+
-`-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.
219
+
-`-t`, `--build-target <buildTarget>` The Unity build target to switch the project to (e.g. `StandaloneWindows64`, `StandaloneOSX`, `iOS`, `Android`, etc).
220
+
-`--verbose` Enable verbose logging.
157
221
158
-
#### Create a New Project from a Template
159
-
160
-
> [!NOTE]
161
-
> Regex patterns are supported for the `--template` option. For example, to create a 3D project with either the standard or cross-platform template, you can use `com.unity.template.3d(-cross-platform)?`.
222
+
Opens a specific Unity project with the latest Unity 6 version:
> If you run this command in the same directory as your Unity project, you can omit the `--unity-project`, `--unity-version`, and `--unity-editor` options.
171
230
172
231
```bash
173
232
unity-cli open-project
174
233
```
175
234
176
-
#### Build a Project
235
+
##### Run Unity Editor Commands
236
+
237
+
-`run [options] <args...>`: Run Unity Editor command line arguments (passes args directly to the editor).
238
+
-`--unity-editor <unityEditor>` The path to the Unity Editor executable. If unspecified, `--unity-project` or the `UNITY_EDITOR_PATH` environment variable must be set.
239
+
-`--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.
240
+
-`--log-name <logName>` The name of the log file.
241
+
-`<args...>` Arguments to pass directly to the Unity Editor executable.
242
+
-`--verbose` Enable verbose logging.
177
243
178
244
```bash
179
245
unity-cli run --unity-project <path-to-project> -quit -batchmode -executeMethod StartCommandLineBuild
180
246
```
181
247
182
-
#### Sign a Unity Package
248
+
#### Unity Package Manager
249
+
250
+
##### Sign a Unity Package
251
+
252
+
> [!WARNING]
253
+
> This command feature is in beta and may change in future releases.
254
+
255
+
-`sign-package [options]`: Sign a Unity package for distribution.
256
+
-`--package <package>` Required. The fully qualified path to the folder that contains the package.json file for the package you want to sign. Note: Don’t include package.json in this parameter value.
257
+
-`--output <output>` Optional. The output directory where you want to save the signed tarball file (.tgz). If unspecified, the package contents will be updated in place with the signed .attestation.p7m file.
258
+
-`--email <email>` Email associated with the Unity account. If unspecified, the `UNITY_USERNAME` environment variable will be used.
259
+
-`--password <password>` The password of the Unity account. If unspecified, the `UNITY_PASSWORD` environment variable will be used.
260
+
-`--organization <organization>` The Organization ID you copied from the Unity Cloud Dashboard. If unspecified, the `UNITY_ORGANIZATION_ID` environment variable will be used.
261
+
-`--verbose` Enable verbose logging.
183
262
184
263
> [!NOTE]
185
264
> The `--output` option is optional. If not specified, the package contents will be updated in place with the signed `.attestation.p7m` file. Otherwise a signed `.tgz` file will be created in the specified output directory.
0 commit comments