Skip to content

execute

fialr execute <plan_csv> <target> --reviewed

Execute a standalone plan.csv produced by the plan command. Moves and renames files according to the plan entries. Requires explicit --reviewed confirmation.


ArgumentDescription
plan_csvPath to the plan.csv file from a previous fialr plan run (required)
targetRoot directory of the file corpus (required)
OptionDescription
--reviewedConfirm that the plan has been reviewed (required)
--jobs-dir PATHDirectory for job artifacts (default: .fialr/jobs)

execute reads a plan.csv file and applies the operations it describes. This is the standalone execution path — an alternative to fialr organize --execute --reviewed, which runs the full pipeline in one command.

The typical workflow is:

  1. Run fialr plan <target> -o ./plan to generate a plan
  2. Review plan_preview.md and plan.csv
  3. Run fialr execute ./plan/plan.csv <target> --reviewed to apply it

The --reviewed flag is mandatory. Without it, the command refuses to run. This is a deliberate friction point: someone must confirm they have read the plan before any files move.

For each entry in the plan:

  1. Load and validate the plan CSV
  2. Create a job directory for tracking
  3. Execute all plan operations (moves, renames) with hash verification
  4. Log every operation to the append-only audit ledger
  5. Record provenance (original path, original name) in XATTRs and SQLite

Every execution creates a job directory under --jobs-dir:

.fialr/jobs/{YYYY-MM-DD}_execute_{uuid}/
log.json # append-only operation log
checkpoint.json # last completed operation index

execute ./plan/plan.csv ~/Documents --reviewed
EXECUTE plan.csv → ~/Documents
entries 812
moved 798
skipped 14
errors 0
elapsed 4.1s

The exit code is 0 when there are no errors, 1 otherwise.


Terminal window
# Execute a reviewed plan
fialr execute ./plan/plan.csv ~/Documents --reviewed
# Specify a custom jobs directory
fialr execute ./plan/plan.csv ~/Documents --reviewed --jobs-dir ./jobs

  • plan — generate the plan.csv that this command consumes
  • organize — run the full pipeline in one command
  • validate — verify file integrity after execution
  • undo — reverse operations if needed