Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
  • On-Prem
  • Gluon
  • CLI and shortcut references
    • Unity Version Control CLI
      • acl
      • activateuser
      • add
      • admin
      • annotate
      • api
      • applylocal
      • archive
      • attribute
      • autocomplete
      • branch
      • changelist
      • changerevisiontype
      • changeset
      • changeuserpassword
      • checkconnection
      • checkin
      • checkout
      • checkselectorsyntax
      • clone
      • codereview
      • configure
      • crypt
      • deactivateuser
      • diff
      • diffmetrics
      • fastexport
      • fastimport
      • fileinfo
      • find
      • getconfig
      • getfile
      • getrevision
      • getstatus
      • gettaskbranches
      • getworkspacefrompath
      • getworkspaceinfo
      • help
      • history
      • iostats
      • issuetracker
      • label
        • label create
        • label delete
        • label rename
      • licenseinfo
      • linktask
      • list
      • listusers
      • location
      • lock
      • log
      • merge
      • move
      • objectspec
      • partial
      • patch
      • profile
      • pull
      • purge
      • push
      • query
      • remove
      • repository
      • revert
      • setowner
      • shelveset
      • show-find-objects
      • showacl
      • showcommands
      • showowner
      • showpermissions
      • support
      • switch
      • sync
      • trigger
      • tube
      • undelete
      • undo
      • undochange
      • undocheckout
      • undocheckoutunchanged
      • update
      • version
      • whoami
      • workspace
      • workspacestatus
      • xlink
    • CLI help
    • Pipe commands
    • cm find
    • Windows keyboard shortcuts
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

LABEL CREATE

Create and apply labels with the Unity Version Control CLI.
Read time 1 minute
Last updated 10 months ago

Description

Applies a label to a changeset and creates the label if required.

Usage

cm label [create] <lbspec> [<csetspec> | <wk_path>] [--allxlinkedrepositories] [-c=<str_comment> | -commentsfile=<comments_file>]

Options

Option / Argument

Description

--allxlinkedrepositoriesCreates the new label in all Xlinked repositories.
-cApplies the specified comment to the new label.
-commentsfileApplies the comment in the specified file to the new label.
lbspecThe new label name. (Use 'cm help objectspec' to learn more about label specs.)
csetspecName or full specification of the changeset to label. (Use 'cm help objectspec' to learn more about changeset specs.)
wk_pathPath of the workspace to label. (The changeset that the workspace is pointing will be labeled.)

Help

Remarks

Set the PLASTICEDITOR environment variable to specify an editor for entering comments. If the PLASTICEDITOR environment variable is set, and the comment is empty, the editor will be automatically launched to allow you to specify the comment.

Examples

cm label create lb:BL001 cs:1203 -commentsfile=commentlb001.txt
(Creates label 'BL001' attached to changeset 1203, and applies the comment in the 'commentlb001.txt' file.)
cm label BL002 cs:1203 -c="first release"
(Creates label 'BL002', with a comment, and attached to changeset 1203.)

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Description

      • Usage

      • Options

    • Help

      • Remarks

      • Examples


Report a problem with this page