Sorry, no results found for "".
Returns a resource object of type environment
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const environmentId = "main";7 8 const environment = await client.environments.find(environmentId);9 10 // Check the 'Returned output' tab for the result ☝️11 console.log(environment);12}13 14run();
1{2 id: "main",3 meta: {4 status: "ready",5 created_at: "2020-04-21T07:57:11.124Z",6 read_only_mode: true,7 last_data_change_at: "2020-04-21T07:57:11.124Z",8 primary: true,9 forked_from: "main",10 },11}