跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://ppio.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

您可以使用 commands.run() 方法在沙箱内运行终端命令。
import { Sandbox } from 'ppio-sandbox/code-interpreter'

const sandbox = await Sandbox.create()

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

await sandbox.kill()