{"id":4570,"date":"2018-01-09T06:13:04","date_gmt":"2018-01-09T06:13:04","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=4570"},"modified":"2025-02-01T22:39:32","modified_gmt":"2025-02-01T22:39:32","slug":"perforce-command-line","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/perforce-command-line\/","title":{"rendered":"Perforce Command Line"},"content":{"rendered":"<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"95\" \/><\/colgroup>\n<tbody>\n<tr>\n<td><\/td>\n<td>\n<h1>Command<\/h1>\n<\/td>\n<td>\n<h1>Description<\/h1>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 add<\/div>\n<\/td>\n<td>Open file(s) in a client workspace for addition to the depot.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 admin<\/div>\n<\/td>\n<td>Perform administrative operations on the server.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 branch<\/div>\n<\/td>\n<td>Create or edit a branch specification and its view.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 change<\/div>\n<\/td>\n<td>Create or edit a changelist specification.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 changelists<\/div>\n<\/td>\n<td>List submitted and pending changelists.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 changelist<\/div>\n<\/td>\n<td>Create or edit a changelist specification.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 client<\/div>\n<\/td>\n<td>Create or edit a client workspace specification and its view.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 clients<\/div>\n<\/td>\n<td>List all client workspaces currently known to the system.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 delete<\/div>\n<\/td>\n<td>Open file(s) in a client workspace for deletion from the depot.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 depot<\/div>\n<\/td>\n<td>Create or edit a depot specification.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 depots<\/div>\n<\/td>\n<td>Display a list of depots known to the Perforce server.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 describe<\/div>\n<\/td>\n<td>Provides information about changelists and the changelists\u2019 files.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 groups<\/div>\n<\/td>\n<td>List groups of users.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 group<\/div>\n<\/td>\n<td>Add or delete users from a group, or set the maxresults, maxscanrows, and timeout limits for the members of a group.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 have<\/div>\n<\/td>\n<td>List files and revisions that have been synced to the client workspace<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 info<\/div>\n<\/td>\n<td>Display information about the current client and server.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 integrate<\/div>\n<\/td>\n<td>Open files for branching or merging.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 integrated<\/div>\n<\/td>\n<td>Show integrations that have been submitted.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 job<\/div>\n<\/td>\n<td>Create or edit a defect, enhancement request, or other job specification.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 jobs<\/div>\n<\/td>\n<td>List jobs known to the Perforce server.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 label<\/div>\n<\/td>\n<td>Create or edit a label specification and its view.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 labels<\/div>\n<\/td>\n<td>Display list of defined labels.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 lock<\/div>\n<\/td>\n<td>Lock an opened file against changelist submission.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 login<\/div>\n<\/td>\n<td>Log in to a Perforce server by obtaining a ticket.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 logout<\/div>\n<\/td>\n<td>Log out of a Perforce server by removing or invalidating a ticket.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 passwd<\/div>\n<\/td>\n<td>Change a user\u2019s Perforce password on the server.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 rename<\/div>\n<\/td>\n<td>Renaming files under Perforce.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 resolve<\/div>\n<\/td>\n<td>Resolve conflicts between file revisions.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 revert<\/div>\n<\/td>\n<td>Discard changes made to open files.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 set<\/div>\n<\/td>\n<td>Set Perforce variables in the Windows registry.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 submit<\/div>\n<\/td>\n<td>Send changes made to open files to the depot.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 sync<\/div>\n<\/td>\n<td>Copy files from the depot into the workspace.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 tag<\/div>\n<\/td>\n<td>Tag files with a label.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 triggers<\/div>\n<\/td>\n<td>Edit a list of scripts to be run conditionally whenever changelists are submitted, forms are updated, or when integrating Perforce with external authentication mechanisms.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 user<\/div>\n<\/td>\n<td>Create or edit Perforce user specifications and preferences.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 users<\/div>\n<\/td>\n<td>Print a list of all known users of the current server.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 verify<\/div>\n<\/td>\n<td>Verify that the server archives are intact.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\n<div>p4 workspace<\/div>\n<\/td>\n<td>Create or edit a client workspace specification and its view.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Command Description p4 add Open file(s) in a client workspace for addition to the depot. p4 admin Perform administrative operations on the server. p4 branch Create or edit a branch specification and its view. p4 change Create or edit a changelist specification. p4 changelists List submitted and pending changelists. p4 changelist Create or edit a&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[370],"tags":[824,1961,373,4491,3204,3214],"class_list":["post-4570","post","type-post","status-publish","format-standard","hentry","category-perforce","tag-command-line","tag-p4-command-line","tag-perforce","tag-perforce-command-line-cheatsheet","tag-perforce-command-line","tag-perforce-command-line-reference"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=4570"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4570\/revisions"}],"predecessor-version":[{"id":5424,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4570\/revisions\/5424"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=4570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=4570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=4570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}