Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 447 Bytes

File metadata and controls

21 lines (16 loc) · 447 Bytes

Running commands in sandbox

You can run terminal commands inside the sandbox using the commands.run() method.

```js import { Sandbox } from '@e2b/code-interpreter'

const sandbox = await Sandbox.create() const result = await sandbox.commands.run('ls -l') console.log(result)

```python
from e2b_code_interpreter import Sandbox

sandbox = Sandbox.create()

result = sandbox.commands.run('ls -l')
print(result)