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

P4 CLI Reference | 2025.1

# Putting it all together

Combining the various elements allows you to build aliases.

- Make a new task stream

  If your streams are stored in the depot named `//stream`, here’s how you would make a new task stream:

  Copy

      newTaskStream $(task) $(parent) = stream -o -t task -P //stream/$(parent) \
                                  //stream/$task) &gt; $(streamSpec) &amp;&amp;
                                  stream -i &lt; $(streamSpec) &amp;&amp;
                                  populate -r -S //stream/$(task) &amp;&amp;
                                  client -s -S //stream/$(task) &amp;&amp;
                                  sync

  Then switching to a new stream becomes simple:

       p4 newTaskStream job084103 bp-dev

- Delete a stream permanently with p4 obliterate

      delete-stream $(branch) = stream -d //stream/$(branch) &&
                              obliterate -y //stream/$(branch)...

- Make an alias of an alias

      checkout = sync
      commit = submit

      co  = checkout
      cmt = commit

Your search for returned results