Perforce Command-Line Client

Fast and scriptable on a wide variety of platforms

P4, the Perforce Command-Line Client, is a small, self-contained client program that offers access to all Perforce features. P4 can also be used in scripts and is the ideal interface for automated processes such as backups and nightly builds.

Details

Highly scriptable

Custom automation of your development and administrative processes can be accomplished by embedding the appropriate commands in Perl, Python, or any other scripting language. Operations ranging from automating continuous integrations to nightly builds can be tailored to your workflow.

Multi-platform

The Perforce Command-Line Client uses the same commands and syntax on a wide variety of platforms and automatically translates line ending conventions between operating systems.

Reporting

All information related to the Perforce metadata is available from the command line. Custom reports can be easily scripted by redirecting and formatting command output to text files.

Concise commands

P4 commands are generally short and self-explanatory. You will find all commands and their associated flags clearly described by invoking p4 help commands.

Perforce command list

p4 add
p4 admin
p4 annotate
p4 branch
p4 branches
p4 change
p4 changes
p4 client
p4 clients
p4 counter
p4 counters
p4 delete
p4 depot
p4 depots
p4 describe
p4 diff
p4 diff2
p4 dirs
p4 edit
p4 filelog
p4 files
p4 fix
p4 fixes
p4 flush
p4 fstat
p4 group
p4 groups
p4 have
p4 help
p4 info
p4 integrate
p4 integrated
p4 job
p4 jobs
p4 jobspec
p4 label
p4 labels
p4 labelsync
p4 lock
p4 logger
p4 login

p4 logout
p4 monitor
p4 obliterate
p4 opened
p4 passwd
p4 print
p4 protect
p4 rename
p4 reopen
p4 resolve
p4 resolved
p4 revert
p4 review
p4 reviews
p4 set
p4 submit
p4 sync
p4 tag
p4 tickets
p4 triggers
p4 typemap
p4 unlock
p4 user
p4 users
p4 verify
p4 where

Tour

Screenshot Tour

Slideshow

Take the Command-Line Client screenshot tour.

Highlights

  • Automate workflow by using scripts written in Perl, Python, and other languages.
  • Deploy on a wide variety of platforms without being tied to the server OS.
  • Generate custom reports from the Perforce metadata.
  • Use commands that are intuitive, concise, and function exactly the same across all platforms.

Downloads

P4 works with either a licensed or the free two-user Perforce Server.

P4 runs on a wide variety of client platforms, including Unix, Linux, Windows, and Mac OS X.

An up-to-date list of the specific platforms on which P4 runs is available on the Perforce Downloads page.

Documentation

The P4 User's Guide describes the use of the Perforce Command-Line Client.

The P4 Command Reference documents all P4 commands, flags, and options.

Additional information can be found in the release notes.

Live demonstration

Contact us today to request a live technical presentation of Perforce. The online demo can be tailored to your requirements and runs about 90 minutes.