import { InfisicalSDK } from "../src"; const PROJECT_ID = "PROJECT_ID"; (async () => { const client = new InfisicalSDK({ siteUrl: "http://localhost:8080" // Optional, defaults to https://app.infisical.com }); await client.auth().universalAuth.login({ clientId: "CLIENT_ID", clientSecret: "CLIENT_SECRET" }); const environment = await client.environments().create({ name: "Demo Environment", projectId: "", slug: "demo-environment", position: 1 // Optional }); const project = await client.projects().create({ projectName: "", type: "secret-manager", // cert-manager, secret-manager, kms, ssh projectDescription: "", // Optional slug: "", // Optional template: "", // Optional kmsKeyId: "kms-key-id" // Optional }); const folder = await client.folders().create({ name: "", path: "", projectId: "", environment: "", description: "" // Optional }); })();