기술 자료

​
​

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
    • CLI help
    • Pipe commands
    • cm find
    • Windows keyboard shortcuts
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Pipe commands

Use the pipe command in the Unity Version Control CLI for advanced scripting.
읽는 시간 2분
최근 업데이트: 10달 전

The UVCS command line can read arguments from standard input (stdin) one by one if you use the
-
option.
For example, you can add three files at the same time:
>cm add -a.txtb.txtc.txtThe selected items are about to be added. Please wait ...Item c:\Users\pablo\wkspaces\mcga\a.txt was correctly addedItem c:\Users\pablo\wkspaces\mcga\b.txt was correctly addedItem c:\Users\pablo\wkspaces\mcga\c.txt was correctly added
This allows you to pipe output from other commands into
cm
. For example, you can combine commands to create automations such as to add all files under a specific directory tree:
find /path/to/dir | cm add -

Commands that accept piped paths

The following commands accept piped paths:
  • add
  • applylocalchanges
  • checkin
  • checkout
  • getstatus
  • partialcheckin
  • remove
  • shelveset create
  • undocheckout
  • undochange
  • uncounchanged
  • Wktreenodestatus

Pipe examples

Pipe from the Windows
dir
command

The following example pipes from the Windows
dir
command to remove files that match a specific pattern from a workspace:
>dir /S /B *.txt | cm rm -Item c:\Users\pablo\wkspaces\mcga\a.txt has been removed.Item c:\Users\pablo\wkspaces\mcga\b.txt has been removed.Item c:\Users\pablo\wkspaces\mcga\c.txt has been removed.Item c:\Users\pablo\wkspaces\mcga\z.txt has been removed.Item c:\Users\pablo\wkspaces\mcga\lockwkB\file.txt has been removed.Item c:\Users\pablo\wkspaces\mcga\src_dir\dest_dir\a.txt has been removed.Item c:\Users\pablo\wkspaces\mcga\src_dir\dest_dir\b.txt has been removed.Item c:\Users\pablo\wkspaces\mcga\src_dir\dest_dir\c.txt has been removed.

Checkout files recursively into piped directory arguments

Directory of c:/mcga/pipe11/05/2020 19:48 <DIR> .11/05/2020 19:48 <DIR> ..11/05/2020 17:57 <DIR> dir11/05/2020 19:46 <DIR> dir211/05/2020 19:47 12 dirlist1 File(s) 12 bytes4 Dir(s) 23,714,631,680 bytes freec:/mcga/pipe>type dirlistdirdir2c:/mcga/pipe>type dirlist | cm partial co -r -The selected items are about to be checked out. Please wait ...Item c:/mcga/pipe/dir was correctly checked outItem c:/mcga/pipe/dir/file was correctly checked outItem c:/mcga/pipe/dir2 was correctly checked outItem c:/mcga/pipe/dir2/file2 was correctly checked out

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

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

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

  • 보고 있는 페이지
    • Commands that accept piped paths

    • Pipe examples

      • Pipe from the Windows dir command

      • Checkout files recursively into piped directory arguments


이 페이지의 문제 보고