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

C/C++ API Documentation | 2026.1

# ServerHelperApi::CloneFromRemote(int,const char*,ClientUser*,Error*)

Populates a personal server based on a remote specification.

Virtual? | No |
Class | `ServerHelperApi` |
Arguments | `int depth` | specifies the number of revisions to fetch for each file
| `const char *df` | optional debug flag; set to 0 to leave it unset
| `ClientUser *ui` | a pointer to a `ClientUser` object
| `Error *e` | a pointer to an `Error` object
Returns | `int` | indicates success of command

## Notes

See the notes for the `StrPtr*` version of `CloneFromRemote()` for details.

Your search for returned results