Freestyle
Installation & Setup
npm install @computesdk/freestyleFREESTYLE_API_KEY=your_freestyle_api_keyUsage
import { freestyle } from '@computesdk/freestyle';
const compute = freestyle({
apiKey: process.env.FREESTYLE_API_KEY,
});
// Create sandbox
const sandbox = await compute.sandbox.create();
// Run a command
const result = await sandbox.runCommand('echo "Hello from Freestyle!"');
console.log(result.stdout); // "Hello from Freestyle!"
// Clean up
await sandbox.destroy();Configuration Options
Last updated
Was this helpful?