I've created a workspace through the GUI using p4v
in the following path:
/home/RND/abrodov/Perforce/abrodov_tlv-cc-32_93
I'm trying to use the p4
commands, for example i've tried:
p4 sync -f
and i got the following error:
Client 'tlv-cc-32' unknown - use 'client' command to create it.
This is the environment variable that i'm using for P4
:
export p4v=/opt/p4v-2014.2.973065/bin
export P4PORT=IP:PORT
export P4USER=$USER
export P4CLIENT=$HOSTNAME
alias p4v="p4v &"
export PATH=$p4v:$PATH
Since client 'tlv-cc-32' is unknown to the server, that must not be the correct name of the client you're using with P4V.
Run
p4 clients -u $P4USER
to get a list of all your workspace names, then find the one that you're using with P4V. (Alternatively, in P4V, use the "Edit Current Connection" menu to see your "Workspace name:")
Then set P4CLIENT to the correct name of your P4V workspace, and use 'p4 info' to verify that the server associates that client name with your workstation's root directory.
Then
p4 sync -f
will work just fine.
(Though, one wonders, why do you feel the need to run 'p4 sync -f'?)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With