admin

hub_clone

Clone a dataset from a hub into a new local database.

strata clone

wire hub_clone

Clones a dataset from a hub into a new local database directory. Resolution, download, verification, reconstitution, and origin recording run once behind this command; the session database is not touched. The destination directory must not exist or must be empty. When the hub URL is not given, the layered resolver selects it from the flag, environment, and config layers.

Status commands return a scalar or compact status payload and do not mutate database state.

To see the complete help for this command, run:

strata clone --help

Parameters

NameTypeRequiredDescription
datasetstringyesDataset to clone.
deststringyesDestination directory (must not exist, or be empty).
branchstring or nullnoBranch to fetch. Defaults to the dataset's default branch.
hub_urlstring or nullnoExplicit hub URL; when absent the 5-layer resolver runs (flag, `STRATA_HUB_URL`, project config, global config).

Returns

StatusResponse<HubClone>

  • dataobject
  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

← All 11 Admin commands

agents: this page as markdown → /docs/reference/admin/hub_clone.md