Skip to content

Install and run fcdev

fcdev is the whole FlowCatalyst platform in one binary, built for a developer’s machine. It runs the API and console, the message router, the schedulers, the stream processor, the function runner, the push gateway and an ingestor runtime in one process, against an embedded PostgreSQL it downloads and manages itself. There is no Docker, no queue service and no Redis to set up.

This page installs it, starts it, and signs you in. The next tutorial, your first event, builds on a running fcdev.

Pre-built binaries exist for macOS (Apple Silicon and Intel), Linux (x86_64 and arm64) and Windows (x86_64).

macOS and Linux:

Terminal window
curl -fsSL https://raw.githubusercontent.com/flowcatalyst/flowcatalyst/main/install.sh | sh

The script picks the archive for your OS and architecture, checks its SHA-256, and installs to /usr/local/bin/fcdev when that directory is writable, otherwise to ~/.local/bin/fcdev (it never asks for sudo). On macOS it also removes the Gatekeeper quarantine attribute.

Windows (PowerShell 5.1 or later):

Terminal window
irm https://raw.githubusercontent.com/flowcatalyst/flowcatalyst/main/install.ps1 | iex

It installs to %LOCALAPPDATA%\Programs\fcdev and adds that directory to your user PATH. Open a new terminal afterwards. Windows on ARM runs the x64 binary under emulation.

Both scripts read three optional variables:

Variable Default Purpose
FC_DEV_VERSION The latest release Install a specific version, for example 0.16.0 (a leading v is optional).
FC_DEV_INSTALL_DIR As above Where to put the binary.
FC_DEV_FORCE 0 1 reinstalls even when that version is already installed.
Terminal window
curl -fsSL https://raw.githubusercontent.com/flowcatalyst/flowcatalyst/main/install.sh \
| FC_DEV_VERSION=0.16.0 FC_DEV_INSTALL_DIR="$HOME/bin" sh

Check the install:

Terminal window
fcdev --version
Terminal window
fcdev

fcdev with no subcommand is the same as fcdev start. Leave it running in its own terminal.

The first start needs network access and takes longer, because it downloads and caches:

  • a PostgreSQL 18 distribution for the embedded database;
  • a Java runtime (Eclipse Temurin, from Adoptium) and the ingestor runtime’s jar, for the ingestion runtime it runs as a child process.

Later starts reuse the cache. If you do not need ingestion, fcdev --ingestor=false skips the Java download and the child process.

Each start then:

  1. starts the embedded PostgreSQL on port 15432 (database flowcatalyst, user and password postgres);
  2. applies every migration and the built-in seed data (the platform application, built-in roles and permissions, the platform’s own event types);
  3. creates the bootstrap administrator if no anchor user exists yet;
  4. creates local credentials for its own parts (the router, the function runner, the fcdev fn command-line tools, the ingestor runtime and the MCP server);
  5. starts every subsystem and serves the API and console.

Ctrl+C stops everything, the embedded database included. From another terminal, fcdev stop does the same, using the PID file fcdev writes while it runs.

Open http://localhost:8080. It redirects to the console at /ui.

Email admin@flowcatalyst.local
Password DevPassword123!

This user is an anchor user with the platform:super-admin role, so it can see and change everything. The values come from FLOWCATALYST_BOOTSTRAP_ADMIN_EMAIL, FLOWCATALYST_BOOTSTRAP_ADMIN_PASSWORD and FLOWCATALYST_BOOTSTRAP_ADMIN_NAME, which fcdev sets to these defaults unless you set them yourself. They are used only while the database has no anchor user. A deployed fc-server has no defaults: it creates a bootstrap administrator only when an operator sets both variables.

Port What Flag
8080 API (/api), OAuth and OIDC (/oauth), the console (/ui) --api-port
9090 Prometheus metrics --metrics-port
15432 Embedded PostgreSQL --embedded-db-port
8095 Function runner, private entry (127.0.0.1 only) --functions-port
8096 Function runner, public entry (host routing); 0 turns it off --functions-public-port
8091 Ingestor runtime (HTTP ingestions, health) --ingestor-port

Every subsystem has an on/off flag. Most are on by default; two are off:

Subsystem Default Flag
Dispatch scheduler, scheduled-job scheduler, stream processor, router, push gateway, function runner, ingestor runtime on --scheduler, --scheduled-job, --stream, --router, --push, --functions, --ingestor
Outbox processor reading the platform’s own database off --outbox
MCP HTTP server off --mcp

The --outbox flag is not what your application needs: your application’s outbox lives in your own database, and the separate fcdev outbox command relays it (see your first event).

Every flag can also be set with an environment variable (FC_API_PORT, FC_EMBEDDED_DB_PORT, FC_ROUTER_ENABLED, and so on). The fcdev CLI reference lists every command and flag, and environment variables covers the rest.

fcdev runs the same code as fc-server, with these development defaults:

  • Webhooks to your own machine work. The outbound delivery guard allows loopback and private addresses, so a subscription can deliver to http://localhost:3000. A deployed platform refuses those unless told otherwise (FC_DELIVERY_ALLOW_LOOPBACK, FC_DELIVERY_ALLOW_PRIVATE). Cloud metadata and link-local addresses stay blocked.
  • Queues are PostgreSQL tables in the embedded database, not SQS or NATS.
  • Test-principal header. /api accepts an X-FC-Test-Principal header as the caller’s identity, so you can try endpoints without a token.
  • Keys are generated and kept. The JWT signing key and the application encryption key are created on the first start and stored beside the database, so tokens and stored secrets survive a restart.
  • No email is sent unless SMTP is configured: password-reset links, invitations and PINs are written to the log instead.
  • The debug endpoints (pprof, the router dump) are on, behind an anchor sign-in.
What Default location
Database cluster <data dir>/flowcatalyst/embedded-pg/data
JWT signing key, application key (app-key), PID file (fcdev.pid) <data dir>/flowcatalyst/
Function artifacts <data dir>/flowcatalyst/functions/artifacts
PostgreSQL binaries, Java runtime, ingestor jar, function caches <cache dir>/flowcatalyst/

<data dir> is $XDG_DATA_HOME when set, otherwise the OS configuration directory: ~/Library/Application Support on macOS, ~/.config on Linux, %AppData% on Windows. <cache dir> is the OS cache directory (~/Library/Caches, ~/.cache, %LocalAppData%). Nothing is kept in /tmp. Move the database with --embedded-db-path (or FC_EMBEDDED_DB_PATH), or point fcdev at a PostgreSQL of your own with --database-url.

Two ways, depending on how much you want to keep:

Terminal window
fcdev fresh --yes # empty every FlowCatalyst table, keep the schema, re-seed
fcdev --embedded-db-reset # delete the database cluster and start from nothing

fcdev fresh truncates the platform’s tables (applications, users, event types, subscriptions, events, dispatch jobs and the rest), keeps the migration history, and runs the seed again, so the bootstrap administrator exists afterwards. It leaves alone any table that is not FlowCatalyst’s, so an application database you created on the same server keeps its data. It refuses to run without --yes. Run it while fcdev is stopped (it starts the embedded database itself), or give it --database-url to work on a database that is already running.

--embedded-db-reset deletes the whole data directory before starting, as if fcdev had never run.

  • fcdev: command not found: the install directory is not on your PATH yet. Open a new terminal; the install script prints the line to add to your shell profile.
  • macOS says the binary is from an unidentified developer: the script removes the quarantine attribute; after a manual download run xattr -d com.apple.quarantine /usr/local/bin/fcdev.
  • “embedded Postgres data dir is PG… but this fcdev embeds PG18”: a newer fcdev embeds a newer PostgreSQL major, and a major upgrade is not in place. Run fcdev db upgrade (it backs up the old cluster, initialises a new one and re-runs migrations and seed), or fcdev --embedded-db-reset to discard it.
  • A port is in use: another fcdev may still be running (fcdev stop), or start this one on other ports, for example fcdev --api-port 8180 --embedded-db-port 15433.
  • The ingestor runtime did not start: the log says why; usually the Java download failed. Check network access to api.adoptium.net and github.com and restart, or run with --ingestor=false.