You can run terminal commands inside the sandbox using the commands.run() method.
commands.run()
import { Sandbox } from '@e2b/code-interpreter' const sandbox = await Sandbox.create() const result = await sandbox.commands.run('ls -l') console.log(result)
Was this page helpful?