Skip to main content

CLI Reference

Graft provides 8 commands for managing database snapshots:
CommandDescription
initInitialize Graft on a target database container
commitSnapshot the current branch state
checkoutCreate or switch to a data branch
listView all branches with size and integrity status
verifyCheck Merkle integrity of a branch
rollbackRevert to a previous commit
resetReset current branch to main’s state
deleteRemove a branch and its commits

Global Flags

FlagDescription
--helpDisplay help for any command
--versionPrint version information