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 Bash interpreter rooted at the mounted filesystem. Commands run against MesaFS; no host shell is spawned.
Options
Environment variables for the shell. Defaults to empty. The host process environment is not inherited.
Working directory inside the mount. Defaults to
/.Per-exec wall-clock timeout in milliseconds. Defaults to 30 seconds.
exec()
exec(commands) takes one string containing one or more shell statements.
Shell script to execute.
Response
exec(...) returns ExecResult.
Standard output bytes.
Standard error bytes.
Process exit code.
0 indicates success.Command failures
Command failures usually return a non-zeroexit_code; they do not automatically raise.
Binary files
Usefs.read(...) for binary files. Text-oriented shell commands such as cat are intended for text output.
