List twins
Provision
Reset, extend, and tear down
reset restores the baseline captured when the Twin Run was provisioned. teardown ends the run immediately.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Provision and manage Twin Runs with the TypeScript SDK
for (const twin of await client.twins.list()) {
console.log(twin.name, twin.label, twin.kind);
}
const { runId } = await client.twins.provision({
twins: ['stripe', 'slack'],
ttlMinutes: 60,
scenarioId: 'scenario-id', // optional
public: true,
});
const status = await client.twins.getStatus(runId);
if (status.status === 'ready' && status.twins) {
for (const [name, twin] of Object.entries(status.twins)) {
console.log(name, twin.baseUrl, twin.envVars);
}
}
await client.twins.reset(runId);
await client.twins.extend(runId, { ttlMinutes: 90 });
await client.twins.teardown(runId);
reset restores the baseline captured when the Twin Run was provisioned. teardown ends the run immediately.