fal CLI
$ fal Official Med Riskfal CLI (fal) develops, tests, and deploys custom serverless Python GPU apps on fal.ai, and invokes hosted media/AI endpoints via fal api. It supports headless authentication with FAL_KEY, typed JSON parameter arguments (key:=value) on fal api, ephemeral workers (fal run), and production deploys (fal deploy).
pip install fal fal bundles local Python serverless app definitions and deploys/streams them directly to fal.ai GPU workers.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports FAL_KEY headless auth and typed JSON args (:=) on fal api, though fal apps list lacks a universal --json flag and fal auth login is browser-interactive.
FAL_KEYenables headless runs;fal apisupports:=JSON typing- Management commands like
fal apps listemit text tables
fal run defaults to public ephemeral auth while fal deploy defaults to private FAL_KEY auth; remote GPU execution incurs billing.
fal deployenforces private auth mode by default; GPU runs bill credits
Lightweight cross-platform PyPI package (pip install fal) on macOS, Linux, and Windows.
- Cross-platform
pip install fal
Fast workflow from local Python app testing (fal run) to autoscaling serverless GPU endpoints (fal deploy, fal apps scale).
- Covers
run,deploy,apps scale,apps logs, andapi
Official fal-ai/fal package under Apache-2.0 license.
- Official
fal-ai/falrepository (Apache-2.0)
Clear documentation at docs.fal.ai and subcommand --help.
- Official serverless CLI docs at docs.fal.ai
Security, Auth & Guardrails
Reads FAL_KEY environment variable for headless auth or caches OAuth session credentials via fal auth login.
Apache-2.0 open-source Python package; fal run, fal deploy, and fal api consume paid fal.ai compute credits.
# fal CLI Agent Rules - Set `FAL_KEY` in the environment for headless execution; never run `fal auth login` in non-interactive shells. - Confirm before running `fal deploy`, `fal apps scale`, or `fal api`, as serverless GPU runs incur billing.
Agent-Ready Command Recipes
Safe Read-Only Queries
fal apps list
Lists your deployed serverless fal.ai applications and endpoint IDs.
fal apps logs my-app
Inspects recent execution logs for an existing fal.ai deployment.
Controlled Writes & Previews
fal api fal-ai/flux/schnell prompt="Minimalist geometric logo" num_images:=1 seed:=42
Runs one bounded inference request against a fal endpoint using := JSON-typed parameters.
Strengths for Agents
- + End-to-end serverless GPU app lifecycle (
fal run,fal deploy,fal apps scale) plus directfal apiinvocation. - + Clean
FAL_KEYenv auth and:=JSON parameter syntax onfal api.
Caveats & Pitfalls
- ! Lacks a universal
--jsonoutput flag acrossfal appssubcommands. - !
fal auth loginopens an interactive browser flow ifFAL_KEYis not set.