Skip to content

nschema refresh

Read the live schema and write it to the state store. Use this to seed or repair state.

Terminal window
nschema refresh

It captures the whole schema and so takes no desired-schema or --scope options — with both inputs in config blocks, it runs with no flags at all.

Refresh is how you record drift that happened between applies, or initialize the state store with the current schema before you start managing a database offline.