Skip to content

Reference

Complete reference documentation for pfig syntax, API, and command-line interface.

Documentation Sections

  • Syntax Reference - Complete pfig language syntax, including bindings, providers, includes, externals, and expressions
  • CLI Reference - Command-line interface for view, validate, run, diff, fmt, bundle, replay, and install-rules
  • API Reference - Python API documentation for instantiate(), execute_pfig(), and parse_pfig_source()
  • LSP API - API for LSP-based editors (parsing, indexing, go-to-definition, diagnostics, semantic tokens)
  • Snapshot Format - Specification of snapshot log.json and payload contents
  • Troubleshooting - Common issues and solutions

Syntax

  • The @ Sigil - Understanding when to use @ for references
  • Imports - Importing Python modules and symbols
  • Includes - Modularize configs with namespaces
  • Values - Constants and configuration values
  • Providers - Lazy recipes for creating objects

API

CLI

Snapshots