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
| Argument | Description |
|---|---|
source | Marketplace source in the format @handle/slug |
How it works
braid rollback:
- reads the currently locked version from
braid.lock - looks for the previous active marketplace version
- rewrites the lockfile entry to that older version
It does not reinstall content by itself. After rollback, run:
braid install @handle/slug --locked
Options
| Option | Description |
|---|---|
-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.