Skip to content

Projects: version your work with git

This page is for anyone who wants a versioned, portable copy of their Flowfile work — flows, connections (without their secrets), schedules, and catalog metadata — tracked in a git repository. You'll learn how a project writes your work's definitions to a folder, how to save and open versions, and what does and doesn't end up in git.

What a project is

A project is a git folder holding the definitions of the resources you own. When you save a version, Flowfile writes a deterministic, human-readable copy of your flows, connections and catalog metadata into the project folder and tracks it with git. You get version history, diffs, and a folder you can commit to your own remote, share with a teammate, or copy to another machine.

Your Flowfile database stays the source of truth at runtime. The project folder holds a copy of their definitions:

  • Export (database → files) happens when you save a version. What is unsaved is read when you ask, by comparing your resources with the last version. If the folder holds edits that were not applied, a save asks you to Apply them first (a reload that makes Flowfile match the folder, then saves) or Overwrite them with your resources. Applying replaces changes you made in Flowfile since the last version, so when there are any it lists them and asks again; it keeps a recovery point of them first.
  • Import (files → database) happens only at explicit moments: when you open a project, reload it from disk, or restore an older version.

Not in Flowfile Lite

Projects require the full desktop or server build. The browser-only Flowfile Lite edition does not track work in git.

Secrets never enter the folder

A project folder is safe to commit. Secret values are never written into it — only the manifest of which secret names exist. Connections are written without their bundled credentials. Flowfile also writes a .gitignore into every project (and hardens a hand-written one) so that credential and local-state files can never be committed, including .env, *.secret, *.db, master_key.txt, *.key, *.pem, and any materialized data/ or catalog_tables/.

When you open a project on a new machine, the secret manifest tells Flowfile which values are still missing. Set them by name (see the CLI output below) or fill them in the app afterward.

What's in the folder

A project folder holds YAML files of your resources:

Path Contents
project.yaml Project manifest — name, id, format version and kinds, the kinds of resource the folder describes.
flows/ One .flow.yaml per registered flow. A node names the catalog tables, schemas and flows it uses instead of this install's row ids for them, so a project opened elsewhere reads the same tables. A project saved before this changes its flow files once, on the next save.
connections/database/, connections/cloud/ One .yaml per connection (no credentials).
schedules/ One .yaml per flow, listing its interval and cron schedules, each with an id.
notebooks/ One .notebook.yaml per notebook.
visualizations/ One .visualization.yaml per saved chart: its spec and its source, a table by name or a SQL query. A chart that belongs to a dashboard names it under dashboard, by the dashboard's dashboard_uuid.
dashboards/ One .dashboard.yaml per dashboard: its layout, tabs, tiles and filters. A tile names its chart by the chart's viz_uuid, so a dashboard is its file plus the files of the charts it uses.
secrets.yaml The names of the secrets you created on the Secrets page (no values). Secrets a feature keeps for itself, such as an AI provider key, a Kafka connection's password or the GitHub publish token, are not listed.
tables/ One .table.yaml per catalog table: its definition, its schema and where its data lives, never the data itself. A table's file names its producing flow only when that flow is in the project.
namespaces.yaml, models.yaml, kernels.yaml Catalog metadata manifests.
.gitignore Guards against committing secrets and local data.

A chart's, dashboard's or table's file is named after it (Sales overview becomes dashboards/Sales_overview.dashboard.yaml). Renaming one moves its file; the id inside the file keeps it the same chart or dashboard. Two with the same name get the start of their id added to the file name; two tables whose names differ only in letter case get a short hash of their key added.

A table's file is named after its catalog, schema and name, joined with dots (orders in sales.raw becomes tables/sales.raw.orders.table.yaml). A name with characters a file name cannot hold, a very long name, or a name another table's file already has (one differing only in letter case, say) gets a short hash added.

Folders saved before charts, dashboards and tables had their own files

Project format 2 and older kept every chart in one visualizations.yaml and every dashboard in one dashboards.yaml, and format 3 and older kept every catalog table in one tables.yaml. Such a folder still opens and reads as unchanged. Its next save, or a restore, writes the files above, removes those lists, and sets the format to 4. A Flowfile that reads only an older format then refuses the folder with "written by a newer Flowfile", so upgrade every machine that opens the project before you save from the new version. Releases from before that check exist do not refuse it and read the folder as holding no charts, dashboards or tables.

Folders saved before tables had their own files

Project format 3 and older kept every catalog table in one tables.yaml. Such a folder still opens and reads as unchanged. Its next save writes one file per table under tables/, removes tables.yaml, and sets the format to 4. A Flowfile from before format 4 refuses the folder with "written by a newer Flowfile", so upgrade every machine that opens the project before you save from the new version. With one file per table, two people who change different tables no longer change the same file.

What a version holds

A version is a commit of your resources' definitions: what they are and how they are set up. It holds no table data, no model files, no secret values, no run history, and no users or grants. A version is not a backup of those: on SQLite, Settings → Preferences → Backups snapshots the catalog database, and your data files are yours to back up.

Tracking data artifacts

The track data artifacts toggle (on by default) adds tables and models to the kinds list in project.yaml, or removes them. When on, catalog-table metadata (tables/) and global-model metadata (models.yaml) are written too. Turn it off to keep a project focused on flows and connections and leave data-artifact metadata out of git entirely. The materialized table data itself is never committed regardless — only its metadata.

Working with projects in the app

Project actions live on the Project Tracking page: Settings → Workspace → Project (the gear icon in the left sidebar). The core operations are:

  • Initialize a new project in a folder — writes the manifest and .gitignore, initializes git, and makes a first commit.
  • Open an existing project folder — rebuilds your database resources from the files and reports what was imported.
  • Save a version — projects the current state to files and commits it with your message.
  • Restore a version — resets the folder to an earlier commit and rebuilds the database to match.
  • Reload from disk — accepts changes made to the files outside Flowfile (for example a git pull) by rebuilding the database from them.

Files in the folder that Flowfile did not write, such as a README.md or a .DS_Store, are not counted as unsaved changes and are never committed. Inside flows/, schedules/, connections/ and notebooks/ only the file types the table above names count: a flows/notes.yaml is left alone like a README.md.

"Unsaved" is what your resources hold that the last version does not, one row per object (a flow, a connection, a table), read when the Project page asks. A hand edit of the folder is not an unsaved change: a reload applies it. POST /project/plan names what a restore of a version ({"sha": ...}), or a reload of the folder (no body), would create, change and remove, with what a removal means for the object, such as a connection whose stored password is in no version.

The Project Tracking page: the active project path, its version history, and the save, restore, and stop-tracking controls.

Restore and reload rebuild from the files

Restoring a version and reloading from disk both reset your resources to match the folder. A removal is derived, not swept: what is removed is what your resources hold of a kind the version lists that the version does not, as a comparison of the two names it, so a resource Flowfile never wrote into a project is never removed. A kind the version lists with no file is emptied, while a kind it does not list is left alone. A version saved before versions listed their kinds, or a folder whose project.yaml is missing, is read the earlier way: a kind it holds no file for is left alone. Both show that plan first: the restore dialog lists what the version would add, change and remove, and Reload asks you to confirm the same list, each removal with what it means for the resource; a standalone secret is never removed. A catalog or schema is removed once the restore or reload has emptied it, and stays while it still holds a table, a flow or a notebook, yours or another user's. The built-in General catalog and its schemas default, Unnamed Flows, Local Flows, Python Editor and sync are never removed and are not listed as removals, so after you restore a version saved before one of them existed, the next version holds it. A flow Flowfile cannot write into the folder (one whose file is missing, a .flowfile flow, a kernel's scratch flow) is never removed. Before either one, Flowfile compares your resources with the last version and names what it would lose, including changes made without touching the folder (a flow saved to the catalog, a quick-created flow). Keep a recovery point and continue saves them first: a restore records them as commits in the history, a reload as a recovery ref (refs/flowfile/recovery/...) that leaves the history as it was. A reload of files you edited by hand, with nothing unsaved in your resources, needs no confirmation. On a SQLite catalog (the default) a snapshot of the catalog database is also written to db_backups/ first; a PostgreSQL catalog gets no snapshot, so the recovery point is the only copy. A version never holds stored passwords, only their names.

A schedule whose id is in the file is updated in place by an open, restore or reload, so it keeps its notification rules and when it last ran. A schedule file saved before schedules had ids gets them on the next save, and an id another install gave the schedule is matched by its definition and taken over, so the first reload of a colleague's version keeps your rows too.

Open, restore and reload apply only the kinds the version lists in kinds: a version that leaves out kernels neither changes nor removes your kernels, whatever its kernels.yaml holds. A listed kind this install does not know keeps its files, which saves and restores carry along unchanged, and is reported. A folder written by a newer Flowfile is refused before anything changes. A folder from an earlier release opens as before and lists its kinds from its next save. A file under a @<username>/ folder (such as flows/@alice/) is reported as not applied and left as it is. An entry or a file whose owner names another user is reported as not applied too, but it is not kept: the next save writes the folder from your own resources and leaves it out.

Every file is checked before anything changes. If one cannot be read (invalid YAML, or content of the wrong shape, such as a connection file missing its name), open, restore and reload stop with an error naming that file, and your folder and resources stay exactly as they were. A failure while your resources are being updated, such as a flow that does not load or a flow file that cannot be written, changes none of them and writes no flow or notebook file. The few steps that can only run once your resources are updated (moving the written files into place, loading the flows, creating an empty table, removing a deleted flow's file) can still fail, on a full disk for example. Your resources then stay updated, and open, restore and reload tell you which steps did not finish. A restore records no version in that case and leaves the folder holding the restored version's files, so a reload of the folder finishes it.

Working with projects from the command line

Every core action has a headless equivalent, useful for scripting or CI. See the CLI reference for full details.

flowfile project init <folder>       # create a project in <folder>
flowfile project open <folder>       # open a project and import it
flowfile project save "<message>"    # save a version with a commit message
flowfile project plan <sha|.>        # list what a restore of <sha>, or a reload of the folder (.), would change
flowfile project apply               # reload: apply the folder's edits to your resources

When you open a project whose secrets aren't set locally, flowfile project open reports how many values are missing. Supply them with FLOWFILE_SECRET_<NAME> environment variables or fill them in the app.

Availability by mode

Projects are always available in the desktop app and the pip-installed package. In Docker (multi-tenant) mode the project router is disabled by default and returns 404; an operator enables it by setting FLOWFILE_ENABLE_PROJECTS to a truthy value (true/1/yes/on), and in that mode projects are admin-only and confined to each owner's own subtree.

  • CLI reference — headless flowfile project commands.
  • Catalog — the flows, tables, and metadata a project holds the definitions of.
  • Connections & secrets — connections are written into a project; their secrets are not.
  • For the internals (import boundaries, the git folder contract), see Architecture; to add a kind of resource from your own package, see Project kinds.