What problem does it solve?
Install a package from the Unity Package Manager registry, Git URL, or local path. This operation modifies the project's manifest.json and triggers package resolution. Note: Package installation may trigger a domain reload. The result will be sent after the reload completes. Use 'package-search' tool to search for packages and 'package-list' to list installed packages.
Core Features & Use Cases
- Install from Unity Registry: Install latest or specific versions of packages from the Unity Package Registry.
- Git URL support: Install packages directly from Git repositories using URLs (with optional branches/tags).
- Local path installation: Add packages from local file paths for development workflows.
- Manifest management: Automatically update manifest.json and trigger package resolution, handling domain reloads transparently.
Quick Start
Provide a packageId (for example com.unity.textmeshpro or a Git URL) to the package-add tool to install a package.