branch

create

Create a new empty root branch.

strata branch create

wire branch_create

Creates an empty root branch with no parent and no data. This is not a fork: the new branch starts from nothing, and its `parent` is null. Use `branch.fork` to start from an existing branch's data. Creating a name that already exists fails with `already_exists.engine.branch`; names reserved for engine control data are rejected.

Successful mutations return an acknowledgement of the outcome: for a state-changing write, the affected target with the mutation effect and commit facts; for mutations that produce a domain result (such as a branch or a promotion outcome), that result object.

To see the complete help for this command, run:

strata branch create --help

Example

Create a new empty branch.

strata branch create featurestrata branch list

Parameters

NameTypeRequiredDescription
branchstringyesBranch name.

Returns

MutationAck<BranchItem>

  • dataBranchItem
  • typestring

Errors

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

← All 10 Branches commands

agents: this page as markdown → /docs/reference/branch/create.md