Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 632 Bytes

File metadata and controls

22 lines (18 loc) · 632 Bytes
import { Client, Migrations, NHostMigrationResource } from "@appwrite.io/console";

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

const migrations = new Migrations(client);

const result = await migrations.getNHostReport({
    resources: [NHostMigrationResource.User],
    subdomain: '<SUBDOMAIN>',
    region: '<REGION>',
    adminSecret: '<ADMIN_SECRET>',
    database: '<DATABASE>',
    username: '<USERNAME>',
    password: '<PASSWORD>',
    port: null // optional
});

console.log(result);