main branch and its active branches. Use this to find the exact name to pass to the --branch flag when reading or editing files on a branch through the sandbox commands. Merged and deleted branches don’t appear.
This command doesn’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
Flags
Output
Each line is a branch name followed by its status.main is always listed first:
--json, the command returns a branches array with the same entries:
See also
sandbox read: Read file contents from a branch with--branchsandbox edit: Apply exact string replacements to a file on a branch with--branch- Bring your own agent: How the sandbox works, and what you can change in it