Skip to content

feat(cli): add mocad snapshots command tree#243

Merged
puneet2019 merged 2 commits into
mainfrom
chore/add-snapshots-cli
Jun 3, 2026
Merged

feat(cli): add mocad snapshots command tree#243
puneet2019 merged 2 commits into
mainfrom
chore/add-snapshots-cli

Conversation

@puneet2019
Copy link
Copy Markdown
Contributor

Summary

Registers the cosmos-sdk client/snapshot CLI under mocad snapshots so operators can manage local state-sync snapshots from the binary.

The runtime was already wired (baseapp.SetSnapshot + SnapshotStore at data/snapshots in cmd/mocad/cmd/root.go); only the CLI surface was missing.

What you get

  • mocad snapshots list — list available snapshots
  • mocad snapshots delete <height> <format> — delete a snapshot
  • mocad snapshots dump — dump a snapshot to a portable archive
  • mocad snapshots export — export current app state as a snapshot
  • mocad snapshots load — load a snapshot archive into the store
  • mocad snapshots restore — restore app state from a local snapshot

Test plan

  • go build ./cmd/mocad
  • mocad snapshots --help shows all 6 subcommands
  • CI

Registers the cosmos-sdk `client/snapshot` CLI under `mocad snapshots`
so operators can manage local state-sync snapshots:
list, delete, dump, export, load, restore.

The runtime was already wired (baseapp.SetSnapshot + SnapshotStore at
data/snapshots in root.go) — only the CLI surface was missing.
@puneet2019 puneet2019 requested a review from a team June 2, 2026 11:48
@puneet2019 puneet2019 merged commit 0c616f7 into main Jun 3, 2026
27 checks passed
@puneet2019 puneet2019 deleted the chore/add-snapshots-cli branch June 3, 2026 06:57
puneet2019 added a commit that referenced this pull request Jun 3, 2026
feat(cli): add `mocad snapshots` command tree (cherry-pick from #243)
puneet2019 added a commit that referenced this pull request Jun 4, 2026
feat(cli): add `mocad snapshots` command tree (cherry-pick from #243)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants