Commands
dub migrate
Migrate DubStack repo-local data between storage formats.
Usage
# Move state.json into state.sqlite (and opt the repo into the SQLite backend)
dub migrate storage --to sqlite
# Move state.sqlite back to state.json
dub migrate storage --to jsondub migrate storage
Copy DubStack state across storage backends and switch
storage-backend config to the destination.
| Flag | Description |
|---|---|
--to <backend> | Required. Destination backend: json or sqlite |
Notes
- The copy is performed first; the config flip only happens if the copy succeeds. Running it when the destination already matches the current backend is a no-op (with a warning).
- The summary line reports how many stacks and branches were migrated.
- Storage backend can also be toggled directly with
dub config storage-backend <backend>, butdub migrate storageis the safe path because it preserves existing state.
See also: dub config storage-backend, dub init.
dub trunk
Show or manage configured trunk branches for multi-trunk repos.
dub rename
Rename a tracked branch and propagate the change through DubStack state, children's parent refs, and (when linked) the remote branch. The associated PR's head ref stays on the original branch name — GitHub doesn't allow editing a PR's head.