AgentFal CLI
Use agentfal when a workflow needs a small deterministic wrapper around fal queue requests.
Invoke the Tool
Prefer the installed binary when it exists:
agentfal submit -model "$FAL_MODEL" -input payload.json
If working inside this repository or the binary is not installed, run:
go run ./cmd/agentfal -- submit -model "$FAL_MODEL" -input payload.json
Choose Flags
- Use
submitfor new queue requests. - Use
-inputor-payloadto pass JSON or YAML arguments. - Use
status,result, orcancelwith-request. - Use
-logsonstatuswhen the queue endpoint supports log streaming in status responses. - Set
FAL_KEYorFAL_API_KEY,FAL_MODEL, and optionallyFAL_BASE_URLthrough the environment when possible. - Prefer
-format jsonor-format yamlfor downstream agent parsing.
Examples
Submit a request:
go run ./cmd/agentfal -- submit -payload '{"prompt":"hello"}'
Fetch request result:
go run ./cmd/agentfal -- result -request "$REQUEST_ID"