Troubleshooting
Common issues and quick fixes.
Validate fire files in CI or pre-commit
fire cli check validates the same merged configuration Fire resolves in the current project.
It checks schema types and unknown keys, command/group/namespace collisions, includes, explicit
env_file paths, placeholder patterns, unused compute keys, runtime prefixes, dependency graphs,
and commands without an action. Errors exit 1; missing explicit env files and suspicious
placeholder/compute settings are warnings unless --strict is set.
For GitHub Actions:
- name: Validate Fire configuration
run: fire cli check --strict
For a framework-free Git pre-commit hook, save this as .git/hooks/pre-commit and make it
executable:
#!/bin/sh
exec fire cli check --strict
Use fire cli check --format json for structured diagnostics with file, line, severity,
message, and hint fields. Add --global only when the registered directories on that machine
should be checked too.
Completion not working
- Re-run
fire cli completion installto refresh shell init. - Open a new shell or
source ~/.zshrc/~/.bashrc. - Ensure
fireis on yourPATH(e.g., Homebrew path is exported).
Command not found / wrong path
- Check namespace/group: try
fire <namespace> <command>orfire <namespace> <group> <command>. - Remember
cliis reserved and cannot be overridden. - Use
:hsuffix to verify resolution:fire run :h.
Fallback runner always triggers
- Inspect the
checkcommand; if it exits non-zero, Fire will usefallback_runnerevery time. - Remove or relax
checkif you want the primary runner to be used more often.
the input device is not a TTY
The runner has -t but Fire writes the commands to its stdin (no {fire.exec} in the runner), so stdin is not a terminal. Either:
- remove
-t(keep-i), or - use
{fire.exec}so stdin stays free:docker run --rm -it node sh -c {fire.exec}. Outside a terminal (CI, agents,fire --bgwithout a pty)-tstill fails, so - add
-tonly when there is a terminal:docker run --rm -i $([ -t 0 ] && echo -t) node sh -c {fire.exec}.
Fire runs runners exactly as written: it no longer strips -t or picks an “attached” mode based on the terminal. Runners that relied on that (e.g. docker exec -it db bash to type a password) need -c {fire.exec}.
Runner does nothing, with no error
Without {fire.exec}, the commands go to the runner’s stdin, so the runner must read it:
docker run/docker execneed-i; without it docker ignores stdin and nothing runs.docker compose execneeds-T(it allocates a TTY by default).
{fire.exec} … is already quoted
Fire quotes the commands it puts in place of {fire.exec}. Remove the quotes around it:
sh -c {fire.exec}, not sh -c '{fire.exec}' or sh -c "{fire.exec}".
{fire.exec} only works in command runners
A runtime runner doesn’t take {fire.exec}: it’s the sdk’s executable, or a command that ends
in it, and Fire appends the sdk’s arguments (runner: docker run --rm -i my-image deno). See
Runtime runners.
Runtime runner exited before connecting
- The runtime prints the reason above Fire’s message:
Missing FIRE_RUNTIME_RPC_ADDRorCannot connect to fire at …. - In a container, pass the address:
-e FIRE_RUNTIME_RPC_ADDR=host.docker.internal:$FIRE_RUNTIME_RPC_PORT(see Runtime runners). Cannot connect to fire at host.docker.internal:…with native Docker on Linux: the alias points at the bridge, not at Fire’s loopback listener. Usenetwork_mode: hostin the container object, or--network host -e FIRE_RUNTIME_RPC_ADDR=127.0.0.1:$FIRE_RUNTIME_RPC_PORTin a string runner.- The runner must end in the sdk’s executable (or an image whose entrypoint is it): Fire appends the sdk’s arguments.
Container runner errors
tty: true needs {fire.exec} in command: without{fire.exec}the commands go to the container’s stdin, which can’t be a terminal. Addcommand: sh -c {fire.exec}or droptty.- The container runs
node(or another program) instead of your commands: withoutcommand, the image’s own command runs. Addcommand: sh -c {fire.exec}orcommand: sh. unknown key ...: the object only takesimage,engine,tty,command,volumes,working_dir,environment,user,network,network_modeandargs.- Files missing inside the container after setting
volumes: explicitvolumesreplace the inferred mounts, so add the project yourself (./:/app). - Files created as root on Linux: set
user: $(id -u):$(id -g).
Interactive compute gets an empty value
- Without a terminal (pipes, CI, cron,
fire x < file) a shellcomputegets a closed stdin, soreadreturns empty instead of waiting. Pass the value as an argument or through the environment there. - In a background session the prompt waits in the session output: answer with
fire cli send <id> <text>or attach withfire cli fg <id>. - The prompt ended up in the value: write prompts to stderr (
printf "Name: " >&2); everything on stdout is the value.
Aliases or functions not found with shell:
- Non-interactive shells don’t load
.zshrc/.bashrc. Usebash -l/zsh -lfor your login profile, or call the program directly. shell: $SHELLwith an unset variable is an error: set it inenvironmentor use a program name.- With
fish,execarrays are chained withand; with nu, tcsh and other shells withoutset -e, every line runs even after a failure.
Eval fails or exits early
- Missing runtime key: confirm it exists under
runtimes. on_unused_args: erroraborts when extra args are not consumed by placeholders ineval.- For Python/Node/Deno version mismatches, adjust
runnerorfallback_runnerto the right binary/image.
Windows
- Native Windows isn’t supported: sessions run commands on Unix ptys. Use
WSL and install the Linux build inside it
(
curl -fsSL https://raw.githubusercontent.com/gbenm/fire/main/install.sh | sh). - Run
fireandfire cli completion installfrom the WSL shell, and keep your project in the Linux filesystem (~/...) rather than/mnt/c/...for much faster file access. - To let a Windows-side MCP host reach Fire in WSL, use command
wslwith args["bash", "-lc", "fire cli mcp"](the login shell loads thePATHwhere Fire was installed).