Skip to main content
Run a one-shot command with a service’s managed env vars injected — e.g., a test suite against cloud Postgres, a data backfill script, or a migration against the dev schema without redeploying. floo run creates a short-lived dev session to fetch the service’s env vars (DATABASE_URL, REDIS_URL, custom vars set via floo env), authorizes direct Postgres connections if the app uses managed Postgres, runs the command in the service’s directory, then tears the session down on exit. The command’s exit code is propagated exactly, so a failing test suite returns non-zero.
Everything after -- is the command to execute. Use -- so flags on your command aren’t interpreted by floo.

Flags

Examples

How it differs from floo dev

  • floo dev starts a long-lived local server bound to a port, with cross-service discovery so web can reach api at http://localhost:<port>.
  • floo run is portless and single-shot. No local server, no cross-service discovery — just env vars + Postgres auth for the duration of the command.
Use floo dev to run your app locally against cloud credentials. Use floo run to execute a script or test suite against them.

Errors