Skip to content

Commit 3445ac4

Browse files
unity-cli@v1.3.0 (#28)
- add `sign-package` command to sign upm packages - added release channel support when looking up glob versions of the editor - fixed `UnityVersion` release channel sorting `f > b > a` - changed `UnityHub.ListAvailableReleases` return type from `string[]` to `UnityVersion[]`
1 parent 0ce2f47 commit 3445ac4

File tree

11 files changed

+353
-107
lines changed

11 files changed

+353
-107
lines changed

README.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,29 @@ With options always using double dashes (`--option`) and arguments passed direct
3434

3535
#### Auth
3636

37-
- `unity-cli license-version`: Print the Unity License Client version
38-
- `unity-cli activate-license [options]`: Activate a Unity license
39-
- `unity-cli return-license [options]`: Return a Unity license
37+
- `unity-cli license-version`: Print the Unity License Client version.
38+
- `unity-cli activate-license [options]`: Activate a Unity license.
39+
- `unity-cli return-license [options]`: Return a Unity license.
4040

4141
#### Unity Hub
4242

43-
- `unity-cli hub-version`: Print the Unity Hub version
44-
- `unity-cli hub-install [options]`: Install or update the Unity Hub
45-
- `unity-cli hub-path`: Print the Unity Hub executable path
46-
- `unity-cli hub [options] <args...>`: Run Unity Hub command line arguments (passes args directly to the hub executable)
43+
- `unity-cli hub-version`: Print the Unity Hub version.
44+
- `unity-cli hub-install [options]`: Install or update the Unity Hub.
45+
- `unity-cli hub-path`: Print the Unity Hub executable path.
46+
- `unity-cli hub [options] <args...>`: Run Unity Hub command line arguments (passes args directly to the hub executable).
4747

4848
#### Unity Editor
4949

50-
- `unity-cli setup-unity [options]`: Find or install the Unity Editor for a project or specific version
51-
- `unity-cli uninstall-unity [options]`: Uninstall a Unity Editor version
52-
- `unity-cli list-project-templates [options]`: List available Unity project templates for an editor
53-
- `unity-cli create-project [options]`: Create a new Unity project from a template
54-
- `unity-cli open-project [options]`: Open a Unity project in the Unity Editor
55-
- `unity-cli run [options] <args...>`: Run Unity Editor command line arguments (passes args directly to the editor)
50+
- `unity-cli setup-unity [options]`: Find or install the Unity Editor for a project or specific version.
51+
- `unity-cli uninstall-unity [options]`: Uninstall a Unity Editor version.
52+
- `unity-cli list-project-templates [options]`: List available Unity project templates for an editor.
53+
- `unity-cli create-project [options]`: Create a new Unity project from a template.
54+
- `unity-cli open-project [options]`: Open a Unity project in the Unity Editor.
55+
- `unity-cli run [options] <args...>`: Run Unity Editor command line arguments (passes args directly to the editor).
56+
57+
#### Unity Package Manager
58+
59+
- `unity-cli sign-package [options]`: Sign a Unity package for distribution.
5660

5761
Run `unity-cli --help` for a full list of commands and options.
5862

@@ -94,3 +98,12 @@ unity-cli open-project
9498
```bash
9599
unity-cli run --unity-project <path-to-project> -quit -batchmode -executeMethod StartCommandLineBuild
96100
```
101+
102+
#### Sign a Unity Package
103+
104+
> [!NOTE]
105+
> 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.
106+
107+
```bash
108+
unity-cli sign-package --package <path-to-package-folder> --email <your-email> --password <your-password> --organization <your-organization-id>
109+
```

package-lock.json

Lines changed: 61 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rage-against-the-pixel/unity-cli",
3-
"version": "1.2.3",
3+
"version": "1.3.0",
44
"description": "A command line utility for the Unity Game Engine.",
55
"author": "RageAgainstThePixel",
66
"license": "MIT",
@@ -54,6 +54,7 @@
5454
"glob": "11.0.3",
5555
"semver": "^7.7.2",
5656
"source-map-support": "^0.5.21",
57+
"tar": "^7.5.1",
5758
"update-notifier": "^7.3.1",
5859
"yaml": "^2.8.1"
5960
},

0 commit comments

Comments
 (0)