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

P4 CLI Documentation | 2025.2

# p4 depots

Display a list of depots known to the P4 Server.

## Syntax

    p4 [g-opts] depots [[-e | -E] nameFilter] -t type] [-a]

Syntax and naming conventions

## Description

Display a list of depots.

The list excludes

- the default graph depot A depot of type graph that is used to store Git repos managed by P4 Server. See also Git Connector and classic depot. named repo unless you use the p4 depots -t graph command

- the extension depot unless a user with the `super` protection uses the p4 depots -t extension command

If a depot is excluded in the protections table for a given user, that user does not see the depot in the output of this command.

Operator users can run this command. (To learn about `operator` users, see the `p4 user` usage notes.)

## Options

Option | Description
--- | ---
`-e nameFilter` | Lists depot specs with a name that matches the nameFilter pattern. `p4 depots -e "h*x*"` finds depots with names like `helix` and `hxadm`. If you use the `*` wildcard, enclose the search pattern in double quotes ("). This option follows the case-sensitivity of the server.
`-E nameFilter` | Makes the matching case-insensitive, even on a case-sensitive server.
`-t type` | List only the depots of the specified type.
`-a` | Lists depots of `all` types, included hidden depots. This is especially useful when the user needs to check map paths for all depots.
`g-opts` | See Global options.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
N/A | N/A | `list` `super` for `p4 depots -t extension` available to an operator user

The command returns no output if there is no object to report on.

## Examples

p4 depots lists the depots of the following types `local`, `remote`, `stream`, `spec`, `unload`, `archive`, `tangent`, `graph`, `trait`.

The output might be similar to the following:

Depot archive 2023/10/23 archive archive/... 'Created by bruno. '
Depot depot 2023/05/27 local depot/... 'Default depot '

To list the depots of a specific type, use the -t option. For example:

p4 depots -t remote
p4 depots -t local
p4 depots -t stream
p4 depots -t spec
p4 depots -t archive
p4 depots -t graph
p4 depots -t trait

## Related commands

To create a remote depot or a new local depot | `p4 depot`
To remove all traces of a file from a depot | `p4 obliterate`

Your search for returned results