p4 reload

Reloads the specified workspace, label, or task stream from the unload depot.

Syntax

p4 [g-opts] reload [-f] [-c client | -l label | -s stream] [-p address]

Syntax and naming conventions

Description

The p4 reload command reloads the state of an unloaded workspace, label, or task stream from the unload depot. (See unload depot in the P4 Server Administration Documentation.)

Options

Option Description

-c client

Unload the client workspace, and then reload if it had not been unloaded previously.

-f

Administrator force option, which allows reloading of labels and workspaces owned by other users. Requires admin access.

-l label

Reload the specified label from the unload depot.

-p address

In multi-server environments, reload an unloaded client workspace or label from the edge or commit server specified by the address. This migrates that workspace or label from that server to this one. For the migration to succeed, the service user of each server must be properly authenticated with the other server.

When you use -p with the -c option, the server automatically unloads the client workspace on the remote server and then reloads it, if it had not been unloaded previously.

Starting with 2026.2, when you migrate a client workspace this way, p4 reload preserves the opened files of the workspace, including files that are exclusively opened (+l file type) or globally locked with p4 lock -g. The exclusive lock stays in place on the commit server throughout the move, so no other user can lock the file while the workspace moves. When the remote server is an edge server, p4 reload promotes the non-promoted shelves of the workspace to the commit server so that the shelves remain available after the move. Both servers must run 2026.2 or later.

The address parameter can be specified either as the P4PORT or as the server id of the server. If you specify a server id, the server specification must contain the correct P4PORT value in its Address field.

-s stream

Reload the specified task stream from the unload depot.

g-opts

See Global options.

Usage notes

Can file arguments use revision specifier? Can file arguments use revision range? Minimal access level required

No

No

write

  • To reload a workspace or label, a user must be able to scan all the files in the workspace’s have list The list of file revisions most recently synced from the depot into the workspace. In other words, the list of files that the client workspace has. or files tagged by the label. Administrators should set MaxScanRows and MaxResults high enough (in the p4 group form) that users do not need to ask for assistance with p4 unload or p4 reload operations.
  • Preservation of exclusively opened and globally locked files applies only when p4 reload -p migrates a client workspace between commit and edge servers. If you run p4 unload on its own for such a workspace, the command fails with an error that the workspace has files exclusively or globally opened. The same error occurs for a workspace on a standard server and for a client workspace of a graph depot. A lock that you take with p4 lock without the -g option on the commit server is not carried to the destination server.
  • If the reload on the destination server fails after the workspace is unloaded from the remote server, the workspace stays unloaded on the remote server, and its locks are preserved. To recover, run the same p4 reload -c client -p address command again.

Related commands

To unload a client workspace or label name

p4 unload