You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 17, 2026. It is now read-only.
docs: clarify that setup commands run as root and repo location
- Add information about setup commands running as root user
- Specify that repositories are cloned to /workspace directory
- Add example for running commands as non-root user (e.g., for Homebrew)
Co-authored-by: Jay Hack <jay@codegen.com>
Copy file name to clipboardExpand all lines: docs/sandboxes/setup-commands.mdx
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,13 @@ To configure setup commands for a repository:
31
31
32
32
Enter your desired setup commands in the provided text area, with one command per line. These commands will be executed in sequence within the sandbox environment.
33
33
34
+
<Info>
35
+
**Important Environment Details:**
36
+
- All setup commands run as the **root** user
37
+
- Your repository is cloned to the **/workspace** directory
38
+
- If you need to run commands as a non-root user, use `su <username> -c "command"` (e.g., `su linuxbrew -c "brew install <package>"`)
39
+
</Info>
40
+
34
41
For example, you might want to:
35
42
36
43
- Switch to a specific Node.js version.
@@ -67,6 +74,12 @@ npm ci
67
74
npm run build
68
75
```
69
76
77
+
```bash
78
+
# Running commands as a non-root user (e.g., for Homebrew)
79
+
su linuxbrew -c "brew install postgresql"
80
+
su linuxbrew -c "brew services start postgresql"
81
+
```
82
+
70
83
### Working with Different Python Versions
71
84
72
85
The sandbox comes with Python 3.13 by default, but some packages may not yet be compatible with this version. Here are strategies for handling different Python versions:
@@ -144,4 +157,3 @@ deactivate
144
157
The environment variables listed in the "Env Variables" section are available
0 commit comments