Create and list depots

A depot A file repository hosted on the P4 Server. A depot is the top-level unit of storage for versioned files, which are also known as depot files, archive files, or source files. It contains all versions of all files ever submitted to the depot. Except for obliterated files, any version of any file can be restored, including deleted files, but not obliterated files. An installation can have multiple depots, and they might be of different types, such as a local depot and a stream depot. stores the files that users create on a P4 Server.

You can put each of your projects:

  • In a separate directory within a single depot

  • In its own separate depot on a single P4 Server

  • In its own depot on its own P4 Server

P4 Server client applications can access files from multiple depots. Depots can be on the P4 Server normally accessed by the P4 Server client, or they can be on a remote server (see Remote depots and multi-server development).

An installation of P4 Server includes the default depot, which has depot as its name.

Create a depot

For a complete list of all the possible depot types, see p4 depot in the P4 CLI Reference, which explains the Form Fields, including the Type field.

To create a depot, use the p4 depot depotname command.

List depots

To list the depots associated with the current P4 Server, use the p4 depots command. The command has options to filter the list by name or type.