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

P4 CLI Documentation | 2026.1

# Sync files from the depot to your client workspace

Syncing means to retrieve files from the depot into your workspace. To do this, use the `p4 sync` command, which specifies the files and directories you want to retrieve from the depot. You do this to obtain the latest changes that have been made by others and then submitted to the depot. These changes include any edits, adds, or deletes.

You can only sync files that are mapped in your workspace view. For more information on workspace views, see Configure workspace views.

    p4 sync ...

By passing in `...`, we request to sync all files in the current directory.

Suppose that another user has made changes to `file1.cc` and `file3.cc`. The sync operation might output:

    //JamCode/main/file1.cc#3 - updating /Users/bruno/workspace/tutorial/file1.cc
    //JamCode/main/file3.cc#5 - updating /Users/bruno/workspace/tutorial/file3.cc

Your search for returned results