ドキュメント

Unity command-line interface (CLI)

Download Unity Hub

Unity command-line interface (CLI)

Unity account, license, cloud, and collaboration commands for the Unity CLI

Sign in to your Unity account, authenticate with a service account, manage licenses, and work with Unity Cloud organizations, projects, and collaboration from the Unity CLI.
読み終わるまでの所要時間 2 分最終更新 2日前

Use these commands to sign in to your Unity account, manage the Unity licenses on your machine, and work with Unity Cloud organizations, projects, and collaboration. For unattended workflows such as CI pipelines, you can authenticate with a Unity service account instead of an interactive sign-in. For version control, refer to Version control commands for the Unity CLI.

Accounts, licenses, and Unity Cloud

Command

Alias

Description

auth
a
Sign in, check login state, or sign out.
license
Lists, activates, and returns Unity licenses on this machine.
cloud
Shows cloud sign-in state, organizations, and Unity Cloud projects, and creates organizations (
cloud org create
).

Sign in and out

The
auth
command manages your Unity account session.
unity auth loginunity auth statusunity auth logout

Command

Description

unity auth login
Opens a browser-based sign-in flow.
unity auth status
Prints the current signed-in user, if any.
unity auth logout
Signs out of the current session.
unity auth consumers
Lists the applications that have used your Unity sign-in on this machine.
unity auth revoke <application>
Stops an application from using your sign-in. Pass
--restore
to undo a revoke.

Set the floating license server

On a computer that uses floating licenses, an administrator sets the license server once for every user on the computer:
sudo unity license server set https://licensing.example.com:8080
On Windows, run the command from an elevated terminal (Run as administrator), without
sudo
.
The command checks that the server answers as healthy before it saves it. To save the server on a computer set up offline, add
--force
. It edits the machine-wide
services-config.json
file the way you would by hand: it keeps every other setting and the file's permissions. If users without administrator rights can also edit the file, the command tells you so, and leaves its permissions as they are. To turn floating licensing off without losing the server, run
sudo unity license server disable
;
sudo unity license server enable
turns it back on. To let users borrow a floating license and work offline, add
--work-offline
to
set
or
enable
;
--no-work-offline
turns it off. Borrowing also has to be allowed on the license server itself. To apply a change, close Unity Hub and all Unity Editors: the Unity Licensing Client reads the new settings the next time it starts. To check the result, run
unity license server status
.

Unity Collaboration

Command

Alias

Description

collaboration
collab
Manages Unity Collaboration annotations, attachments, thumbnails, and reactions, and link Jira issues to them.