Show examples in:
    List all environments

    Returns

    Returns an array of environment resource objects.

    Examples

    Example Basic example
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const environments = await client.environments.list();
    environments.forEach((environment) => {
    console.log(environment);
    });
    }
    run();