Perforce Public Knowledge Base - Formless Command Line Client Creation on Windows
Reset Search
 

 

Article

Formless Command Line Client Creation on Windows

« Go Back

Information

 
Problem

How do I create clients on the Windows command line without using sed or editing form data?


Solution

When creating a new client, the only pieces of information that are required are the name of the client and its root. The name is given upon invocation, but the workspace root normally has to be specified in the creation form or automatically generated by sed. However, you can take advantage of the fact that the workspace root is set, by default, to the directory where the client creation takes place.

If you are creating a client specification called "testme" and you want its root to be "D:\testme_root", you do the following:

  1. Change to the proper directory.

    cd D:\testme_root

Note: This method creates a client specification with the default client view mappings for the user.

  • Run the p4 client command using standard input and output.

    D:\testme_root>p4 client -o testme | p4 client -i
    
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255