Export State
Export state with:--for-zero-height flag:
Manually Migrate State
If you want to migrate state manually, e.g. for local testing purpose. Note that for regular chain upgrades, a manual state migration is not required. After exporting your state into a json file, you can replace the oldgenesis.json with new_genesis.json.
migrate command to migrate from a given version to the next one (eg: v0.X.X to v1.X.X):