Skip to content

nuf policy and nuf spend commands

Generated from nuf docs --json at nuf commit 2e6607e (2026-12-01). nuf is not released yet: this is its main branch.

nuf policy

Policy as the folder holds it: the board's numbers, the providers and pools with their caps, the guard classes, its hash (of the parsed data, so a comment does not change it), and whether that Policy is adopted (if not, every act but the stops is held).

  • Read: writes nothing to the record.
  • Takes --json.
nuf policy [--json]

Exit codes: 0 yes, 2 cannot judge, 64 usage, 70 bug.

Examples
nuf policy
nuf policy --json

nuf policy change

Adopt Policy as config/policy.yaml holds it now, by its hash, so held acts run again; it edits no file (the form that edits Policy comes with the policy guard).

  • Act: writes records to the ledger.
  • Yours to run, never an agent's.
  • Takes --dry-run.
  • Takes --json.
nuf policy change --by <session> [--dry-run] [--json]
FlagMeaning
--by <session> (required)Who adopts it (the operator's yes admits it; the policy guard, once it lands, asks first)

Exit codes: 0 yes, 2 cannot judge, 64 usage, 70 bug.

Examples
nuf policy change --by operator

nuf spend

Money per provider against its caps, today and this month: spent, reserved, a forecast from usual minutes, the warnings (each crossing once, from the ledger's history) and the switch-off.

  • Read: writes nothing to the record.
  • Takes --json.
nuf spend [--now <YYYY-MM-DDTHH:MM:SS>] [--json]
FlagMeaning
--now <YYYY-MM-DDTHH:MM:SS>Fix the clock for this call

Exit codes: 0 yes, 2 cannot judge, 64 usage, 70 bug.