기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

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
      • 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)

LIST

List items with the Unity Version Control CLI.
읽는 시간 3분
최근 업데이트: 10달 전

Description

Lists the contents of a tree.

Usage

cm ls | dir [<paths>[ ...]] [--format=<str_format>] [--symlink] [--selector[=<selector_format>]] [--tree=<obj_spec>] [-R | -r | --recursive] [--xml[=<output_file>]] [--encoding=<name>]

Options

Option / Argument

Description

--format
Retrieves the output message in a specific format. See Remarks for more info. This option cannot be combined with
--xml
.
--symlink
Applies the operation to the symlink and not to the target.
--selector
Gets the content from the active workspace selector. If selector_format is specified, then lists the specified selector. This is mostly deprecated since selectors are no longer a central part of UVCS since 4.x.
--tree
Lists the tree in the specified changeset or branch. (Use
cm help objectspec
to learn more about specs.)
-R | -r | --recursive
Lists recursively.
--xml
Prints the output in XML format to the standard output. It is possible to specify an output file. This option cannot be combined with
--format
.
--encoding
Used with the
--xml
option, specifies the encoding to use in the XML output, i.e.: utf-8. See the MSDN documentation at http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx to get the table of supported encodings and its format, (at the end of the page, in the "Name" column).
paths
List of paths to show. Use a whitespace to separate paths. Use double quotes (
" "
) to specify paths containing spaces.

Help

Remarks

  • Path can be typed with meta-characters.
  • The list depends on the workspace selector.
  • The output of the command can be formatted specifying a format string.
  • If
    --tree
    or
    --selector
    options are specified, the given path must be a server path (a.k.a.:
    cm
    path): /dir/file.txt, not a workspace path: C:\Users\myuser\mywk\dir\file.txt
  • If no path is provided, the workspace path assumed is the current directory. If
    --tree
    or
    --selector
    options are used, then the root path (
    /
    ) is assumed.

The default format string is

{**size,10**} {**date**:dd/MM/yyyy} {**date**:HH:mm}\ {**type,-6**} {**location,-12**} {**checkout,-5**} {**name**}\ {**symlinktarget**}

Output format parameters (--format option)

This command accepts a format string to show the output.

The output parameters of this command are the following

  • {size}
  • {formattedsize}
  • {date}
  • {type}
    • dir
      : directory,
    • txt
      : text file,
    • File
      : file.
  • {location}
    (Example:
    br:branch#cset
    )
  • {checkout}
  • {name}
  • {changeset}
  • {path}
  • {repspec}
  • {owner}
  • {revid}
  • {parentrevid}
  • {itemid}
  • {brid}
  • {repid}
  • {server}
  • {symlinktarget}
  • {hash}
  • {chmod}
  • {wkpath}
    (Path relative to workspace root)
  • {branch}
  • {newlocation}
    (
    cset@branch
    )
  • {guid}
    (Will take longer to resolve)
  • {itemguid}
  • {transformed}
    (Show applied rule for transformed items.)
You can customize the
ls
format setting the PLASTIC_LS_FORMAT environment variable.

Examples

cm ls
cm ls c:\workspace\src
cm ls --format={name}
(Only file names.)
cm ls --symlink
(Displays information about the symlink instead of the target file or directory.)
cm ls code --selector
(Shows the content of the 'code' subdirectory from the current workspace selector.)
cm ls /code --selector="rep 'myrep' path '/' branch '/main'"
(Shows the content of the '/code' subdirectory on the specified selector. Note that the path is specified in server format.)
cm ls /code --tree=44@myrep@denver:7070
(Lists the '/code' subdirectory at changeset 44 at repo 'myrep' at server 'denver:7070'.)
cm ls /code --tree=br:/main/scm13596@myrep@denver:7070
(Lists the '/code' subdirectory at the latest changeset in branch '/main/scm13596' at repo 'myrep' at server 'denver:7070'.)
cm ls /code --tree=ae1390ed-7ce9-4ec3-a155-e5a61de0dc77@myrep@denver:7070
(Lists the '/code' subdirectory at changeset ae1390ed-7ce9-4ec3-a155-e5a61de0dc77 at repo 'myrep' at server 'denver:7070'.)

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Description

      • Usage

      • Options

    • Help

      • Remarks

        • The default format string is

        • Output format parameters (--format option)

        • The output parameters of this command are the following

      • Examples


이 페이지의 문제 보고