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]
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 |
|---|---|
|
|
Unload the client workspace, and then reload if it had not been unloaded previously. |
|
|
Administrator force option, which allows reloading of labels and
workspaces owned by other users. Requires |
|
|
Reload the specified label from the unload depot. |
|
|
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 Starting with 2026.2, when you migrate a client workspace this way, The |
|
|
Reload the specified task stream from the unload depot. |
|
|
See Global options. |
Usage notes
| Can file arguments use revision specifier? | Can file arguments use revision range? | Minimal access level required |
|---|---|---|
|
No |
No |
|
- 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
MaxScanRowsandMaxResultshigh enough (in thep4 groupform) that users do not need to ask for assistance withp4 unloadorp4 reloadoperations. - Preservation of exclusively opened and globally locked files applies only when
p4 reload -pmigrates a client workspace between commit and edge servers. If you runp4 unloadon 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 withp4 lockwithout the-goption 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 addresscommand again.
Related commands
|
To unload a client workspace or label name |