Skip to main content
Search the files in an app’s sandbox for a pattern and get back the matching lines with their file paths and line numbers. Use it to locate the code you want to change before reading or editing it. If the result comes back with truncated set to true, it’s incomplete: raise --max-results or narrow the search with --path and --glob to get a complete result. 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:
Each match in matches has: The response itself also carries:

Example

Find every use of a hook in the src tree, in .tsx files only:

See also