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

P4 Server Administration Documentation | 2025.2

# Local depots

The default type of depot is `local` and local depots can reside on servers that are local, remote, or shared.

To define a new local depot, call `p4 depot depotname` where `depotname` is the name for the new local depot, and edit only the `Map` field in the resulting form.

For example, to create a new depot called `book` with the files stored in the local P4 Server namespace in a root subdirectory called `book` (that is, `$P4ROOT/book`), enter the command `p4 depot book`, and fill in the resulting form as follows:

    Depot:       book
    Type:        local
    Address:     local
    Suffix:      .p4s
    Map:         book/...

The `Address:` and `Suffix` fields do not apply to local depots and are ignored.

By default, the `Map` field on a local depot points to a depot directory matching the depot name, relative to the server root (`P4ROOT`) setting for your server. To store a depot’s versioned files on another volume or drive, specify an absolute path in the `Map` field. This absolute path need not be under `P4ROOT`. On Windows, such an absolute path in the `Map` field must be specified with forward slashes in the `p4 depot` form. For example, `d:/newdepot/`

See The server.depot.root configurable.

Your search for returned results