```javascript
import { Client, Migrations, SupabaseMigrationResource } 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.createSupabaseMigration({
    resources: [SupabaseMigrationResource.User],
    endpoint: 'https://example.com',
    apiKey: '<API_KEY>',
    databaseHost: '<DATABASE_HOST>',
    username: '<USERNAME>',
    password: '<PASSWORD>',
    port: null // optional
});

console.log(result);
```
