Show examples in:
Trigger a deploy

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const buildTriggerId = '1822';
await client.buildTriggers.trigger(buildTriggerId);
}
run();