state pull
Download the raw state payload from the configured state store, exactly as stored. Where
state show renders the recorded schema for reading, pull downloads the payload for
backup, inspection with your own tools, or hand-editing before a state push.
nschema state pull # write the payload to stdoutnschema state pull ./backup.json # write the payload to a fileWithout a file argument the payload is written to standard output with no other narration:
nschema state pull > backup.jsonPull never interprets the payload, so state that has become unreadable (a corrupt or truncated payload) can still be
pulled for repair; fix it by hand, and push it back.
Arguments
Section titled “Arguments”file(optional) — write the payload to this file instead of standard output.