execute
fialr execute <plan_csv> <target> --reviewedExecute a standalone plan.csv produced by the plan command. Moves and renames files according to the plan entries. Requires explicit --reviewed confirmation.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
plan_csv | Path to the plan.csv file from a previous fialr plan run (required) |
target | Root directory of the file corpus (required) |
Options
Section titled “Options”| Option | Description |
|---|---|
--reviewed | Confirm that the plan has been reviewed (required) |
--jobs-dir PATH | Directory for job artifacts (default: .fialr/jobs) |
What it does
Section titled “What it does”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.
Workflow
Section titled “Workflow”The typical workflow is:
- Run
fialr plan <target> -o ./planto generate a plan - Review
plan_preview.mdandplan.csv - Run
fialr execute ./plan/plan.csv <target> --reviewedto apply it
Safety gates
Section titled “Safety gates”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.
Execution process
Section titled “Execution process”For each entry in the plan:
- Load and validate the plan CSV
- Create a job directory for tracking
- Execute all plan operations (moves, renames) with hash verification
- Log every operation to the append-only audit ledger
- Record provenance (original path, original name) in XATTRs and SQLite
Job artifacts
Section titled “Job artifacts”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 indexOutput
Section titled “Output”execute ./plan/plan.csv ~/Documents --reviewed
EXECUTE plan.csv → ~/Documents entries 812 moved 798 skipped 14 errors 0 elapsed 4.1sThe exit code is 0 when there are no errors, 1 otherwise.
Examples
Section titled “Examples”# Execute a reviewed planfialr execute ./plan/plan.csv ~/Documents --reviewed
# Specify a custom jobs directoryfialr execute ./plan/plan.csv ~/Documents --reviewed --jobs-dir ./jobs