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 Nov 8, 2023
1 parent 84b808a commit 7d28fc0
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 @@ -21,6 +21,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 @@ -149,6 +150,9 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig encoding.Config) {
keys.Commands(app.DefaultNodeHome),
bscmd.VerifyCmd(),
)
rootCmd.AddCommand(
snapshot.Cmd(NewAppServer),
)
}

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

0 comments on commit 7d28fc0

Please sign in to comment.