Skip to content

script taint

Remove a script’s recorded execution from the state store, so the RUN ONCE script runs again on the next apply.

Terminal window
nschema script taint seed-users

Use it when a run-once script needs to happen again: its effect was undone out-of-band, or its body has changed and you want the new version to run. The next plan will show the script as pending, and the next apply will execute and re-record it. The change runs under the state lock.

  • name (required) — the script’s declared name, as shown by script list.
  • --no-lock — taint without acquiring the state lock. You take responsibility for preventing concurrent runs.