Skip to content

Foundry CLI (fnd)

The Foundry CLI (fnd or foundry) is the primary orchestration tool for the Software Factory. It allows you to manage, audit, and evolve your entire project fleet from a single interface.

Terminal window
pnpm add -g @saas-maker/cli

Start a new project that is 100% Foundry-compliant from day one.

Terminal window
fnd forge --name <project-slug> --type [next|vite|node]
  • What it does: Creates a project directory, initializes package.json, links Gold Standards, sets up the Operational Layer (ops, db, shield), and writes an AGENTS.md foreman file.

Commands that operate across your entire ~/Desktop/Fleet folder.

CommandPurpose
fnd fleet listShow all projects, statuses, and mission statements.
fnd fleet auditDeep health check (Standard drift + Code Health via Fallow).
fnd fleet fixAutomatically correct standard drift and deploy CI/CD.
fnd fleet run "<cmd>"Execute any shell command across all projects in parallel.
`fnd fleet versions [listfix]`
fnd fleet secrets-syncPush shared environment variables to all .env.local files.
fnd fleet clean [--deep]Reclaim gigabytes of storage by purging build caches and Rust targets.

Run the factory on auto-pilot.

Terminal window
fnd fleet supervise
  • The Daemon: Watches your Cockpit’s Global Error Feed.
  • Auto-Fix: When an error is detected, it automatically dispatches an AI agent to the failing project to debug and commit a fix using your specific skills/ protocols.

Mass-apply architectural changes to the entire fleet.

Terminal window
fnd fleet apply <skill-name>
  • Example: fnd fleet apply protocol-migration
  • Dispatches a swarm of agents to update every repo based on a protocol in your skills/ registry.