{"id":1710,"date":"2017-12-06T04:48:50","date_gmt":"2017-12-06T04:48:50","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1710"},"modified":"2025-02-01T22:39:35","modified_gmt":"2025-02-01T22:39:35","slug":"perforce-password-p4passwd-invalid-or-unset","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/perforce-password-p4passwd-invalid-or-unset\/","title":{"rendered":"Perforce password (P4PASSWD) invalid or unset."},"content":{"rendered":"<p><strong>scmuser created the topic: Perforce password (P4PASSWD) invalid or unset.<\/strong><br \/>\nHi,<\/p>\n<p>I am trying to loginb perforce using command line using following command&#8230;<br \/>\np4 -p <IP> -u Abinash_Misra sync \/\/depot\/branchname\/&#8230;<\/p>\n<p>but i am getting following error..<br \/>\nPerforce password (P4PASSWD) invalid or unset.<\/p>\n<p>Any idea how to pass password over command line to login perforce?<\/p>\n<p><strong>rajeshkumar replied the topic: Re: Perforce password (P4PASSWD) invalid or unset.<\/strong><br \/>\nYou can use following command to login perforce over command line&#8230;<br \/>\np4 -p <IP> -u Abinash_Misra -P <Password> sync \/\/depot\/branchname\/&#8230;<\/p>\n<p>You can provide passwords to the Perforce server in one of three ways:<\/p>\n<p>1. Set the environment or registry variable P4PASSWD to the password value;<\/p>\n<p>2. Create a setting for P4PASSWD within the P4CONFIG file;<\/p>\n<p>3. Use the -P password flag on the Perforce client command line, for example:<br \/>\np4 -u ida -P idaspassword sync<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>scmuser created the topic: Perforce password (P4PASSWD) invalid or unset. Hi, I am trying to loginb perforce using command line using following command&#8230; p4 -p -u Abinash_Misra sync \/\/depot\/branchname\/&#8230; but&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[370],"tags":[373],"class_list":["post-1710","post","type-post","status-publish","format-standard","hentry","category-perforce","tag-perforce"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1710","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=1710"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1710\/revisions"}],"predecessor-version":[{"id":1711,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1710\/revisions\/1711"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}