Skip to main content
Jan 15, 2016 10:37 AM UTC
Question

Is there a CLI command that checks in what devpath is a specific project revision ?

Hello,

I have a script which automize the sandbox creation. In this script I have the project name and the project revision (using the heyword $ProjectRevision$). And, I want to know from what devpath belongs the project revision number from script, to be able to create sandbox of the devpath mainline.

Thanks,

Ana

    2 replies

    Jan 18, 2016 5:14 PM UTC

    Hello Anamaria Prodea‌,

    I think the command you are looking for is si locate:

    si locate -P <projectName> <ScriptMemberName>

    This should dump a list of the project name, the development path, the name of the member, and the revision found there.

    Please let us know if you need more information, or mark an answer as correct by clicking on the Correct Answer button at the bottom of the correct post.

    I hope that helps,

    Kael

    aprodeaAuthor
    Jan 19, 2016 7:46 AM UTC

    Hello Kael Lizak‌, thanks for response!

    I've tried this command, but unfortunately it's not helping me. In the first step I do not have a sandbox for the batch script.

    I tried with %~f0 for the script file path, but is not working with the temporary location.

    Ana