Vault Command Line - GET

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
brettbim
Posts: 2
Joined: Thu Sep 09, 2010 9:39 am

Vault Command Line - GET

Post by brettbim » Thu Sep 09, 2010 9:49 am

Hi,

I'm trying to create a continuous integration server and I need to access our Vault repository from the command line. I've read the documentation but I'm not having much luck pulling pieces of the repository versus the entire repository. We have hundreds of projects in the repository and I only want a specific few for each build event, not the entire repository

An example: Repository name is "MyRepository". I have two projects in MyRepository, $/dev/MyCode/Project1 and $/dev/MyCode/Project2. I only want to pull down Project1 code to a nonworkingfolder. The command I'm trying to run is:

vault.exe GET -host myhost -ssl -user me -password mypassword -repository MyRepository -nonworkingfolder c:/someotherpath -verbose true $/dev/MyCode/Project1

What I get from that is a System.Exception with the message "Could not map path to anything useful. I have tried variations fo the repositorypath at the end with no luck. The documentation for all the options is good but there is no guidance on what repositorypath should look like.

Any help would be greatly appreciated.

Thanks,
Brett Bim
eduphoria!

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Command Line - GET

Post by Beth » Thu Sep 09, 2010 1:27 pm

Which version of Vault are you using?

Do you have a working folder set?

On your disk path, try flipping your / the other way so that it reads like C:\someotherpath.
Beth Kieler
SourceGear Technical Support

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Command Line - GET

Post by Beth » Thu Sep 09, 2010 1:33 pm

I ran a few tests and think I found it now. Remove the word 'true' after verbose. Just using the switch -verbose will turn on verbose mode.
Beth Kieler
SourceGear Technical Support

brettbim
Posts: 2
Joined: Thu Sep 09, 2010 9:39 am

Re: Vault Command Line - GET

Post by brettbim » Thu Sep 09, 2010 2:01 pm

Yup, that verbose issue was it. Thanks for the update.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Command Line - GET

Post by Beth » Thu Sep 09, 2010 2:44 pm

You're welcome.
Beth Kieler
SourceGear Technical Support

Post Reply