Protected
const response = await myBox.command('ls -l');orconst response = await myBox.command({ commands: ['ls -l'] } ); Copy
const response = await myBox.command('ls -l');orconst response = await myBox.command({ commands: ['ls -l'] } );
const response = await myBox.display(); Copy
const response = await myBox.display();
Optional
const response = await myBox.liveView(); Copy
const response = await myBox.liveView();
const response = await myBox.runCode('print("Hello, World!")');orconst response = await myBox.runCode({ code: 'print("Hello, World!")', language: 'bash' }); Copy
const response = await myBox.runCode('print("Hello, World!")');orconst response = await myBox.runCode({ code: 'print("Hello, World!")', language: 'bash' });
const response = await myBox.start(); Copy
const response = await myBox.start();
const response = await myBox.stop(); Copy
const response = await myBox.stop();
const response = await myBox.terminate(); Copy
const response = await myBox.terminate();
const response = await myBox.webTerminal(); Copy
const response = await myBox.webTerminal();
Example