Skip to content

fcdev CLI

fcdev is the developer binary: it runs the whole platform against an embedded Postgres, and it carries the client tools (functions, ingestion, the outbox poller, the MCP server). Running fcdev with no subcommand is the same as fcdev start. Every command accepts --help, and fcdev --version prints the version.

Defaults that depend on the machine are shown as <config dir> (the user’s configuration directory) and <cache dir>. Environment variables that the commands read are in Environment variables.

FlowCatalyst Development Monolith — all components in one binary.

fcdev [flags]
fcdev [command]
fcdev runs every FlowCatalyst subsystem in one process against an
embedded Postgres database. Designed for local development: no Docker,
no docker-compose, no separate migration step.
Invoking `fcdev` with no subcommand is identical to `fcdev start`.
Flag Type Default Description
--api-port int 8080 API server port
--bind string address the API and metrics listeners bind to: loopback (default), or a host/IP such as 0.0.0.0 to reach fcdev from the network
--database-url string Postgres URL (overrides –embedded-db)
--embedded-db bool true start an embedded Postgres
--embedded-db-password string password for the embedded Postgres superuser, set when the cluster is first created (env FC_EMBEDDED_DB_PASSWORD; default: the well-known development password)
--embedded-db-path string <config dir>/flowcatalyst/embedded-pg embedded Postgres data directory
--embedded-db-port int 15432 embedded Postgres port
--embedded-db-reset bool wipe the embedded Postgres data directory before starting
--functions bool true run the function runner in-process
--functions-memory-mb int 256 memory the function runner may use (fcdev shares the process with everything else)
--functions-port int 8095 function runner private entry port (/fn/…)
--functions-public-port int 8096 function runner public entry port (Host routing); 0 = off
--ingestor bool true run the ingestor runtime (its own Java is installed on first use); only when ingestion is enabled
--ingestor-port int 8091 ingestor runtime HTTP port (HTTP ingestions, /health/ready)
--mcp bool run the MCP HTTP server
--metrics-port int 9090 metrics server port
--outbox bool run the outbox processor
--pid-file string <config dir>/flowcatalyst/fcdev.pid PID file written while running; used by fcdev stop
--push bool true run the push gateway in-process (/api/push, Postgres log)
--router bool true run the message router (uses the embedded Postgres broker by default)
--scheduled-job bool true run the scheduled-job cron scheduler
--scheduler bool true run the dispatch scheduler
--seed-dev-admin bool create the built-in dev administrator (admin@flowcatalyst.local) when the database has no admin; default true for the embedded database, false with –database-url (env FC_DEV_SEED_ADMIN)
--stream bool true run the stream processor

Subcommands:

Command Description
fcdev db Manage the embedded dev database
fcdev fn Build, publish and run FlowCatalyst functions
fcdev fresh Truncate every FlowCatalyst table (preserves schema)
fcdev ingest Manage ingestions and their definition files
fcdev ingestor Inspect the ingestor runtime fcdev runs for local development
fcdev init Bootstrap a fresh local environment (admin user + default tenant + .env)
fcdev install Add optional parts to the embedded dev database
fcdev login Sign in to a remote platform in your browser (login profiles)
fcdev logout Delete a login profile’s stored session and revoke it at the platform
fcdev mcp Run the FlowCatalyst MCP server (stdio by default; –http to listen)
fcdev outbox Standalone outbox poller against an external app DB → external platform
fcdev profile Manage connection profiles for remote platforms (np / prod)
fcdev start Run the dev monolith (identical to invoking fcdev with no subcommand)
fcdev stop Stop a running fcdev instance (graceful; also stops embedded Postgres)
fcdev updates Publish and manage over-the-air updates of Expo phone apps
fcdev upgrade Update fcdev to the latest release
fcdev version Print the fcdev version

Manage the embedded dev database.

fcdev db [command]

Subcommands:

Command Description
fcdev db upgrade Re-initialise the embedded Postgres onto the major version this fcdev embeds

Re-initialise the embedded Postgres onto the major version this fcdev embeds.

fcdev db upgrade [flags]
Bring the embedded Postgres data directory onto the major version this fcdev
embeds (PG18).
A Postgres major upgrade is NOT in-place, and the bundled distribution ships no
pg_dump/pg_upgrade tools, so this re-initialises the cluster from scratch:
1. the existing data dir is moved aside to a timestamped backup (unless --no-backup),
2. a fresh PG18 cluster is initialised,
3. migrations + the bootstrap seed are re-run.
A dev database is reproducible from migrations + seed, so this is the intended
path. The backup lets you recover anything bespoke by pointing your own Postgres
of the old major at it. Stop 'fcdev start' before running this.
Flag Type Default Description
--embedded-db-password string password for the embedded Postgres superuser, set when the cluster is first created (env FC_EMBEDDED_DB_PASSWORD; default: the well-known development password)
--embedded-db-path string <config dir>/flowcatalyst/embedded-pg embedded Postgres data directory
--embedded-db-port int 15432 embedded Postgres port
--no-backup bool delete the old data dir instead of backing it up
--yes bool skip the confirmation prompt

Build, publish and run FlowCatalyst functions.

fcdev fn [command]

Subcommands:

Command Description
fcdev fn build Build a function project and check its describe document
fcdev fn delete Permanently delete a function with all its versions, aliases, wiring and artifacts
fcdev fn deploy Build (for a directory), publish, wait until a runner has loaded it, and promote to live
fcdev fn describe Print and validate an artifact’s describe document, as publish reads it
fcdev fn dev Local development loop: build, serve on the real runner, rebuild and hot-reload on change
fcdev fn init Scaffold a function project (Go, Rust or TypeScript)
fcdev fn invoke Call a function through a runner (with a platform token unless –anonymous)
fcdev fn promote Point an alias (live by default) at a READY version
fcdev fn prune Delete a function’s oldest untagged versions (and their artifacts)
fcdev fn publish Upload an artifact and publish it as a new version (changes nothing that is running)
fcdev fn run Run one function locally on the real runner, without a platform
fcdev fn set Set config values, secrets, database DSNs and the webhook service account on a function
fcdev fn status Show a function’s versions and aliases
fcdev fn trace Switch a function’s trace contexts on and off and read its trace logs

Build a function project and check its describe document.

fcdev fn build [dir]

Permanently delete a function with all its versions, aliases, wiring and artifacts.

fcdev fn delete <address> [flags]
Deletes the function, every version and alias, its wiring (subscriptions and
scheduled jobs) and its artifacts. This cannot be undone.
Interactively you must type the function's address to confirm. In scripts pass
--yes; without --yes a non-terminal stdin is refused.
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool skip the typed confirmation (required when stdin is not a terminal)

Build (for a directory), publish, wait until a runner has loaded it, and promote to live.

fcdev fn deploy <address> [dir|artifact]
Builds (for a directory), publishes, waits until a runner has loaded the
version, and promotes it to live.
--dry-run builds and validates the describe document, looks the function up
(read-only) and prints what would be published and promoted, without writing
anything to the platform.
--create --client <client> sets the owning client of a new function. <client>
is the client's code (identifier, e.g. acme, the same in every environment)
or its clt_... id. A code is resolved with a read-only lookup of the client
(needs permission to read clients; otherwise pass the id); an id is used as-is.
--client is ignored for a function that already exists.
--create --service-account <account> sets the function's webhook verifier
identity: the service account (code or id) whose signing secret its
auth: webhook endpoints verify deliveries with. Set it when the deliveries are
signed by an account other than the application's (for example a connection's
own account); omitted, the application's service account is used. Change it
later with: fcdev fn set <address> --service-account <account>
Like --client it is ignored for a function that already exists.
For pipelines (the artifact's sha256 digest is the identity of a version):
--skip-unchanged when the version the live alias points at already has this
digest, do nothing and exit 0, printing
unchanged: <address> live vN already has digest <digest12>
(no publish, no wait, no promote, no confirmation, no
remote write). When the digest exists as a version that is
not live, the upload is skipped but it is still promoted.
A version that is FAILED is never "unchanged": the digest is
published again, which re-queues that version (same number)
for a runner to retry, and the run waits and promotes as for
a new version, printing
requeued: <address> vN was FAILED (<reason>), retrying
--no-promote publish and wait until a runner has loaded the version
(READY), but leave live where it is; subscriptions and
schedules are only wired at promote.
--json print ONE JSON object on stdout, human output on stderr:
{"address","functionId","version","digest","created",
"requeued"?,"promoted","skipped","runtime","client"?}
created: this run created the version; requeued: the
digest's version was FAILED and this run re-queued it;
promoted: live was
moved by this run; skipped: --skip-unchanged did nothing.
A run that makes no remote write (skipped, or --no-promote of an existing
digest) needs no prod confirmation; any other write to a prod profile does.
Flag Type Default Description
--client string with –create: the owning client, by code (e.g. acme, stable across environments) or id (clt_…)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--create bool create the function if it does not exist
--dry-run bool build and validate, then print what would be published and promoted; writes nothing remotely
--json bool print one JSON object on stdout; human output goes to stderr
--no-promote bool publish and wait until READY, but do not move live
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--pool string with –create: the runner pool
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--runtime string wasm, js or jvm (default: from the artifact)
--service-account string with –create: the webhook verifier service account, by code or id (default: the application’s)
--skip-unchanged bool do nothing (exit 0) when the live version already has this artifact’s digest
--wait duration 1m0s how long to wait for a runner to load the version
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Print and validate an artifact’s describe document, as publish reads it.

fcdev fn describe <artifact> [flags]
Flag Type Default Description
--json bool print the raw describe document
--runtime string wasm, js or jvm (default: from the file extension: .js, .jar, else wasm)

Local development loop: build, serve on the real runner, rebuild and hot-reload on change.

fcdev fn dev [dir]
Builds the function project in dir (default .) the way 'fn build' does, serves
it on the real function runner at 127.0.0.1 without a platform, then watches
the source tree: every change rebuilds and hot-reloads. A failed rebuild keeps
the previous good build serving.
With --send FILE the file is sent to the function after every successful
(re)load and the response, emitted events and would-be dispatch jobs are
printed. On a terminal, 'r'+Enter resends it and 'q'+Enter quits.
Dispatches are checked against the version's declared 'dispatches' but no job
is created, and pools and connections are not resolved: that needs a platform.
Flag Type Default Description
--address string the address to serve the function at (default local.)
--config stringArray KEY=VALUE config setting (repeatable)
--content-type string Content-Type for –send (default by file extension)
--db stringArray NAME=DSN database binding (repeatable)
--header stringArray extra header for –send, ‘Key: Value’ (repeatable)
--memory int 256 memory budget for the function, in MB
--method string POST HTTP method for –send
--no-watch bool build and serve once; do not watch for changes
--path string / function path for –send
--perms stringArray permission the dev principal holds (repeatable)
--port int 8099 listen port (127.0.0.1)
--runtime string wasm, js or jvm (default: from the artifact’s extension: .js, .jar, else wasm)
--secret stringArray KEY=VALUE secret (repeatable; values are never printed)
--send string send this file to the function after every successful (re)load
--webhook-secret string dev-webhook-secret the signing secret webhook endpoints verify

Scaffold a function project (Go, Rust or TypeScript).

fcdev fn init <dir> [flags]
Flag Type Default Description
--app string the owning application’s code
--lang string go go, rust or ts
--sdk-path string a local checkout of the SDKs (the repo’s clients/ directory) instead of the published ones

Call a function through a runner (with a platform token unless –anonymous).

fcdev fn invoke <address>[@alias|@vN] [path]
Flag Type Default Description
--anonymous bool send no platform token
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--data (-d) string request body, or @file
--header (-H) stringArray request header Name: value (repeatable)
--method (-X) string HTTP method (default GET, or POST with –data)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Point an alias (live by default) at a READY version.

fcdev fn promote <address> <version> [flags]
Flag Type Default Description
--alias string live the alias to move
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Delete a function’s oldest untagged versions (and their artifacts).

fcdev fn prune <address> [flags]
Deletes a function's oldest UNTAGGED versions beyond the keep limit, with their
stored artifacts when no remaining version uses them. A version is tagged when
any alias (live or another) points at it: tagged versions are never pruned and
do not count. The newest version and a PUBLISHED version younger than an hour are
never pruned. Version numbers are not reused.
The platform prunes automatically after every publish (FC_FUNCTIONS_KEEP_VERSIONS,
default 20); this is for catching a function that is already over the limit up,
or for a different --keep. Use --dry-run to see what would go.
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--dry-run bool show what would be pruned; change nothing
--keep int untagged versions to keep (default: the platform’s FC_FUNCTIONS_KEEP_VERSIONS)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Upload an artifact and publish it as a new version (changes nothing that is running).

fcdev fn publish <address> <artifact> [flags]
Uploads an artifact and publishes it as a version. It never promotes: no alias
moves and no subscription or schedule is wired.
Publishing is idempotent per digest (sha256 of the artifact). The function's
versions are read first; when one already has the digest nothing is uploaded or
written and no confirmation is asked:
new: <address> vN (<runtime>, <digest12>)
unchanged: <address> vN already has digest <digest12>
requeued: <address> vN was FAILED (<reason>), retrying
A version a runner marked FAILED is never "unchanged": the failure is often
transient (an artifact-store blip), so publishing the same digest again
re-queues that version (same number, back to PUBLISHED) for a runner to retry.
--json prints ONE JSON object on stdout (everything else goes to stderr):
{"address","functionId","version","digest","created","requeued"?,"runtime","client"?}
created is true when this run created the version; requeued (only when true)
means the digest's version was FAILED and this run re-queued it; digest is the
full sha256.
--create --client <client> sets the owning client of a new function. <client>
is the client's code (e.g. acme) or its clt_... id; --client is ignored for a
function that already exists.
--create --service-account <account> sets the function's webhook verifier
identity: the service account (code or id) whose signing secret its
auth: webhook endpoints verify deliveries with. Set it when the deliveries are
signed by an account other than the application's (for example a connection's
own account); omitted, the application's service account is used. Change it
later with: fcdev fn set <address> --service-account <account>
Like --client it is ignored for a function that already exists.
Flag Type Default Description
--client string with –create: the owning client, by code (e.g. acme) or id (clt_…) (default: platform-owned)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--create bool create the function if it does not exist
--json bool print one JSON object on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--pool string with –create: the runner pool (default: default)
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--runtime string wasm, js or jvm (default: from the file extension: .js, .jar, else wasm)
--service-account string with –create: the webhook verifier service account, by code or id (default: the application’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Run one function locally on the real runner, without a platform.

fcdev fn run <artifact> [flags]
Flag Type Default Description
--address string local.fn the address to serve the function at
--config stringArray KEY=VALUE config setting (repeatable)
--db stringArray NAME=DSN database binding (repeatable)
--memory-mb int 256 memory budget for the function
--permission stringArray permission the dev principal holds (repeatable)
--port int 8099 listen port (127.0.0.1)
--runtime string wasm, js or jvm (default: from the file extension: .js, .jar, else wasm)
--secret stringArray KEY=VALUE secret (repeatable)
--watch bool redeploy whenever the artifact changes
--webhook-secret string dev-webhook-secret the signing secret webhook endpoints verify

Set config values, secrets, database DSNs and the webhook service account on a function.

fcdev fn set <address> [flags]
Sets config values (--config), secrets (--secret) and database DSNs (--db) on a
function, and its webhook verifier identity.
A --secret or --db value may be a reference to a secret kept in AWS instead of
the secret: --secret KEY=aws-sm://<name>[#<key>] (Secrets Manager) or
--secret KEY=aws-ps://<parameter> (Parameter Store; a path parameter is written
aws-ps:///path/to/param). The platform stores the reference and reads the
secret when a runner asks for the function's settings, caching it for a few
minutes, so rotating it in AWS needs no change here. The platform's allow-list
(FC_SECRET_REFERENCE_ALLOW) decides which references it accepts; a reference to
any other scheme is refused.
--service-account <account> names the service account (by code or id) whose
signing secret the function's auth: webhook endpoints verify deliveries with.
The platform validates that it exists, is active and that you may use it. The
change reaches runners within about a minute (the platform caches service
account credentials for one minute). --clear-service-account (or
--service-account "") removes it, returning the function to its application's
service account.
Flag Type Default Description
--clear-service-account bool remove the function’s own service account (back to the application’s)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--config stringArray KEY=VALUE (repeatable)
--db stringArray NAME=DSN (repeatable; write-only)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--secret stringArray KEY=VALUE, or KEY=aws-sm://… / aws-ps://… to point at a secret kept in AWS (repeatable; write-only)
--service-account string the webhook verifier service account, by code or id (empty string clears it)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Show a function’s versions and aliases.

fcdev fn status <address> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Switch a function’s trace contexts on and off and read its trace logs.

fcdev fn trace [command]
Trace logs are opt-in and time-boxed: a function writes to named contexts and
nothing is stored unless a context is switched on, for a limited time. "http" is
built in: while it is on, every call also records its request, response and timing.
fcdev fn trace on <address> <context> [--for 5m] [--sample N]
fcdev fn trace off <address> <context>
fcdev fn trace status <address>
fcdev fn trace log <address> [filters] [-f]
fcdev fn trace run <address> <context> [--for 5m] (on, then follow, then off)
Switching needs platform:function:trace:manage, reading records needs
platform:function:trace:view, and bodies, headers, query strings and log lines
(and switching http on) need platform:function:trace:view-bodies. Leaving a
declared context on until it is switched off (--no-limit) needs
platform:function:trace:indefinite.

Subcommands:

Command Description
fcdev fn trace log Print a function’s trace records, optionally following new ones
fcdev fn trace off Switch a trace context off
fcdev fn trace on Switch a trace context on, for a time or until it is switched off
fcdev fn trace run Switch a context on, follow its records, and put it back as it was on exit
fcdev fn trace status List a function’s trace contexts and whether each is live

Print a function’s trace records, optionally following new ones.

fcdev fn trace log <address> [flags]
Prints the newest trace records (--limit, default 100), oldest first so it reads
like a log: time, level, context, invocation, reference and message. An http
record is one summary line, for example "POST /orders -> 200 (12ms, ok)"; --bodies
adds its request and response bodies (without platform:function:trace:view-bodies
they are hidden). -f polls every 2 seconds and prints only new records until
Ctrl-C. --json prints one raw JSON record per line.
Flag Type Default Description
--bodies bool also print the request and response bodies of http records
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--context string only this context
--correlation string only records with this correlation id
--follow (-f) bool keep polling and print new records until Ctrl-C
--invocation string only records of this invocation
--json bool print one raw JSON record per line
--kind string only this kind: trace, http, outbound or log
--level string only this level: debug, info, warn or error
--limit int 100 newest records to read (follow: the backlog shown first)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--reference string only records with this business reference (trip or order number)
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--since string only records after this: a duration back from now (10m, 2h), RFC 3339 or unix ms
--until string only records before this: a duration back from now, RFC 3339 or unix ms
--version int only records of this function version

Switch a trace context off.

fcdev fn trace off <address> <context> [flags]
Switches a function's trace context off now. Records already stored are kept (30 days).
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Switch a trace context on, for a time or until it is switched off.

fcdev fn trace on <address> <context> [flags]
Switches a function's trace context on. By default it turns itself off when the
time is up: --for takes a Go duration (5m, 1h), rounded up to whole minutes, and
the platform caps it (60 minutes, 15 for http). --no-limit keeps a declared
context on until "fcdev fn trace off", at most the platform's ceiling (7 days by
default), then it switches off by itself; never for http, and it needs
platform:function:trace:indefinite. --sample N records one call in N. Takes
effect within about a second.
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--for duration 5m0s how long to keep it on (rounded up to whole minutes)
--no-limit bool stay on until switched off, at most the platform’s ceiling (–for is ignored; not for http)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--sample int 1 record one call in N
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Switch a context on, follow its records, and put it back as it was on exit.

fcdev fn trace run <address> <context> [flags]
The dev loop in one command: switches the context on (see "trace on"), follows
the function's records for it, and on Ctrl-C or when the window ends puts the
context back as it found it, unless --keep: off if it was off, or the window it
had (with its time left). If the context is already on for at least as long as
--for, the run leaves it alone and only follows it. A window someone else
changes during the run is left as they set it. Only records from now on are
shown unless --since says otherwise. Takes the same filters as "trace log".
Flag Type Default Description
--bodies bool also print the request and response bodies of http records
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--correlation string only records with this correlation id
--for duration 5m0s how long to keep it on (rounded up to whole minutes)
--invocation string only records of this invocation
--json bool print one raw JSON record per line
--keep bool leave the context on when this command exits (do not put it back)
--kind string only this kind: trace, http, outbound or log
--level string only this level: debug, info, warn or error
--limit int 100 newest records to read (follow: the backlog shown first)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--reference string only records with this business reference (trip or order number)
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--sample int 1 record one call in N
--since string only records after this: a duration back from now (10m, 2h), RFC 3339 or unix ms
--until string only records before this: a duration back from now, RFC 3339 or unix ms
--version int only records of this function version
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

List a function’s trace contexts and whether each is live.

fcdev fn trace status <address> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Truncate every FlowCatalyst table (preserves schema).

fcdev fresh [flags]
Removes every row from every FlowCatalyst table, returning the database
to an immediately-post-migration state. The goose ledger (goose_db_version)
is preserved so the next boot skips re-migrating. Automatically starts the
embedded Postgres if no external --database-url is supplied.
Refuses to run without --yes to prevent accidental data loss.
Flag Type Default Description
--database-url string Postgres URL (defaults to local embedded)
--embedded-db-password string password for the embedded Postgres superuser, set when the cluster is first created (env FC_EMBEDDED_DB_PASSWORD; default: the well-known development password)
--embedded-db-path string <config dir>/flowcatalyst/embedded-pg embedded Postgres data directory
--embedded-db-port int 15432 embedded Postgres port (when –database-url is unset)
--seed-dev-admin bool create the built-in dev administrator (admin@flowcatalyst.local) when the database has no admin; default true for the embedded database, false with –database-url (env FC_DEV_SEED_ADMIN)
--yes bool confirm truncation (required)

Manage ingestions and their definition files.

fcdev ingest [command]

Subcommands:

Command Description
fcdev ingest apply Make a set’s ingestions what its definition files say
fcdev ingest config Read and write an ingestion’s settings in this environment
fcdev ingest export Write ingestions as definition files
fcdev ingest get Show an ingestion
fcdev ingest list List ingestions
fcdev ingest live Make a saved version the one runtimes run
fcdev ingest pause Stop an ingestion running
fcdev ingest resume Let a paused ingestion run again
fcdev ingest sets List, re-apply and release the sets that own ingestions
fcdev ingest test Try an ingestion’s source from a runtime, dispatching nothing
fcdev ingest trace Switch an ingestion’s tracing on and off and read what it captured
fcdev ingest versions List an ingestion’s saved versions

Make a set’s ingestions what its definition files say.

fcdev ingest apply <folder | file...> [--set name]
Reads definition files (a folder's *.yaml and *.yml, or the files named) and
applies them as one set: ingestions the files list are created or changed,
ones made by hand that they list are taken into the set, and ones the set
owns but no longer lists are deleted. A file is the same in every environment:
what differs per environment (a vendor's login, the delivery URL) is the
ingestion's settings, named by "config:" in the source and written with
`fcdev ingest config set`. A file that still holds ${env:NAME} is refused.
A source naming settings that are not set yet is saved with a CONFIG_MISSING
warning, printed under its line; it runs once they are set.
A definition that runs for several clients lists them under "clients:" in
place of "client:"; it is applied as one ingestion per client, and a client
taken off the list has its ingestion deleted. clients: "*" is every client
there is when the set is applied; a client made later gets its ingestion at
the next apply.
The set is named by --set; for a folder it defaults to the folder's name.
--dry-run prints the plan and writes nothing.
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--dry-run bool print what would change; writes nothing
--json bool print the plan as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--set string the set’s name (a folder’s name by default)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Read and write an ingestion’s settings in this environment.

fcdev ingest config [command]
The settings a source names with "config:" are platform config of the
environment (application, section ingest, at the ingestion's client), written
only through the ingestion. They are the part of a definition that differs per
environment: a vendor's login, an organisation id, the delivery URL.

Subcommands:

Command Description
fcdev ingest config delete Delete the settings entry an ingestion’s source names
fcdev ingest config get Show the settings entry an ingestion’s source names
fcdev ingest config set Write the settings entry an ingestion’s source names

Delete the settings entry an ingestion’s source names.

fcdev ingest config delete <application>/<client>/<code> [flags]
Deletes the entry. Every ingestion of the application and client that names it
is then MISSING and stops running until the entry is set again.
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the answer as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Show the settings entry an ingestion’s source names.

fcdev ingest config get <application>/<client>/<code> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the answer as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Write the settings entry an ingestion’s source names.

fcdev ingest config set <application>/<client>/<code> <file.json | -> [flags]
Writes the JSON object in the file (or on stdin, with -) as the entry: the
kind's settings as an inline source holds them, and optionally targetUrl. The
platform checks the value against every ingestion of the application and client
that names the entry, and writes nothing unless all pass.
A secret setting holds the secret's name; the secret itself lives in section
secrets at the client. With --secrets the command asks for the value of every
secret the entry uses (hidden, from the terminal; Enter keeps the value there is)
and sends them with the entry in one write. The platform names a secret that
has no name yet. A value is never printed. With - the file is stdin, so
--secrets then needs a terminal on stdin to answer the prompts and is refused
otherwise.
--secrets-file <file.json> is the non-interactive way: the file is
{ "<secret name>": "<reference>" } and every value must be a reference to a
secret kept in AWS, aws-sm://<name>[#<key>] (Secrets Manager) or
aws-ps://<parameter> (Parameter Store). The platform stores the reference, not
the secret, and reads the secret when the ingestor asks for it, so rotating it
in AWS needs no change here. The platform's allow-list
(FC_SECRET_REFERENCE_ALLOW) decides which references it accepts. A plain value
is refused before anything is sent; type one with --secrets. --secrets and
--secrets-file together are refused.
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the answer as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--secrets bool ask (hidden, on the terminal) for the value of each secret the entry uses, and write them with the entry
--secrets-file string a JSON file of {“”: “<aws-sm:// or aws-ps:// reference>”}, written with the entry (references only, no values)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Write ingestions as definition files.

fcdev ingest export <application>/<client>/<code>... | --all [flags]
Writes each ingestion as the definition file apply reads, to
<out>/<application>/<client>/<code>.yaml. Applying them as a set takes the
ingestions into it. --all exports every ingestion (narrowed by --application
and --client).
Flag Type Default Description
--all bool export every ingestion
--application string with –all: only this application (code)
--client string with –all: only this client (id or identifier)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the files written as JSON on stdout; human output goes to stderr
--out string . the folder to write to
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Show an ingestion.

fcdev ingest get <application>/<client>/<code> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the ingestion as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

List ingestions.

fcdev ingest list [flags]
Flag Type Default Description
--application string only this application (code)
--client string only this client (id or identifier)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print one JSON object on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--q string search code and name
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Make a saved version the one runtimes run.

fcdev ingest live <application>/<client>/<code> <version> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the ingestion as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Stop an ingestion running.

fcdev ingest pause <application>/<client>/<code> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the ingestion as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Let a paused ingestion run again.

fcdev ingest resume <application>/<client>/<code> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the ingestion as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

List, re-apply and release the sets that own ingestions.

fcdev ingest sets [command]

Subcommands:

Command Description
fcdev ingest sets applies List a set’s kept applies, newest first
fcdev ingest sets list List the sets
fcdev ingest sets reapply Apply a set again with the items an earlier apply was given
fcdev ingest sets release Let go of a set: its ingestions stay and are edited one at a time again

List a set’s kept applies, newest first.

fcdev ingest sets applies <set> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the applies as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

List the sets.

fcdev ingest sets list [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the sets as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Apply a set again with the items an earlier apply was given.

fcdev ingest sets reapply <set> <apply-id> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--dry-run bool print what would change; writes nothing
--json bool print the plan as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Let go of a set: its ingestions stay and are edited one at a time again.

fcdev ingest sets release <set> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the result as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Try an ingestion’s source from a runtime, dispatching nothing.

fcdev ingest test <application>/<client>/<code> | <file> [flags]
Queues a test of a saved ingestion, or of a definition file that is not saved.
A runtime that carries the source's kind takes it in its next poll, so a
result takes up to a minute. --wait polls for it and prints what the runtime
did; the exit code is 1 when the source failed, was refused, is not supported
or no runtime answered in time.
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the test as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--timeout duration 2m0s with –wait: how long to wait
--wait bool wait for the result

Switch an ingestion’s tracing on and off and read what it captured.

fcdev ingest trace [command]
Traces are opt-in and time-boxed: nothing is captured unless tracing is switched
on for the ingestion, and then each runtime that runs it records, for a minute or
so, what its polls and exchanges did, the HTTP calls an extension or an api poll
made included, with their requests and responses (credentials redacted).
fcdev ingest trace on <application>/<client>/<code> [--for 1m|5m|15m] [--every 5s]
fcdev ingest trace off <application>/<client>/<code>
fcdev ingest trace status <application>/<client>/<code>
fcdev ingest trace log <application>/<client>/<code> [filters] [-f]
A runtime picks a window up at its next sync (a minute in production, 15 s under
fcdev) and captures for the chosen time from then. Switching on needs
platform:ingestion:trace:manage and :view-bodies, reading records needs
:view, and headers, query strings, bodies and error text need :view-bodies.

Subcommands:

Command Description
fcdev ingest trace log Print an ingestion’s trace records, optionally following new ones
fcdev ingest trace off Switch tracing off
fcdev ingest trace on Switch tracing on for an ingestion, for 1, 5 or 15 minutes
fcdev ingest trace status Show whether tracing is on for an ingestion and until when

Print an ingestion’s trace records, optionally following new ones.

fcdev ingest trace log <application>/<client>/<code> [flags]
Prints the newest trace records (--limit, default 100), oldest first so it reads
like a log: time, level, kind, runtime, capture and message. An http record is
one line, for example "GET https://api.example.com/trips -> 200 (85ms)"; --bodies
adds its request and response (without platform:ingestion:trace:view-bodies they
are hidden). -f polls every 2 seconds and prints only new records until Ctrl-C.
--json prints one raw JSON record per line.
Flag Type Default Description
--bodies bool also print the request and response of http records
--capture string only one capture’s records
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--follow (-f) bool keep polling and print new records until Ctrl-C
--json bool print one raw JSON record per line
--kind string only this kind: poll, exchange, http or error
--limit int 100 newest records to read (follow: the backlog shown first)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--runtime string only this runtime’s records
--since string only records after this: a duration back from now (10m, 2h), RFC 3339 or unix ms
--until string only records before this: a duration back from now, RFC 3339 or unix ms

Switch tracing off.

fcdev ingest trace off <application>/<client>/<code> [flags]
Switches tracing off now. Records already stored are kept (7 days).
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Switch tracing on for an ingestion, for 1, 5 or 15 minutes.

fcdev ingest trace on <application>/<client>/<code> [flags]
Switches tracing on with a new window. Each runtime that runs the ingestion starts
capturing when it next syncs and captures for --for from then (so a one-minute
window is a minute of capture however long the sync took). A runtime starts a
capture at most once every --every, so at the default about 12 a minute.
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--every duration 5s a runtime starts a capture at most this often: 1s to 60s
--for duration 1m0s how long each runtime captures: 1m, 5m or 15m
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Show whether tracing is on for an ingestion and until when.

fcdev ingest trace status <application>/<client>/<code> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

List an ingestion’s saved versions.

fcdev ingest versions <application>/<client>/<code> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the versions as JSON on stdout; human output goes to stderr
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Inspect the ingestor runtime fcdev runs for local development.

fcdev ingestor [command]

Subcommands:

Command Description
fcdev ingestor status Show the JRE, jar, process and health of this machine’s dev ingestor runtime

Show the JRE, jar, process and health of this machine’s dev ingestor runtime.

fcdev ingestor status [flags]
Flag Type Default Description
--api-port int 8080 API port of the fcdev whose ingestor to inspect
--ingestor-port int 8091 ingestor runtime port

Bootstrap a fresh local environment (admin user + default tenant + .env).

fcdev init [flags]
Bootstrap a fresh local environment: admin user, default client, one
application, and that application's service-account credentials (.env).
The credentials are provisioned the same way as an application service account
created in the admin UI: the platform:application-service role, confined to
the one application. Event types you publish must start with
"<application-code>:"; register event types through the SDK sync endpoint
(POST /api/applications/{appCode}/event-types/sync).
.env gets FLOWCATALYST_BASE_URL, FLOWCATALYST_APP_CODE, FLOWCATALYST_CLIENT_ID,
FLOWCATALYST_CLIENT_SECRET, FLOWCATALYST_SIGNING_SECRET (the HMAC secret the
platform signs its deliveries to the application with),
FLOWCATALYST_WEBHOOK_AUTH_TOKEN (the bearer token it sends with them) and
FLOWCATALYST_APP_KEY. A key already in the file is rewritten in place, others
are appended. A secret that had a different value keeps its old value in a
comment line above it ("# replaced by fcdev init: KEY=old"), so a value you
set yourself is never lost.
The platform shows the client secret, signing secret and token only when it
creates them, so init refuses an application code that already exists and
writes nothing. For an application that exists without its signing secret in
.env, --regenerate-signing-secret replaces the service account's signing
secret and writes the new one: any running copy of the application that
verifies with the old secret refuses every delivery until it is restarted
with the new one.
Flag Type Default Description
--admin-email string anchor admin email
--admin-password string anchor admin password
--api-base-url string http://localhost:8080 API base URL written to FLOWCATALYST_BASE_URL
--app-type string APPLICATION application type: APPLICATION or INTEGRATION
--client-identifier string default default client identifier
--client-name string Default Client default client display name
--code string application code (URL-safe slug, e.g. “orders”)
--database-url string Postgres URL (defaults to local embedded)
--default-base-url string application’s deployed base URL (optional)
--description string application description (optional)
--embedded-db-password string password for the embedded Postgres superuser, set when the cluster is first created (env FC_EMBEDDED_DB_PASSWORD; default: the well-known development password)
--embedded-db-path string <config dir>/flowcatalyst/embedded-pg embedded Postgres data directory (the app key is read from / persisted beside it, as fcdev start does)
--name string application name
--regenerate-signing-secret bool for an application –code that already exists: replace its service account’s signing secret and write the new one to .env (a running copy of the application verifying with the old secret refuses deliveries until restarted with the new one)
--root string . project root for the .env write
--yes bool non-interactive — fail if any required value is missing from flags

Add optional parts to the embedded dev database.

fcdev install [command]

Subcommands:

Command Description
fcdev install postgis Add PostGIS to the embedded Postgres

Add PostGIS to the embedded Postgres.

fcdev install postgis [flags]
Download the PostGIS add-on this fcdev pins (PostGIS built for the embedded
PostgreSQL 18, core extension only), check its SHA-256, and unpack it into the
embedded server's tree. Then enable it in a database with CREATE EXTENSION postgis.
It may run while fcdev start is running: PostgreSQL reads an extension's files when
CREATE EXTENSION runs. When it replaces a PostGIS that a running server may have
loaded, restart fcdev. Running it again when this add-on is installed does nothing.
Add-ons are built for macOS (arm64, amd64) and Linux with glibc (amd64, arm64).
On other platforms the docs describe adding PostGIS by hand:
https://github.com/flowcatalyst/flowcatalyst/blob/main/docs/embedded-postgres-postgis.md
Flag Type Default Description
--archive string install this add-on tarball (a local build of scripts/postgis-addon) instead of the pinned release; its postgis-addon.json must name this platform, and there is no pinned checksum to check it against

Sign in to a remote platform in your browser (login profiles).

fcdev login --profile NAME [flags]
Opens your browser to sign in to the profile's platform (the normal login,
including SSO, passkeys and two-factor), then keeps the session in the OS
keychain. You act as yourself: your own roles and permissions apply.
The session lasts a fixed time from this sign-in (7 days by default, set by
the platform); after that, sign in again. CI uses client-credentials profiles
instead.
See docs/fcdev-profiles.md.
Flag Type Default Description
--profile string login profile to sign in with (env FC_PROFILE)

Delete a login profile’s stored session and revoke it at the platform.

fcdev logout --profile NAME [flags]
Flag Type Default Description
--profile string login profile to sign out of (env FC_PROFILE)

Run the FlowCatalyst MCP server (stdio by default; –http to listen).

fcdev mcp [flags]
Flag Type Default Description
--client-id string override FLOWCATALYST_CLIENT_ID
--client-secret string override FLOWCATALYST_CLIENT_SECRET
--http string listen for streamable-HTTP MCP at this bind address (e.g. 127.0.0.1:8090); empty = stdio. A non-loopback address requires FC_MCP_AUTH_TOKEN; when it is set every request must carry Authorization: Bearer
--platform-url string override FLOWCATALYST_URL (platform base URL)

Standalone outbox poller against an external app DB → external platform.

fcdev outbox [command]
Run the outbox poller against an application's database: it claims the rows the
application writes to outbox_messages and delivers them to the FlowCatalyst platform.
The database (--source-db-url, env FC_OUTBOX_SOURCE_DB_URL) is Postgres, or MySQL 8.0+ /
MariaDB 10.6+ for a mysql:// or mariadb:// URL or a Go MySQL DSN (user:pass@tcp(host:3306)/db);
FC_OUTBOX_DB_TYPE=postgres|mysql overrides the guess. On MySQL the table is the SDK's MySQL
migration (clients/*/migrations/mysql), and the URL must name the database.
Who creates outbox_messages (--init-schema, env FC_OUTBOX_INIT_SCHEMA, default true):
true At start the poller runs CREATE TABLE IF NOT EXISTS outbox_messages and its three
indexes (the same DDL as 'fcdev outbox create-table'). For an application that has
no migration of its own for the table.
false The poller runs no DDL at all against the database. If outbox_messages is not there
yet it waits for it (it checks every 2 seconds and logs that it is waiting, again
every minute while it waits), then starts polling. A database it cannot reach, or a
wrong password, is still an error.
Set --init-schema=false (FC_OUTBOX_INIT_SCHEMA=false) whenever the application's own
migrations create outbox_messages: the Go framework's outbox module, or an SDK migration
(clients/*/migrations) run by the application's migration tool. Those migrations use a plain
CREATE TABLE; if the poller starts first (a second container of the same task, started
together with the application) and creates the table, the application's first migration fails
with 'relation "outbox_messages" already exists', the application exits, and every restart
fails the same way because the table stays and no migration is recorded.
More than one poller per outbox (--leader, env FC_OUTBOX_LEADER, default true): the pollers of
one outbox (the outbox_messages table the connection's search_path resolves to; on MySQL, the
table in the URL's database) elect one leader through a lock held in the source database itself, so an application may run any number of
tasks, each with a poller. Only the leader claims and sends; the others stand by on one connection
each and take over within seconds when the leader goes. The leader holds a transaction-level
advisory lock (classid 1717784386) in a transaction it keeps open and confirms every lease/5; it
stops sending one lease (--leader-lease-ms, FC_OUTBOX_LEADER_LEASE_MS, default 5000) after its
last confirmation, the server ends a holder silent for two leases, and a new leader waits 1.2
leases before it sends. Rows a previous leader left claimed are put back HTTP timeout + 5 s (35 s)
after the takeover; until then their message groups wait, so a group is never sent out of order.
The election works directly and through session- or transaction-mode poolers (PgBouncer, RDS
Proxy); a statement-mode pooler refuses it and the poller exits. On MySQL / MariaDB the leader
holds a named lock (GET_LOCK) on a connection of its own whose wait_timeout is two leases (whole
seconds); every poller must reach the same server (the primary), as a named lock is not shared
across a Galera or Group Replication cluster. --leader=false: no election (and
no lock connection), for a deployment that guarantees one poller some other way.
Health (--health-addr, FC_OUTBOX_HEALTH_ADDR, default 127.0.0.1:9180; off disables it): the poller
serves GET /health there, and 'fcdev outbox health' asks it (exit 0 healthy, 1 not), for a
container health check. Healthy: the leader's poll loop completed a cycle and a claim succeeded
within --stall-timeout-ms (FC_OUTBOX_STALL_TIMEOUT_MS, default 60000; claims timing out on a locked
table do not count) and the platform token could be obtained within it
(FC_OUTBOX_HEALTH_REQUIRE_TOKEN); a standby, or a poller waiting for outbox_messages, reached the
database within it. A leader whose poll loop stalls for the stall timeout gives the leadership up
and the command exits with status 1, as it does on any condition it cannot recover from.
Flag Type Default Description
--auth-token string static bearer token for the platform (used when client-id/secret are not set)
--batch-size int rows per poll (0 = library default)
--client-id string OAuth client_credentials client id (env FC_OUTBOX_CLIENT_ID, falls back to FLOWCATALYST_CLIENT_ID)
--client-secret string OAuth client_credentials client secret (env FC_OUTBOX_CLIENT_SECRET, falls back to FLOWCATALYST_CLIENT_SECRET)
--env-file string .env load environment from this dotenv file (does not override existing env)
--health-addr string 127.0.0.1:9180 serve GET /health here for ‘fcdev outbox health’ (env FC_OUTBOX_HEALTH_ADDR); off disables it
--health-require-token bool true the leader is unhealthy when it cannot obtain a platform token for the stall timeout (env FC_OUTBOX_HEALTH_REQUIRE_TOKEN)
--init-schema bool true create outbox_messages and its indexes at start if missing (env FC_OUTBOX_INIT_SCHEMA); false: run no DDL and wait for the application’s migrations to create the table
--leader bool true elect one dispatching poller per outbox through a lock in the source database (env FC_OUTBOX_LEADER); false: no election, for a deployment that guarantees one poller
--leader-lease-ms int 5000 how long a leader keeps dispatching after it last confirmed its lock, in ms (env FC_OUTBOX_LEADER_LEASE_MS); takeover after a leader’s death takes 1.4x to 3.4x this
--max-in-flight int outstanding HTTP requests cap (0 = library default)
--max-request-bytes int largest request body sent to the platform, in bytes; a batch is cut at –batch-size rows or this many bytes, and a larger row goes alone (env FC_OUTBOX_MAX_REQUEST_BYTES; 0 = library default, 8 MiB)
--poll-interval-ms int sleep between empty polls in ms (0 = library default)
--scope string optional requested scope to narrow the minted token (env FC_OUTBOX_SCOPE)
--source-db-url string external app’s Postgres or MySQL / MariaDB URL (required; env FC_OUTBOX_SOURCE_DB_URL)
--stall-timeout-ms int 60000 a poll loop, claim, database contact or token failing this long is unhealthy, and a leader whose poll loop stalls this long gives up and exits (env FC_OUTBOX_STALL_TIMEOUT_MS)
--target-url string http://localhost:8080 FlowCatalyst platform URL
--token-url string OAuth token endpoint (env FC_OUTBOX_TOKEN_URL, default /oauth/token)

Subcommands:

Command Description
fcdev outbox create-table Create the outbox_messages table/collection in a consumer app’s DB
fcdev outbox health Ask the running outbox poller in this container whether it is healthy (exit 0) or not (exit 1)

Create the outbox_messages table/collection in a consumer app’s DB.

fcdev outbox create-table [flags]
Create the SDK outbox storage in a consumer application's database.
Supports the three stores the FlowCatalyst SDKs target:
postgres CREATE TABLE outbox_messages (+ indexes) [--db-type pg]
mysql CREATE TABLE outbox_messages (+ indexes) [--db-type mysql]
mongodb create the outbox_messages collection's indexes [--db-type mongodb]
The shape is identical to every SDK migration and to what the outbox processor
reads. All three are idempotent — safe to re-run.
Use it instead of a migration, not as well as one: when the application's own
migrations create outbox_messages (the Go framework's outbox module, an SDK
migration run by a migration tool), those use a plain CREATE TABLE and fail
with "already exists" if this command (or 'fcdev outbox' with
--init-schema=true, its default) created the table first. Run the poller with
--init-schema=false there (see 'fcdev outbox --help').
Examples:
fcdev outbox create-table --db-type pg --db-url postgres://user:pass@localhost:5432/app
fcdev outbox create-table --db-type mysql --db-url 'user:pass@tcp(localhost:3306)/app'
fcdev outbox create-table --db-type mongodb --db-url mongodb://localhost:27017 --db-name app
Flag Type Default Description
--db-name string flowcatalyst MongoDB database name (mongodb only)
--db-type string postgres target store: postgres | mysql | sqlite | mongodb
--db-url string connection string/URL (postgres + mongo URLs, SQLite path, or a Go MySQL DSN) (required)

Ask the running outbox poller in this container whether it is healthy (exit 0) or not (exit 1).

fcdev outbox health [flags]
Ask the poller running in this container (fcdev outbox, on FC_OUTBOX_HEALTH_ADDR) for its health
and print its report. Exit status 0: healthy; 1: unhealthy, or the poller does not answer. For a
container health check: ["CMD", "/fcdev", "outbox", "health"].
Healthy is: the leader is polling (its poll loop completed a cycle and a claim succeeded within
FC_OUTBOX_STALL_TIMEOUT_MS, and, unless FC_OUTBOX_HEALTH_REQUIRE_TOKEN=false, the platform token
could be obtained within that time); a standby (or a poller waiting for outbox_messages) reached
the database within that time.
Flag Type Default Description
--health-addr string 127.0.0.1:9180 the poller’s health address (env FC_OUTBOX_HEALTH_ADDR)
--timeout duration 3s how long to wait for the answer

Manage connection profiles for remote platforms (np / prod).

fcdev profile [command]
A profile names a platform, an environment tag (local, np, prod), a client id
and a REFERENCE to the client secret (keychain, env:NAME, file:/path or
command:<argv...>). The profile file never holds a secret value.
See docs/fcdev-profiles.md.

Subcommands:

Command Description
fcdev profile add Add a profile: –login for a person (browser sign-in), else a client id + secret reference
fcdev profile list List profiles (never shows secrets)
fcdev profile remove Remove a profile (and its keychain entry) after confirmation
fcdev profile set-secret Prompt for a new client secret and store it in the OS keychain
fcdev profile show Show one profile (never shows the secret)
fcdev profile test Mint a token with the profile’s credential and report the principal and granted scope

Add a profile: –login for a person (browser sign-in), else a client id + secret reference.

fcdev profile add <name> --platform URL --env np|prod|local (--login | --client-id ID [--secret-ref REF]) [--runner URL]
Adds a profile.
--login makes a PERSON profile: no client id, no secret. Run
"fcdev login --profile NAME" to sign in with your browser; you then act as
yourself. Otherwise the profile authenticates as an OAuth client
(client_credentials), for CI and service accounts, and takes:
--secret-ref is one of:
keychain the OS secret store (default; you are prompted, no echo)
env:NAME read the secret from environment variable NAME
file:/abs/path read the secret from a file (mode 0600 or tighter)
command:<argv...> run a program (NO shell) and use its trimmed stdout,
e.g. command:aws ssm get-parameter --name /fc/prod/secret --with-decryption --query Parameter.Value --output text
A command: reference runs whatever the profile says, as you. Keep the
profile file owner-writable only (fcdev refuses it otherwise).
Without a terminal, --secret-ref env:/file:/command: is required.
Flag Type Default Description
--allow-noninteractive bool prod: allow –yes without a terminal (CI profiles)
--client-id string OAuth client id (client-credentials profiles)
--env string environment tag: local, np or prod
--login bool a person profile: sign in with fcdev login (no client id or secret)
--platform string platform URL (https unless loopback)
--runner string runner URL used by fcdev fn invoke (private entry or public URL)
--secret-ref string keychain (default), env:NAME, file:/path or command:<argv…>

List profiles (never shows secrets).

fcdev profile list [flags]

Remove a profile (and its keychain entry) after confirmation.

fcdev profile remove <name> [flags]
Flag Type Default Description
--yes bool skip the typed confirmation

Prompt for a new client secret and store it in the OS keychain.

fcdev profile set-secret <name> [flags]

Show one profile (never shows the secret).

fcdev profile show <name> [flags]

Mint a token with the profile’s credential and report the principal and granted scope.

fcdev profile test <name> [flags]
Resolves the secret, performs a client_credentials grant against the profile's
platform and reports success, the principal id and the granted scope names.
The token and the secret are never printed.

Run the dev monolith (identical to invoking fcdev with no subcommand).

fcdev start [flags]

Flags: the same as fcdev above.

Stop a running fcdev instance (graceful; also stops embedded Postgres).

fcdev stop [flags]
Stop the fcdev monolith started by `fcdev start`.
A running instance records its PID in a file (default alongside the embedded
database). stop reads it, sends SIGTERM so the server drains and the embedded
Postgres shuts down cleanly, then waits for the process to exit — escalating to
SIGKILL only if it overruns --timeout.
Stopping when nothing is running is not an error; a stale PID file is cleaned up.
Flag Type Default Description
--pid-file string <config dir>/flowcatalyst/fcdev.pid PID file written by fcdev start
--timeout duration 20s how long to wait for graceful exit before SIGKILL

Publish and manage over-the-air updates of Expo phone apps.

fcdev updates [command]

Subcommands:

Command Description
fcdev updates binaries Publish and list the Android binaries (APKs) of a phone app
fcdev updates branches List an application’s branches (app key, platform, runtime version, channel) and what is live on each
fcdev updates certificate Print the local fcdev’s development code-signing certificate (key id main)
fcdev updates keygen Create an update-signing key and the code-signing certificate an app embeds
fcdev updates links Create, replace and remove the install links people download a phone app’s binaries from (operators)
fcdev updates list List an application’s updates, newest first, with what is live
fcdev updates publish Upload an expo export’s files and publish it as an update
fcdev updates republish Make an earlier update live again (published as a new update with its files)
fcdev updates rollback Roll a branch back to its previous update, or (–to-embedded) to the bundle in the binary
fcdev updates rollout Change the share of its branch’s phones an update reaches (newest update only)

Publish and list the Android binaries (APKs) of a phone app.

fcdev updates binaries [command]

Subcommands:

Command Description
fcdev updates binaries has Whether a binary of a runtime version is published on a channel: exit 0 yes, 1 no, 2 the question failed
fcdev updates binaries inspect Show what an APK says about itself (offline): package, version, runtime version, channel, signing certificate
fcdev updates binaries list List an application’s binaries, newest version first (NEWEST marks what an install link gives)
fcdev updates binaries publish Upload an APK and publish it to a phone app’s channel as the release or debug build

Whether a binary of a runtime version is published on a channel: exit 0 yes, 1 no, 2 the question failed.

fcdev updates binaries has [flags]
For an update pipeline: before publishing an update for a runtime version, ask
whether any phone installed from this platform runs it.
if fcdev updates binaries has --app acme --app-key driver-app --channel production --runtime-version "$RV"; then ...
Exit status 0: a binary (any variant) of the runtime version is published on
the channel; 1: none is; 2: the question could not be answered.
Flag Type Default Description
--app string the application’s code (required)
--app-key string the phone app’s key, as in its update URL (required)
--channel string the channel the app sends in expo-channel-name (required)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the API’s answer
--os string android android or ios
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--runtime-version string the runtime version (required)

Show what an APK says about itself (offline): package, version, runtime version, channel, signing certificate.

fcdev updates binaries inspect <apk> [flags]
Flag Type Default Description
--json bool print as JSON

List an application’s binaries, newest version first (NEWEST marks what an install link gives).

fcdev updates binaries list [flags]
Flag Type Default Description
--app string the application’s code (required)
--app-key string only this phone app
--channel string only this channel
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the API’s answer
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--runtime-version string only this runtime version
--size int 50 how many (at most 1000)
--variant string only this variant

Upload an APK and publish it to a phone app’s channel as the release or debug build.

fcdev updates binaries publish <apk> [flags]
Reads the APK (it must be a well-formed APK signed with APK Signature Scheme v2
or v3), uploads it unless the application has it already, and publishes it to
the channel in a variant. An install link of the channel gives the newest
(highest version code) binary of each variant.
What the APK says is used, not flags: --app and --app-key default to the
application and app key its update URL names, --channel to its
expo-channel-name, and --variant to debug for a debuggable APK or one signed
with a debug keystore, else release; a flag that contradicts the APK is
refused. The release variant (the build real users get) must be neither.
Publishing the same file to the same place again changes nothing.
Flag Type Default Description
--app string the application’s code (default: the one the APK’s update URL names)
--app-key string the phone app’s key (default: the one the APK’s update URL names)
--channel string the channel (default: the APK’s expo-channel-name)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--commit string the source commit
--json bool print the API’s answer
--message string what changed
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--variant string release or debug (default: debug for a debuggable or debug-signed APK, else release)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

List an application’s branches (app key, platform, runtime version, channel) and what is live on each.

fcdev updates branches [flags]
Flag Type Default Description
--app string the application’s code (required)
--app-key string only this phone app
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the API’s answer
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Print the local fcdev’s development code-signing certificate (key id main).

fcdev updates certificate [flags]
Prints the certificate of the signing key a local fcdev uses (it creates both on
first start). Embed it in a development build: updates.codeSigningCertificate,
with updates.codeSigningMetadata {"keyid": "main", "alg": "rsa-v1_5-sha256"}.

Create an update-signing key and the code-signing certificate an app embeds.

fcdev updates keygen [flags]
Creates a 2048-bit RSA key (private-key.pem, mode 0600) and a self-signed
code-signing certificate (certificate.pem) as expo-updates requires: key usage
digital signature, extended key usage code signing, valid from one day ago for
--years years.
The private key goes into the platform's secret store and is named in
FC_APP_UPDATES_SIGNING_KEYS as <key-id>=aws-sm://... (or aws-ps://, env:, file:).
The certificate goes into the app: updates.codeSigningCertificate, with
updates.codeSigningMetadata {"keyid": "<key-id>", "alg": "rsa-v1_5-sha256"}.
Flag Type Default Description
--common-name string app updates the certificate’s common name
--key-id string main the key id the app names in codeSigningMetadata.keyid
--out-dir string . where to write private-key.pem and certificate.pem
--years int 10 how long the certificate is valid; an expired certificate stops every update

Create, replace and remove the install links people download a phone app’s binaries from (operators).

fcdev updates links [command]

Subcommands:

Command Description
fcdev updates links create Create the install link of a phone app’s channel and print its address (shown once)
fcdev updates links list List an application’s install links (their addresses are never shown again)
fcdev updates links remove Remove an install link; its address stops working at once
fcdev updates links replace Give an install link a new address; the old one stops working at once

Create the install link of a phone app’s channel and print its address (shown once).

fcdev updates links create [flags]
Creates the link through which anyone holding it downloads the newest Android
build of each variant of the channel. The address carries a 256-bit token the
platform keeps only as a hash: it is printed once. Replace the link to cut old
copies off. Needs the install-link permission (platform:app-update-admin).
Flag Type Default Description
--app string the application’s code (required)
--app-key string the phone app’s key, as in its update URL (required)
--channel string the channel the app sends in expo-channel-name (required)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the API’s answer (with the address and token)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

List an application’s install links (their addresses are never shown again).

fcdev updates links list [flags]
Flag Type Default Description
--app string the application’s code (required)
--app-key string only this phone app
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the API’s answer
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)

Remove an install link; its address stops working at once.

fcdev updates links remove <linkId> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Give an install link a new address; the old one stops working at once.

fcdev updates links replace <linkId> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the API’s answer (with the address and token)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

List an application’s updates, newest first, with what is live.

fcdev updates list [flags]
Flag Type Default Description
--app string the application’s code (required)
--app-key string only this phone app
--channel string only this channel
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--json bool print the API’s answer
--os string only android or ios
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--runtime-version string only this runtime version
--size int 50 how many (at most 1000)

Upload an expo export’s files and publish it as an update.

fcdev updates publish <export-dir> [flags]
Reads an expo export (npx expo export), uploads the files the application has
not stored, and registers one update per platform; each is live when this
returns. Fails before uploading anything when the export is malformed or a
platform has no runtime version (an export does not record one: pass
--runtime-version, or --expo-config / <export-dir>/expoConfig.json with a
runtimeVersion string).
The app config (npx expo config --type public --json) is served to the app as
Constants.expoConfig; it is read from --expo-config, else
<export-dir>/expoConfig.json when present.
An Android update for a runtime version no binary on the channel carries
(fcdev updates binaries publish) is published with a warning: phones may run
binaries distributed elsewhere. --require-binary refuses it instead.
Flag Type Default Description
--app string the application’s code (required)
--app-key string the phone app’s key, as in its update URL (required)
--channel string the channel the app sends in expo-channel-name (required)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--commit string the source commit
--expo-config string the public app config JSON (default /expoConfig.json when present)
--json bool print the published updates as JSON
--message string what changed
--os string all android, ios or all (every platform in the export); –platform is the platform URL
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--require-binary bool refuse an update for a runtime version no binary on the channel carries (use with –os android: iOS binaries are not published here)
--rollout int 100 share of the branch’s phones that receive it (0-100)
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--runtime-version string the runtime version of the binaries the update is for (all platforms)
--runtime-version-android string the android runtime version, when it differs
--runtime-version-ios string the ios runtime version, when it differs
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Make an earlier update live again (published as a new update with its files).

fcdev updates republish <updateId> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--message string why
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Roll a branch back to its previous update, or (–to-embedded) to the bundle in the binary.

fcdev updates rollback [flags]
Flag Type Default Description
--app string the application’s code (required)
--app-key string the phone app’s key, as in its update URL (required)
--channel string the channel the app sends in expo-channel-name (required)
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--message string why
--os string android or ios (required)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--runtime-version string the runtime version (required)
--to-embedded bool tell phones to run the bundle embedded in their binary
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Change the share of its branch’s phones an update reaches (newest update only).

fcdev updates rollout <updateId> <percent> [flags]
Flag Type Default Description
--client-id string OAuth client id for a loopback platform (env FC_CLIENT_ID)
--client-secret string OAuth client secret for a loopback platform (env FC_CLIENT_SECRET)
--platform string loopback platform URL (env FC_PLATFORM_URL; default: the local fcdev); remote platforms need –profile
--profile string connection profile (env FC_PROFILE; see fcdev profile add); required for any non-loopback platform
--runner string function runner URL for invoke (env FC_RUNNER_URL; default: the profile’s, else the local fcdev’s)
--yes bool non-interactive: with a prod profile that sets allow_noninteractive = true, skip the typed confirmation

Update fcdev to the latest release.

fcdev upgrade [flags]
Download the latest fcdev release for this platform from GitHub,
verify its SHA256, and atomically replace the running binary. A release
without a readable SHA256 sidecar is refused unless --insecure-skip-checksum
is given; a checksum mismatch is always refused. On Linux, when cosign is on
PATH and the release publishes the archive's .sig and .pem, the signature is
verified too (the release workflow's identity, GitHub's OIDC issuer).
These are the same release artifacts that back the install.sh / install.ps1
scripts. Set FC_DEV_UPGRADE_REPO to point at a fork.
Flag Type Default Description
--check bool only report whether a newer release exists; don’t install
--force bool reinstall even if already on the latest version
--insecure-skip-checksum bool proceed when the release publishes no readable SHA256 sidecar (a checksum MISMATCH is always an error)

Print the fcdev version.

fcdev version [flags]