get file example
Use version IDs to extract file contents.
Examples
- To get version 4 of the HelloWorld.java file by using the filepath option:lscm get file -w "My Project Area Stream Workspace" -c "My Project Area Default Component" -f "/Hello World/src/test/HelloWorld.java" 4 -o c:\t1 -r https://localhost:9443/jazz -u ADMIN -P ADMIN
Successfully extracted file to "C:\t1". - To get version 4 of the HelloWorld.java file by using the file item ID and state ID:
-
lscm get file_XsMP8OslEemTnc4cJVuxPQ 4 -o c:\temp\test.txt
Successfully extracted file to " C:\temp\test.txt". -
lscm get file XsMP8OslEemTnc4cJVuxPQ _a3Lv0esmEemfHvYD6MWU0A -o c:\temp\test.txt
Successfully extracted file to " C:\temp\test.txt".
-