braid docs

braid rollback

Update braid.lock so a marketplace source points to the previous active version, then reinstall it with --locked.

Usage

braid rollback <source> [options]

Arguments

ArgumentDescription
sourceMarketplace source in the format @handle/slug

How it works

braid rollback:

  1. reads the currently locked version from braid.lock
  2. looks for the previous active marketplace version
  3. rewrites the lockfile entry to that older version

It does not reinstall content by itself. After rollback, run:

braid install @handle/slug --locked

Options

OptionDescription
-s, --server <url>Override the braid server URL

Example

braid rollback @acme/react-standards
braid install @acme/react-standards --locked

Limitations

  • Rollback currently supports marketplace sources only.
  • The source must already exist in braid.lock.
  • If the current version is 1, there is no previous version to roll back to.