{"id":287,"date":"2010-11-25T09:09:08","date_gmt":"2010-11-25T09:09:08","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2010\/11\/25\/basic-perforce-command\/"},"modified":"2025-02-01T22:39:43","modified_gmt":"2025-02-01T22:39:43","slug":"basic-perforce-command","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/basic-perforce-command\/","title":{"rendered":"Basic Perforce Command &#8211; P4 Command Reference"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4350\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/11\/perforce-command.png\" alt=\"perforce-command-reference\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2010\/11\/perforce-command.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2010\/11\/perforce-command-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><\/td>\n<td height=\"20\">\n<h1>Command<\/h1>\n<\/td>\n<td>\n<h1>Description<\/h1>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"76\"><\/td>\n<td width=\"228\" height=\"20\">\n<div>p4 add<\/div>\n<\/td>\n<td width=\"996\">Open file(s) in a client workspace for addition to the depot.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\n<div>p4 changelists<\/div>\n<\/td>\n<td>List submitted and pending changelists.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\n<div>p4 groups<\/div>\n<\/td>\n<td>List groups of users.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\n<div>p4 labels<\/div>\n<\/td>\n<td>Display list of defined labels.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\n<div>p4 rename<\/div>\n<\/td>\n<td>Renaming files under Perforce.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td height=\"20\">\n<div>p4 resolve<\/div>\n<\/td>\n<td>Resolve conflicts between file revisions.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\n<div>p4 tag<\/div>\n<\/td>\n<td>Tag files with a label.<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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 height=\"20\">\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&#8230; <\/p>\n","protected":false},"author":1,"featured_media":4350,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[370],"tags":[1707,4073,333,4076,4075,4079,373,4078,4077,3207,4074],"class_list":["post-287","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-perforce","tag-basic","tag-basic-perforce-command","tag-command","tag-list-of-perforce-commands","tag-p4-command","tag-p4-command-cheatsheet","tag-perforce","tag-perforce-command-cheat-sheet","tag-perforce-command-guide","tag-perforce-command-reference","tag-perforce-commands"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/287","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":4351,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions\/4351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/4350"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}