A CLI tool to create .unitypackage files without needing Unity itself.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
MabelAmber 6a9f70093a
All checks were successful
Canary Build / build (push) Successful in 9s
Update LICENSE.md
2026-09-22 17:30:38 -07:00
.forgejo/workflows Hopefully fix release workflow's changelog extraction 2026-09-20 02:56:33 -07:00
.gitignore Initial Commit 2026-09-18 23:28:13 -07:00
CHANGELOG.md Fixes 'pack' failure if './' isn't in the output path 2026-09-20 02:53:52 -07:00
global.json Initial Commit 2026-09-18 23:28:13 -07:00
LICENSE.md Update LICENSE.md 2026-09-22 17:30:38 -07:00
PackageBuilder.cs Fixes 'pack' failure if './' isn't in the output path 2026-09-20 02:53:52 -07:00
Program.cs Unpack Mode, Merge Output Args into OutputPath 2026-09-20 02:37:52 -07:00
README.md Unpack Mode, Merge Output Args into OutputPath 2026-09-20 02:37:52 -07:00
UnityPackager.csproj Fixes 'pack' failure if './' isn't in the output path 2026-09-20 02:53:52 -07:00
UnityPackager.sln Initial Commit 2026-09-18 23:28:13 -07:00

UnityPackager

A CLI tool to create and extract .unitypackage files without needing Unity itself.

Tested with Unity 2021, 2023, and Unity 6. Might not import in older Unity versions.

Usage

Pack

UnityPackager pack <PathToFiles> <UnityRootDirectory> <OutputPath>

  • PathToFiles : Local directory containing the assets and their .meta files
  • UnityRootDirectory : Where those assets live in a Unity project, e.g. Assets/Shaders. Must start with Assets/ or Packages/
  • OutputPath : Package file to create (folders are created if missing). .unitypackage is appended if missing

Unpack

UnityPackager unpack <PackagePath> <OutputFolder>

  • PackagePath : The .unitypackage to extract
  • OutputFolder : Directory to extract into (created if missing)

Files are extracted the way Unity would import them: real paths like Assets/Shaders/MyShader.shader with their .meta files next to them, instead of GUID folders.

Examples

UnityPackager pack ./UnityScripts "Assets/Packages/MyScriptPack" ./Staging/MyScriptPack

UnityPackager pack ./ShaderStuff "Assets/Shaders/" ./MyShaderPack.unitypackage

UnityPackager unpack ./Staging/MyScriptPack ./UnpackedFiles

UnityPackager unpack ./MyShaderPack.unitypackage ./UnpackedFiles