Sail
Installation & Setup
npm install computesdk @computesdk/sailexport SAIL_API_KEY=your_sail_api_keyUsage
import { sail } from '@computesdk/sail';
const compute = sail({ app: 'my-app' });
const sandbox = await compute.sandbox.create();
const result = await sandbox.runCommand('node --version');
console.log(result.stdout);
await sandbox.filesystem.writeFile('/tmp/result.txt', result.stdout);
console.log(await sandbox.filesystem.readFile('/tmp/result.txt'));
await sandbox.destroy();Configuration Options
Supported Operations
Method
Supported
Notes
Last updated
Was this helpful?