Skip to main content
You can use the commands.run() method to run terminal commands inside the sandbox.
import { Sandbox } from 'novita-sandbox/code-interpreter'

const sandbox = await Sandbox.create()

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

await sandbox.kill()
Last modified on June 4, 2026