SyncServerlessClient is the synchronous Python client for interacting with fal Serverless.
Its namespaces and methods mirror the CLI so you can automate the same workflows from Python.
Import and Initialize
Overview of Namespaces
client.apps.*— corresponds tofal apps ...client.runners.*— corresponds tofal runners ...client.deploy(...)— corresponds tofal deploy ...
Apps Namespace
Manage your applications: list them, view runners for a specific app, and adjust scaling.List Applications (fal apps list)
List App Runners (fal apps runners my-app)
Scale Application (fal apps scale)
Maps to CLI flags infal apps scale. Any omitted option keeps the current value.
Runners Namespace
List and manage runners.List Runners (fal runners list)
Keys Namespace
Create and manage API keys that the service uses to authenticate requests. The Python surface mirrorsfal keys ....
Create Key (fal keys create)
List Keys (fal keys list)
Revoke Key (fal keys revoke)
Secrets Namespace
Store configuration values for builds and runtime without hardcoding them. Values are never returned when you list secrets.Set Secret (fal secrets set)
List Secrets (fal secrets list)
Unset Secret (fal secrets unset)
Deploy (fal deploy)
Programmatic equivalent offal deploy. If app_ref is omitted, discovery behavior matches the CLI (e.g., pyproject.toml).