Skip to content

Commit

Permalink
feat(cmd): snapshots command (#2825)
Browse files Browse the repository at this point in the history
Closes #2824

## Testing

I verified the snapshots command was added

```shell
$ ./build/celestia-appd snapshots
Manage local snapshots

Usage:
  celestia-appd snapshots [command]

Available Commands:
  delete      Delete a local snapshot
  dump        Dump the snapshot as portable archive format
  export      Export app state to snapshot store
  list        List local snapshots
  load        Load a snapshot archive file (.tar.gz) into snapshot store
  restore     Restore app state from local snapshot

Flags:
  -h, --help   help for snapshots

```
  • Loading branch information
rootulp authored and cmwaters committed Nov 9, 2023
1 parent 68e0f47 commit f814a63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/celestia-appd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/keys"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/client/snapshot"
"github.com/cosmos/cosmos-sdk/server"
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
Expand Down Expand Up @@ -140,6 +141,9 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig encoding.Config) {
keys.Commands(app.DefaultNodeHome),
qgbcmd.VerifyCmd(),
)
rootCmd.AddCommand(
snapshot.Cmd(NewAppServer),
)
}

func addModuleInitFlags(startCmd *cobra.Command) {
Expand Down

0 comments on commit f814a63

Please sign in to comment.