Cody Blog

Software development

Using Perforce Command Line in Linux

Installation (Linux)

  1. Download P4 binary from http://www.perforce.com/downloads/complete_list

    $ wget http://www.perforce.com/downloads/perforce/r11.1/bin.linux26x86_64/p4 (x64) $ wget http://www.perforce.com/downloads/perforce/r11.1/bin.linux26x86/p4 (x86)

  2. Make the downloaded file executable

    $ chmod +x p4

  3. Print p4 version

    $ ./p4 -V

Perforce client common commands

./p4 -p 10.200.19.19:1667 -u `<YOUR_ACCOUNT>` login

export P4PORT=10.200.19.19:1667

./p4 -u `<USERNAME>` -c `<WORK_SPACE>` sync -f

Cmd

Comments