Documentation Index
Fetch the complete documentation index at: https://docs.mesa.dev/llms.txt
Use this file to discover all available pages before exploring further.
fs.bash(...) builds a just-bash interpreter rooted at the mounted filesystem. Commands run against MesaFS; no host shell is spawned.
Options
Environment variables for the shell. The host process environment is not inherited unless you pass it explicitly.
Working directory inside the mount. Defaults to
/.Limits for command count, loops, output sizes, and related execution safety controls.
Restrict available built-in command names.
Register custom command implementations.
Enable network commands with explicit URL policy.
Custom secure fetch implementation used by network-enabled commands.
Python execution configuration. Disabled by default.
JavaScript execution configuration. Disabled by default.
Receives command execution logs.
exec()
exec(command) takes one string containing one or more shell statements.
Shell script to execute.
Response
exec(...) returns ExecResult from just-bash.
Standard output.
Standard error.
Process exit code.
0 indicates success.Resulting shell environment when included by
just-bash.Command failures
Command failures usually return a non-zeroexitCode; they do not automatically raise.
Binary files
Usefs.readFileBuffer(...) for binary files. Text-oriented shell commands such as cat are intended for text output.
