Is there any way to save the perforce client view to a file for sharing among team

391 Views Asked by At

I want to save the client view in a file so that any member of my team can use the same file and sync similar files. Something like this:

cd new_client_folder
export P4CLIENT=new_client_folder
cat nfs/old_client_view.txt | p4 client -i

I am looking for a way where old_client_view.txt will act as a template and it can automatically replace the root and view fields specified in the old_client_view.txt file.

1

There are 1 best solutions below

6
tkosinski On

You don't need to save it as a file at all, but can save the client view as a template. Then simply import the template:

p4 client -t <client_template> -o <client_name> | p4 client -i