Skip to content

plugin update

If you’re using plugin ranges, the plugin update command re-resolves the version ranges your PLUGIN statements declare and updates the lockfile with the new matching versions.

If you’re not using plugin ranges, you can just update the version attribute in your PLUGIN statement and run init again (you might need to pass --environment if the plugin is only used in a given environment).

Terminal window
nschema plugin update # every plugin declared with a range
nschema plugin update postgres # just this one, by its PLUGIN label

Each updated plugin is reported with what changed, and the new pins are restored so the project stays usable:

✔ NSchema.Postgres 5.0.0 → 5.1.0
NSchema.Aws 5.0.0 (already up to date)
  • plugin (optional) — the label of the plugin to update, as named by its PLUGIN statement. Omitting a plugin name defaults to every plugin.