p4 depots

Synopsis

Display a list of depots known to the Perforce versioning service.

Note

This command behaves differently for depots of type graph. See p4 depot.

Syntax

p4 [g-opts] depots [--depot-type=_type_]

Description

Display a list of depots.

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 command description.)

Options

g-opts

See “Global Options”.

--depot-type=type

List only the depots of the specified type

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

N/A

N/A

list

Examples

To list the depots of all types (except graph):

p4 depots

To list the depots of a specific type:

p4 depots --depot-type=remote
p4 depots --depot-type=local
p4 depots --depot-type=streams
p4 depots --depot-type=spec
p4 depots --depot-type=archive
p4 depots --depot-type=graph

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