简体   繁体   English

如何使用MKS CLI在本地保存文件(无沙箱)?

[英]How to save a File locally (without a Sandbox) with MKS CLI?

I want to save different revisions of a file from MKS Integrity using the Command Line Interface. 我想使用命令行界面从MKS Integrity保存文件的不同修订版。 The aim is to save these two files locally and use a script I wrote to compare them. 目的是将这两个文件保存在本地,并使用我编写的脚本进行比较。

When I check the member history I can double click on the Revision Number and the file opens up in the chosen Editor. 当我检查成员历史记录时,我可以双击修订号,然后在所选的编辑器中打开该文件。 This file is saved in the TEMP Folder locally. 此文件本地保存在TEMP文件夹中。

How can I do it using the command line arguments. 如何使用命令行参数。 Till now I have found the si edit command. 到目前为止,我已经找到了si edit命令。 This opens the file locally and creates a copy in the TEMP Folder but with a weird name. 这将在本地打开文件,并在TEMP文件夹中创建一个副本,但名称很奇怪。

If someone could help me with a better command that is available and I have overlooked in the documentation or if someone could tell me how the name is created? 如果有人可以通过可用的更好命令帮助我,而我却在文档中忽略了该命令,或者有人可以告诉我该名称是如何创建的?

尝试使用projectco命令。

si projectco --nolock --project=<project id> --targetFile=<outputfile> <projectmember>

To clarify that answer, you should add quotes for project, outputfile and projectmember. 为了阐明该答案,您应该为项目,输出文件和项目成员添加引号。

si projectco --nolock --project="" --targetFile="" "" si projectco --nolock --project =“” --targetFile =“”“”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM