Quilt
Installation & Setup
npm install @computesdk/quiltQUILT_BASE_URL=https://backend.example.com
QUILT_API_KEY=your_api_key
# or, instead of an API key:
QUILT_ACCESS_TOKEN=your_access_token
# required for snapshot operations:
QUILT_TENANT_ID=your_tenant_idUsage
import { quilt } from '@computesdk/quilt';
const compute = quilt({
baseUrl: process.env.QUILT_BASE_URL,
apiKey: process.env.QUILT_API_KEY,
});
// Create sandbox
const sandbox = await compute.sandbox.create();
// Run a command
const result = await sandbox.runCommand('echo "Hello from Quilt!"');
console.log(result.stdout); // "Hello from Quilt!"
// Clean up
await sandbox.destroy();Configuration Options
Supported Operations
Method
Supported
Notes
Notes
Last updated
Was this helpful?