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

P4 CLI Documentation | 2025.2

# Create a stream depot

For an introduction to streams, see the Streams chapter.

Create a stream depot in which the stream you create in the next step will reside.

1. At the command line, run the p4 depot command:

       p4 depot -t stream JamCode

   The `-t` option specifies the type of depot to create, in this case a stream depot. JamCode is the name of the depot you’re creating.

2. Notice that the depot specification opens in your text editor:

   Copy

       # A Perforce Depot Specification.
       #
       #  Depot:       The name of the depot.
       #  Owner:       The user who created this depot.
       #  Date:        The date this specification was last modified.
       #  Description: A short description of the depot (optional).
       #  Type:        Whether the depot is 'local', 'remote',
       #               'stream', 'spec', 'archive', 'tangent',
       #               or 'unload'.  Default is 'local'.
       #  Address:     Connection address (remote depots only).
       #  Suffix:      Suffix for all saved specs (spec depot only).
       #  StreamDepth: Depth for streams in this depot (stream depots only).
       #  Map:         Path translation information (must have ... in it).
       #  SpecMap:     For spec depot, which specs should be recorded (optional).
       #
       # Use 'p4 help depot' to see more about depot forms.

       Depot:          JamCode
       Owner:          bruno
       Date:           2024/02/22 13:20:06
       Description:
           Created by bruno.
           Use a tab to indent any lines below the field name!

       Type:           stream
       StreamDepth:    //JamCode/1
       Map:            JamCode/...

3. Regarding the StreamDepth: field, see "Working with stream depots" in the P4 CLI Reference.
4. Save the file and exit the editor.
5. Notice that the command line now shows: Depot JamCode saved.

Your search for returned results