Initial setup

This section gives you an overview of the tasks for setting up your command client and shared server. The tasks in this workflow should be performed once, and in the order presented in the following table.

After you have set up your command client and shared server, use the tutorial to get familiar with common P4 tasks.

Step Task Stream or classic user

1

Create a working directory

Both

2

Log in to the P4 Server or Start a P4 Server (Linux and macOS)

Both

3

Start up P4 CLI and verify the connection to the server

Both

4

Create a stream depot

Stream

5

Create a mainline stream

Stream. Classic users, see Organize the depot.

6

Define a workspace

Both

7

Bind the workspace to the stream

Stream

8

Populate the mainline stream

Stream. Classic users populate a codeline.

9 Branch and populate child streams Stream