diff --git a/ipfs-cluster-service/main.go b/ipfs-cluster-service/main.go index 5fb52cf16..6b04f7011 100644 --- a/ipfs-cluster-service/main.go +++ b/ipfs-cluster-service/main.go @@ -252,6 +252,14 @@ configuration. Name: "state", Usage: "Manage ipfs-cluster-state", Subcommands: []cli.Command{ + { + Name: "version", + Usage: "display the shared state format version", + Action: func(c *cli.Context) error { + fmt.Printf("%d\n", mapstate.Version) + return nil + }, + }, { Name: "upgrade", Usage: "upgrade the IPFS Cluster state to the current version",