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
Copy file name to clipboardExpand all lines: docs/roo-code-cloud/environments.mdx
+37-4Lines changed: 37 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,9 +247,14 @@ repositories:
247
247
logfile: /tmp/backend.log
248
248
```
249
249
250
-
### Repository Format
250
+
### Repository Configuration Fields
251
251
252
-
Use the `owner/repo` format (e.g., `myorg/my-app`).
252
+
| Field | Description | Required |
253
+
|-------|-------------|----------|
254
+
| `repository` | Repository in `owner/repo` format (e.g., `myorg/my-app`) | Yes |
255
+
| `branch` | Branch to checkout (defaults to the repository's default branch) | No |
256
+
| `tool_versions` | Tool versions to install via [mise](https://mise.jdx.dev/) (see [Tool Installation](#automatic-tool-installation)) | No |
257
+
| `commands` | Ordered list of commands to run after cloning | No |
253
258
254
259
### Commands
255
260
@@ -285,14 +290,39 @@ When `detached` is true, the command runs via `nohup` and the worker moves on af
285
290
286
291
### Automatic Tool Installation
287
292
288
-
If a repository contains a `.tool-versions` file (used by [mise](https://mise.jdx.dev/) / asdf), Roo Code Cloud automatically runs `mise install` after cloning. This installs the correct versions of tools like Node.js, Python, Ruby, Go, or any other runtime your project requires — before any of your setup commands execute.
293
+
Roo Code Cloud uses [mise](https://mise.jdx.dev/) to manage tool versions. There are two ways to specify which versions of Node.js, Python, Ruby, Go, or other runtimes your project needs.
294
+
295
+
#### Option 1: `tool_versions` in the environment config
296
+
297
+
Set `tool_versions` directly on a repository entry to declare tool versions without modifying the repo itself. Roo Code Cloud generates a `.tool-versions` file from this config and adds it to `.git/info/exclude` so it stays out of version control.
298
+
299
+
```yaml
300
+
repositories:
301
+
- repository: myorg/backend
302
+
tool_versions:
303
+
node: "20.11.0"
304
+
python: "3.12.1"
305
+
commands:
306
+
- name: Install
307
+
run: npm install
308
+
```
309
+
310
+
This takes priority over any existing `.tool-versions` file in the repository.
311
+
312
+
#### Option 2: `.tool-versions` file in the repository
313
+
314
+
If a repository already contains a `.tool-versions` file (used by mise / asdf), Roo Code Cloud automatically picks it up and runs `mise install` after cloning — no extra configuration needed.
289
315
290
316
```
291
317
# .tool-versions
292
-
nodejs 20.11.0
318
+
node 20.11.0
293
319
python 3.12.1
294
320
```
295
321
322
+
:::tip
323
+
Use `tool_versions` in the environment config when you want to pin versions per-environment without committing changes to the repository. Use a `.tool-versions` file in the repo when all environments should share the same versions.
0 commit comments