Skip to content

Output Files Reference

This page describes the main artifacts Netherframe writes in synthesis-oriented workflows.

Default Output Tree

The standard synthesized output lives under .nf.out/ unless you override the CLI inventory output directory.

Typical layout:

.nf.out/
  my-app/
    network/
      nf.tf.json
      plan.sh
      apply.sh
      destroy.sh

When circular-dependency resolution produces a phased Terraform/OpenTofu export, the layout includes an explicit handoff contract:

.nf.out/
  my-app/
    network/
      backend.tf.json
      export-manifest.json
      README.md
      PHASED_EXECUTION.md
      apply.sh
      destroy.sh
      plan.sh
      phase1/
        backend.tf.json
        nf.tf.json
      phase2/
        backend.tf.json
        nf.tf.json

Main Files

nf.tf.json : the synthesized infrastructure definition for the stack in Terraform JSON form

plan.sh : helper script for running a plan in that stack directory

apply.sh : helper script for applying the stack from that directory

destroy.sh : helper script for destroying the stack from that directory

export-manifest.json : machine-readable contract for phased Terraform/OpenTofu exports (format nf-phased-terraform-export, version 1): the phases in apply order, each with its resources, the references it leaves out or reads from values an earlier phase recorded, and the phases of other stacks to apply before it; the destroy steps; the outputs recording values; and the stack's backend or state store and the file that configures it, never its settings

backend.tf.json : shared backend or state store configuration emitted once at the stack root and linked into each phase directory

README.md : operator-facing instructions for applying and destroying phased exports in order

PHASED_EXECUTION.md : cycle summary and compatibility-oriented phased execution notes

apply.sh / destroy.sh / plan.sh : the canonical stack entrypoints; for phased exports they read export-manifest.json indirectly via generated phase-aware stack scripts and run each phase in the correct order

Scope Of The Output Tree

The tree is organized by:

  • app
  • stack

That matters because many CLI commands resolve stacks from this inventory rather than from your Python source directly.

Important Configuration Distinction

There are two related but different output-directory concepts:

  • synthesis output chosen by app/runtime configuration
  • CLI inventory output chosen by [tool.nf].outdir or nf --outdir style overrides

If commands cannot find stacks where you expect them, review both.

When These Files Matter Most

These files are most relevant for:

  • nf plan --stack ...
  • nf apply --stack ...
  • nf deploy in synthesis-oriented workflows
  • manual inspection of generated infrastructure
  • external handoff of phased Terraform/OpenTofu artifacts to teams that do not run nf

Important: phased Terraform/OpenTofu output is now treated as an explicit export surface, not as a normal local nf ... --stack runtime target. Use the generated README.md / export-manifest.json for handoff automation, or use direct execution for local deployment workflows.

They are less central in hybrid execution, where Terraform JSON is not the main runtime artifact.