Version: Unity 6.6 (6000.6)
Language : English
Unity Package Manager command-line interface
Install Unity Package Manager CLI

Unity Package Manager CLI workflow

Follow this workflow to sign Unity Package Manager (UPM) packages you create, by using the Unity Package Manager command-line interface (UPM CLI).

UPM CLI is a standalone tool that you can run from a terminal or integrate into a continuous integration (CI) pipeline. It’s useful if you create UPM packages and want to sign them outside of the Unity Editor or without the scripting API, especially in automated environments.

UPM CLI supports the same platforms and architectures as the Unity Editor.

To prepare your UPM packages for distribution by signing them, complete the following tasks:

  1. Install UPM CLI
  2. Pack and sign a UPM package

Prerequisites

Before you use UPM CLI, set up your environment as described in UPM CLI prerequisites:

  • Create a service account for your Unity organization. This is a one-time setup.
  • Set the service account credentials in environment variables on your local computer or CI tool.
  • Copy your organization ID from the Unity Cloud Dashboard.

Install UPM CLI

Install the UPM CLI tool on your local computer or CI environment. You need to install the tool only once, then update it each time a newer version is available.

For details, refer to Install Unity Package Manager CLI.

Pack and sign a UPM package

Use the upm pack command to pack your UPM package into a signed tarball (.tgz) file that you can distribute or publish. Run this command each time you want to create a signed package.

For details, refer to Pack and sign a UPM package with Unity Package Manager CLI.

Additional resources

Unity Package Manager command-line interface
Install Unity Package Manager CLI