Skip to content

state show

Print the schema recorded in the state store as human-readable text. This is a read of what NSchema last recorded, useful for inspecting state or diffing it against import output.

Terminal window
nschema state show # read the configured BACKEND store
nschema state show ./state.json # read a state file directly off disk

Pass a path to read a state file straight from disk instead of the configured store.

  • file (optional) — path to a state file on disk to read instead of the configured store.
  • -s, --scope <name> — limit the output to specific namespaces. May be repeated.