Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 414 Bytes

create.md

File metadata and controls

16 lines (12 loc) · 414 Bytes

import { Client, Account } from "appwrite";

const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.create( '<USER_ID>', // userId 'email@example.com', // email '', // password '' // name (optional) );

console.log(result);