Report incorrect code
Copy
Ask AI
Usage: fal runners [-h] command ...
Manage fal runners.
Options:
-h, --help show this help message and exit
Commands:
command
stop Stop a runner gracefully.
kill Kill a runner.
list List runners.
logs (log) Show logs for a runner.
shell Open an interactive shell in a runner.
List
Report incorrect code
Copy
Ask AI
Usage: fal runners list [-h] [--team TEAM] [--since SINCE]
[--state {all,running,pending,setup,dead} [...]]
[--output {pretty,json}] [--json]
List runners.
Options:
-h, --help show this help message and exit
--team TEAM The team to use.
--since SINCE Show dead runners since the given time. Accepts 'now', relative like '30m', '1h', '1d', or an ISO timestamp. Max 24 hours.
--state {all,running,pending,setup,dead} [{all,running,pending,setup,dead} ...]
Filter by runner state(s). Choose one or more, or 'all' (default).
Output:
--output {pretty,json}
Modify the command output
--json Output in JSON format (same as --output json)
Logs
Report incorrect code
Copy
Ask AI
Usage: fal runners logs [-h] [--output {pretty,json}] [--json] [--team TEAM]
[--search SEARCH] [--since SINCE] [--until UNTIL]
[--follow] [--lines LINES]
id
Show logs for a runner.
Positional Arguments:
id Runner ID.
Options:
-h, --help show this help message and exit
--team TEAM The team to use.
--search SEARCH Search for string in logs.
--since SINCE Show logs since the given time. Accepts 'now', relative like '30m', '1h', or an ISO timestamp. Defaults to runner start time or to '1m ago' in --follow mode.
--until UNTIL Show logs until the given time. Accepts 'now', relative like '30m', '1h', or an ISO timestamp. Defaults to runner finish time or 'now' if it is still running.
--follow, -f Follow logs live. If --since is not specified, implies '--since 1m ago'.
--lines, -n LINES Only show latest N log lines. If '+' prefix is used, show oldest N log lines. Ignored if --follow is used.
Output:
--output {pretty,json}
Modify the command output
--json Output in JSON format (same as --output json)
Stop
Report incorrect code
Copy
Ask AI
Usage: fal runners stop [-h] [--team TEAM] id
Stop a runner gracefully.
Positional Arguments:
id Runner ID.
Options:
-h, --help show this help message and exit
--team TEAM The team to use.
Kill
Report incorrect code
Copy
Ask AI
Usage: fal runners kill [-h] [--team TEAM] id
Kill a runner.
Positional Arguments:
id Runner ID.
Options:
-h, --help show this help message and exit
--team TEAM The team to use.
Shell
Report incorrect code
Copy
Ask AI
Usage: fal runners shell [-h] [--team TEAM] id
Open an interactive shell session inside a running runner.
Positional Arguments:
id Runner ID.
Options:
-h, --help show this help message and exit
--team TEAM The team to use.
Use Cases
- Debug running code: Inspect the runtime environment of a live runner
- Check dependencies: Verify installed packages and their versions
- Examine state: Inspect files, environment variables, and runtime state
- Troubleshoot issues: Diagnose problems in production runners
Example
Connect to a running runner:Report incorrect code
Copy
Ask AI
# Get runner ID from runners list
fal runners list
# Connect to the runner
fal runners shell runner_abc123xyz
Ctrl+D or type exit to disconnect.