Perforce Command Line Recipes

About This Project
The page contains a list of handy single-line Perforce scripts. Most of these can easily be converted into custom tools to run from the Perforce GUIs. If you have a favorite that's not listed here, please share it!

The "shell command" one-liners will run in most generic shells, including the standard Windows cmd prompt, but most require a set of CLI tools that are only standard on Unix. The free Cygwin toolkit is a popular way to get similar versions of these tools on Windows.

The Powershell one-liners do not require Unix tools.

The px commands use an extended command-line client.