Skip to content

Commit 2abadee

Browse files
committed
fix the date
1 parent fb9f45d commit 2abadee

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/content/changelog/agents/2025-06-24-announcing-sandboxes.mdx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Announcing Sandboxes
2+
title: Announcing Sandboxes for your AI-generated code
33
description: You can start creating sandboxes today by installing our new Sandbox package.
44
products:
55
- agents
66
- workers
77
- workflows
8-
date: 2025-06-25T16:00:00Z
8+
date: 2025-06-25T15:00:00Z
99
---
1010

1111
AI is supercharging app development for everyone, but we need a safe way to run untrusted, LLM-written code. We’re introducing [Sandboxes](https://www.npmjs.com/package/@cloudflare/sandbox), which let your Worker run actual processes in a secure, container-based environment.
@@ -22,6 +22,19 @@ export default {
2222
};
2323
```
2424
25+
### Methods:
26+
27+
`exec`(command: string, args: string[], options?: { stream?: boolean }): Execute a command in the sandbox.
28+
`gitCheckout`(repoUrl: string, options: { branch?: string; targetDir?: string; stream?: boolean }): Checkout a git repository in the sandbox.
29+
`mkdir`(path: string, options: { recursive?: boolean; stream?: boolean }): Create a directory in the sandbox.
30+
`writeFile`(path: string, content: string, options: { encoding?: string; stream?: boolean }): Write content to a file in the sandbox.
31+
`readFile`(path: string, options: { encoding?: string; stream?: boolean }): Read content from a file in the sandbox.
32+
`deleteFile`(path: string, options?: { stream?: boolean }): Delete a file from the sandbox.
33+
`renameFile`(oldPath: string, newPath: string, options?: { stream?: boolean }): Rename a file in the sandbox.
34+
`moveFile`(sourcePath: string, destinationPath: string, options?: { stream?: boolean }): Move a file from one location to another in the sandbox.
35+
`ping`() : Ping the sandbox.
36+
37+
2538
Sandboxes are still experimental. We're using them to explore how isolated, container-like workloads might scale on Cloudflare — and to help define the developer experience around them.
2639
2740
You can try it today from your Worker, with just a few lines of code. Let us know what you build.

0 commit comments

Comments
 (0)