P4V for Command-line Users

Jul 06, 2012

p4v logoIf you know Perforce well, the fastest, most powerful client is, and will always be, the p4 command-line. But unless you are still using a VT220, it is now possible to enjoy a richer UI perspective now and then:

  • Timelapse might give you a more pleasant experience then digging through the output of annotate.
  • RevisionGraph is an organized view, showing you what happened to that file.
  • If you are really adventurous you might use FolderDiff, to see what happened in a code-line.
  • Imagine you look at a list of jobs, without piping them through less or more, and imagine you could save the queries you ran before, and run them at the click of a button.

Stop, that’s just crazy talk, no self-respecting command-line user would ever do that. I understand, you should not have to, nobody has to change their ways, but in 2012.1 we offer you the temptation.

2012.1 P4V ships with a command-line tool, named p4vc. Install p4v as normal, copy this command-line tool to a directory in your path (next to p4 ), and you are ready to go:

$ p4vc help commands

This will list all the commands that are available. Every command offers a UI component. p4vc behaves a lot like p4. You should have no problems with the command-line interface.

So, go ahead give it a try. If you don’t like it, you still have the command-line, and maybe there is something you like. Maybe P4V for the command-line user is not as crazy as it sounds.

Posted In: 
hans's picture
About the author

Hans van de Meer is an engineering manager at Perforce Software.

See all posts by