Skip to content

nuf init, nuf where and nuf env

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

nuf init

Make the tool's folder in <dir> (or the current folder), which becomes the project folder: the launcher, the settings from the made-up example with only the local machine enabled in Policy, and that Policy adopted; it refuses the home folder (or a folder above it), a folder inside a Git work tree and a folder that has config/ already, and it needs no folder of its own.

  • Act: writes records to the ledger.
  • Yours to run, never an agent's.
  • Takes --dry-run.
  • Takes --json.
nuf init [<dir>] [--by <session>] [--dry-run] [--json]
ArgumentMeaning
<dir> (optional)The project folder, absolute or relative to the current folder (default: the current folder)
FlagMeaning
--by <session>Who makes the folder: written as the adopter of its first Policy (attribution, not proof); left out, the name of this command, as one types it

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

Examples
nuf init
nuf init ../project --dry-run

nuf where

Where the tool is working: the project folder, the tool's folder, its config, local and state folders, the platform, the settings files in use, the version and command (the launcher's path, what hosts call); it answers in a refused folder too, with what it found and the refusal (2), and warns when NUF_DATA is set, which nothing reads.

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

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

Examples
nuf where
nuf where --json

nuf env

The job environment: each name a job's steps (and env run) get from the folder's env files, with its layer (config/env.yaml, its platform section, config/local/env.yaml); a value only from a shared file, never a local one.

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

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

Examples
nuf env
nuf env --json

nuf env run

Run one command in this folder with the job environment on top of this shell's; it ends with the command's own exit code (the one exception to the exit table). A read: it writes nothing to the record and is never held.

  • Read: writes nothing to the record.
  • Takes --json.
nuf env run -- <command>...
ArgumentMeaning
<command>...The command and its arguments, after -- (never read as flags)

Exit codes: the exit code of the command it ran; only nuf’s own failures before that command starts answer 0 yes, 2 cannot judge, 64 usage, 70 bug.

Examples
nuf env run -- npm test