const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey(''); // Your secret API key const functions = new sdk.Functions(client); const result = await functions.create({ functionId: '', name: '', runtime: sdk..Node145, execute: ["any"], // optional events: [], // optional schedule: '', // optional timeout: 1, // optional enabled: false, // optional logging: false, // optional entrypoint: '', // optional commands: '', // optional scopes: [], // optional installationId: '', // optional providerRepositoryId: '', // optional providerBranch: '', // optional providerSilentMode: false, // optional providerRootDirectory: '', // optional specification: '' // optional });