I'm using Perl scripts as an interface, so replace $projectName, $checkPoint, $user and $password with a real stuff...
si viewproject -P $projectName/project.pj --projectRevision=$checkPoint -R --yes --filterSubs --xmlapi --user=$user --password=$password
--xmlapi is optional
I was able to get this to work.