Skip to main content
The 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 to fal apps ...
  • client.runners.* — corresponds to fal runners ...
  • client.secrets.* — corresponds to fal secrets ...
  • client.keys.* — corresponds to fal keys ...
  • client.environments.* — corresponds to fal environments ...
  • client.deploy(...) — corresponds to fal 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 in fal apps scale. Any omitted option keeps the current value.

Rollout Application (fal apps rollout)

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 mirrors fal 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)

Environments Namespace

Create and manage environments to organize your applications and secrets across different stages (development, staging, production).

Create Environment (fal environments create)

List Environments (fal environments list)

Delete Environment (fal environments delete)

Deleting an environment removes all apps and secrets in that environment.

Deploy (fal deploy)

Programmatic equivalent of fal deploy. If app_ref is omitted, discovery behavior matches the CLI (e.g., pyproject.toml).

Reference

CLI Overview

CLI commands that mirror these methods

API Reference

Full method signatures and types