Skip to main content
Read one or more files from an app’s sandbox, the cloud environment that holds the app’s code. Use --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’s error.code is one of:

Example

Read the first 200 lines of a page component:

See also