--offset and --limit to pull a line range instead of a whole file. A file that cannot be read does not fail the command. That file comes back with an error object holding a code and a message instead of content, and the other files in the same command still return normally.
Every path is relative to the app root. sandbox commands don’t require a local project. Target an app by passing --app-id, setting the BASE44_APP_ID environment variable, or running the command from a linked project if you have one.
Usage
Arguments
Flags
Output
The command returns JSON with one entry per requested path, in the order you passed them:
A single file returns at most about 1 MB of content, and one command returns at most 6 MB across all files. Read a line range with
--offset and --limit when a file is larger than that, or split the paths across several commands.
Errors
A file’serror.code is one of:
Example
Read the first 200 lines of a page component:See also
- Bring your own agent: How the sandbox works, and what you can change in it
sandbox ls: List directory entries in the sandboxsandbox grep: Search files in the sandbox for a patternsandbox edit: Apply exact string replacements to a file