import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const itemId = 'hWl-mnkWRYmMCSTq4z_piQ';
const item = await client.items.duplicate(itemId);
console.log(item);
}
run();