TypeScript SDK
@pontx/mongodb-atlas-admin
The operator-published SDK for MongoDB Atlas Administration API v2 covers every Endpoint in the current PontxSpec.
SDK quality gate
The source for v0.1.1 passed its complete unit suite and built-package E2E on Node.js 18 / 20 / 22.
Install and call
The SDK is produced by Pontx and typechecked and built before publication.
pnpm add @pontx/mongodb-atlas-adminimport { createMongoDbAtlasAdminClient } from "@pontx/mongodb-atlas-admin";
const client = createMongoDbAtlasAdminClient({
clientId: process.env.MONGODB_ATLAS_SERVICE_ACCOUNT_CLIENT_ID!,
clientSecret: process.env.MONGODB_ATLAS_SERVICE_ACCOUNT_CLIENT_SECRET!
});
const result = await client.organizations.listOrgs(
{}
);
console.log(result);Command-line access
This npm package also publishes a dedicated CLI for the API. Use dry-run to inspect parameters, then supply your own provider credentials when required.
pnpm add --global @pontx/mongodb-atlas-admin
pontx-mongodb-atlas-admin call organizations listOrgs --dry-run