Documentation

Asset Library CLI command reference

Explore the commands and options you can use to search, inspect, import, download, and package individual Asset Store assets from the Unity CLI.
Read time 2 minutesLast updated a day ago

Run Asset Library commands as
unity assetlibrary <command>
. To install the plug-in, refer to Install the Asset Library CLI.
Commands that act on one asset take an asset ID in the form
assetId
or
assetId@versionId
. Some assets also require a render pipeline variant. For more information about asset IDs and render pipeline variants, refer to Introduction to the Asset Library CLI.

Commands

Command

Description

assetlibrary
With no command, shows your sign-in status, your organization, and suggested next steps.
assetlibrary search
Finds assets by text, by image, or by filters alone.
assetlibrary show
Shows the full details of one asset, including package URL, triangles, vertices, size, art style, and files.
assetlibrary pick
Opens a page in a browser where you choose between assets, and then prints the IDs of the assets you chose.
assetlibrary import
Imports an asset's files into a Unity project. Alias:
get
.
assetlibrary download
Downloads an asset's files into a folder outside a Unity project.
assetlibrary package
Builds a .unitypackage file of an asset, signed for an organization that you specify.
assetlibrary doctor
Checks the plug-in installation, Unity CLI version, sign-in, organization, access, and connection to the Asset Library service.
assetlibrary version
Prints the plug-in version and the Unity CLI versions it supports.

Global options

You can use the following options with every command.

Option

Description

--format <format>
Sets the output format:
human
,
json
,
tsv
, or
ndjson
. Default:
human
in a terminal, and
tsv
when you pipe the output to another command. You can also set the
UNITY_FORMAT
environment variable.
--non-interactive
Disables prompts. If a command needs a value that you didn't provide, it fails with a usage error. Use this option in continuous integration (CI) pipelines and with coding agents.
--no-hints
Omits next-step hints: notifications in
json
and
ndjson
output, and
Hint
lines in
human
and
tsv
output.
--help
,
-h
Shows help for a command.
--version
,
-v
Prints the version.

Exit codes

The Asset Library CLI uses the same exit codes as the Unity CLI. For the list of exit codes and which codes you can retry, refer to Exit codes.

Additional resources