import { Client, Projects, PlatformType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const projects = new Projects(client); const result = await projects.createPlatform( '', // projectId PlatformType.Web, // type '', // name '', // key (optional) '', // store (optional) '' // hostname (optional) ); console.log(result);