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
- Move a file from one location to another in the sandbox.
57
-
58
-
##### `ping()`
59
-
- Ping the sandbox.
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.
60
36
61
37
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.
0 commit comments