Selected Tag: client

1 post

Creating a perforce client with command line

Creating a p4 workspace through command line is not that fast forward and the documentation about it is rather confusing. You want to set the Root Directory, some settings and the proper mapping. Here is how you set it up in your pipeline. First, create a client workspace manually and configure it as you want including the default mapping you want. This workspace is not to be used by a user but will be used as a template to inherit the mapping and some settings. Name it properly and make sure not to delete it. In my case I called it “templateWorkspace“ Now to the real magic – the command:

[rootFolder] = client root folder [templateWorkspace] – an existing workspace with proper settings and mappings [nameOfNewWorkspace] – name of the new workspace you want to create   Hope this helps some of you guys Please follow and like: