p4 login. Log in to the Perforce service by obtaining a ticket. Syntax. p4 [g-opts] login [-a -p] [-h host] [user] p4 [g-opts] login [-s] p4 [g-opts] login [-r remote spec] .