Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2026.1

# Define a workspace

## Non-stream depot

Users of a non-stream classic depot A repository of P4 files that is not streams-based. Uses the Perforce file revision model, not the graph model. The default depot name is depot. See also 'stream depot' and 'graph depot'. define a workspace by running 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.

## Stream depot

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

Your P4 Server administrator might have already configured a client workspace for your computer. If so, the `Client` field in the client spec displays the Client workspace name when the user runs the p4 client command.

If a client workspace has not been configured for your computer, you can create one:

1. Run 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. For details, see Define a client workspace.

3. Verify that your workspace has been created by using `p4 clients`.

   For example:

       p4 clients -S //JamCode/main

The next step is Populate the mainline stream.

Your search for returned results