Define a workspace and bind it to the stream

Before you can work in a stream, you must define a workspace associated with the stream. When you associate a workspace with a stream, Helix Server generates the workspace view based on the structure of the stream. Stream users never need edit the workspace view (and, in fact, cannot manually alter it). If the structure of the stream changes, Helix Server updates the views of workspaces associated with the stream on an as-needed basis.

Note

Classic Helix Server users define a workspace by issuing the p4 client command without passing the -S option, and edit the workspace view manually by editing the View: field in the client spec. See Configure workspace views.

Your Helix Server administrator may already have configured a client workspace for your computer. If so, the Client field in the client spec - displayed when you issue the p4 client command — contains this name.

If not, to create a workspace for a stream:

  1. Issue the p4 client command, using the -S option to specify the name of the associated stream.

    For example:

    $ p4 client -S //JamCode/main

    The workspace specification form is displayed.

  2. Configure the workspace root directory and any other desired settings, and save the specification. See Define a client workspace for details.
  3. Verify that your workspace has been created using p4 clients.

    For example:

    $ p4 clients -S //JamCode/main

Now you can populate the mainline with files, as described in the next step.