| owner
				 stringclasses 603
				values | repo
				 stringclasses 778
				values | repo_dir
				 stringclasses 830
				values | file_rel_repo
				 stringlengths 6 222 | file_rel_outdir
				 stringlengths 16 235 | size
				 int64 0 2.36M | mtime
				 int64 1.76B 1.76B | lang
				 stringclasses 10
				values | content
				 stringlengths 0 2.36M | updated_at
				 stringdate 2025-09-24 14:46:58 2025-09-24 14:46:58 | 
|---|---|---|---|---|---|---|---|---|---|
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/storage/delete-file.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/storage/delete-file.md | 485 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let storage = new sdk.Storage(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = storage.deleteFile('[FILE_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/storage/list-files.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/storage/list-files.md | 473 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let storage = new sdk.Storage(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = storage.listFiles();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/storage/update-file.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/storage/update-file.md | 493 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let storage = new sdk.Storage(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = storage.updateFile('[FILE_ID]', [], []);
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/storage/get-file-download.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/storage/get-file-download.md | 490 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let storage = new sdk.Storage(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = storage.getFileDownload('[FILE_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/storage/get-file-view.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/storage/get-file-view.md | 486 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let storage = new sdk.Storage(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = storage.getFileView('[FILE_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/storage/get-file.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/storage/get-file.md | 482 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let storage = new sdk.Storage(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = storage.getFile('[FILE_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/storage/create-file.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/storage/create-file.md | 553 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
const fs = require('fs');
// Init SDK
let client = new sdk.Client();
let storage = new sdk.Storage(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = storage.createFile(fs.createReadStream(__dirname + '/file.png')), [], []);
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/create-document.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/create-document.md | 510 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.createDocument('[COLLECTION_ID]', {}, [], []);
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/list-collections.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/list-collections.md | 482 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.listCollections();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/delete-document.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/delete-document.md | 515 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/update-collection.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/update-collection.md | 518 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.updateCollection('[COLLECTION_ID]', '[NAME]', [], []);
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/get-collection.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/get-collection.md | 497 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.getCollection('[COLLECTION_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/create-collection.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/create-collection.md | 503 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.createCollection('[NAME]', [], [], []);
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/get-document.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/get-document.md | 512 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/delete-collection.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/delete-collection.md | 500 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.deleteCollection('[COLLECTION_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/list-documents.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/list-documents.md | 497 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.listDocuments('[COLLECTION_ID]');
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/database/update-document.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/database/update-document.md | 527 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let database = new sdk.Database(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}, [], []);
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-queue-certificates.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-queue-certificates.md | 481 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getQueueCertificates();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-d-b.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-d-b.md | 466 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getDB();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get.md | 464 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.get();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-time.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-time.md | 468 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getTime();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-queue-webhooks.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-queue-webhooks.md | 477 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getQueueWebhooks();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-queue-logs.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-queue-logs.md | 473 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getQueueLogs();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-queue-usage.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-queue-usage.md | 474 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getQueueUsage();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-storage-local.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-storage-local.md | 476 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getStorageLocal();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-queue-functions.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-queue-functions.md | 478 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getQueueFunctions();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-cache.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-cache.md | 469 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getCache();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-anti-virus.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-anti-virus.md | 473 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getAntiVirus();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/examples/0.6.x/server-nodejs/examples/health/get-queue-tasks.md | 
	appwrite__appwrite/docs/examples/0.6.x/server-nodejs/examples/health/get-queue-tasks.md | 474 | 1,758,118,740 | 
	en | 
	const sdk = require('node-appwrite');
// Init SDK
let client = new sdk.Client();
let health = new sdk.Health(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = health.getQueueTasks();
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
}); | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/account.md | 
	appwrite__appwrite/docs/services/account.md | 1,639 | 1,758,118,744 | 
	en | 
	The Account service allows you to authenticate and manage a user account. You can use the account service to update user information, retrieve the user sessions across different devices, and fetch the user security logs with his or her recent activity.
Register new user accounts with the [Create Account](https://appwrite.io/docs/references/cloud/client-web/account#create), [Create Magic URL session](https://appwrite.io/docs/references/cloud/client-web/account#createMagicURLSession), or [Create Phone session](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneSession) endpoint. You can authenticate the user account by using multiple sign-in methods available. Once the user is authenticated, a new session object will be created to allow the user to access his or her private data and settings.
This service also exposes an endpoint to save and read the [user preferences](https://appwrite.io/docs/references/cloud/client-web/account#updatePrefs) as a key-value object. This feature is handy if you want to allow extra customization in your app. Common usage for this feature may include saving the user's preferred locale, timezone, or custom app theme.
> ## Account API vs Users API
> While the Account API operates in the scope of the current logged-in user and usually using a client-side integration, the Users API is integrated from the server-side and operates in an admin scope with access to all your project users. 
> 
> Some of the Account API methods are available from the server SDK when you authenticate with JWT. This allows you to perform server-side actions on behalf of your project user.
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/teams.md | 
	appwrite__appwrite/docs/services/teams.md | 395 | 1,758,118,744 | 
	en | 
	
The Teams service allows you to group users of your project and to enable them to share [read and write](https://appwrite.io/docs/permissions) access to your project resources, such as database documents or storage files.
Each user who creates a team becomes the team owner and can delegate the ownership role by inviting a new team member. Only team owners can invite new users to their team. | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/health.md | 
	appwrite__appwrite/docs/services/health.md | 165 | 1,758,118,744 | 
	en | 
	The Health service is designed to allow you to both validate and monitor that your Appwrite server instance and all of its internal components are up and responsive. | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/users.md | 
	appwrite__appwrite/docs/services/users.md | 703 | 1,758,118,744 | 
	en | 
	The Users service allows you to manage your project users. Use this service to search, block, and view your users' info, current sessions, and latest activity logs. You can also use the Users service to edit your users' preferences and personal info.
> ## Users API vs Account API
> While the Users API is integrated from the server-side and operates in an admin scope with access to all your project users, the Account API operates in the scope of the current logged in user and usually using a client-side integration.
> 
> Some of the Account API methods are available from the server SDK when you authenticate with JWT. This allows you to perform server-side actions on behalf of your project user. | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/databases.md | 
	appwrite__appwrite/docs/services/databases.md | 1,022 | 1,758,118,744 | 
	en | 
	The Databases service allows you to create structured collections of documents, query and filter lists of documents, and manage an advanced set of read and write access permissions.
All data returned by the Databases service are represented as structured JSON documents.
The Databases service can contain multiple databases, each database can contain multiple collections. A collection is a group of similarly structured documents. The accepted structure of documents is defined by [collection attributes](https://appwrite.io/docs/databases#attributes). The collection attributes help you ensure all your user-submitted data is validated and stored according to the collection structure.
Using Appwrite permissions architecture, you can assign read or write access to each collection or document in your project for either a specific user, team, user role, or even grant it with public access (`any`). You can learn more about [how Appwrite handles permissions and access control](https://appwrite.io/docs/permissions). | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/functions.md | 
	appwrite__appwrite/docs/services/functions.md | 525 | 1,758,118,744 | 
	en | 
	The Functions service allows you to create custom behaviour that can be triggered by any supported Appwrite system events or by a predefined schedule.
Appwrite Cloud Functions lets you automatically run backend code in response to events triggered by Appwrite or by setting it to be executed in a predefined schedule. Your code is stored in a secure way on your Appwrite instance and is executed in an isolated environment.
You can learn more by following our [Cloud Functions tutorial](https://appwrite.io/docs/functions). | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/vcs.md | 
	appwrite__appwrite/docs/services/vcs.md | 618 | 1,758,118,744 | 
	en | 
	The VCS (Version Control System) service in Appwrite provides a way to interact with VCS providers like Git, GitHub etc. and manage your code repositories. You can use it to install the VCS app or to create, list, and delete repositories. You can also use the VCS service to clone, push, and pull code from your repositories.
The VCS service helps you to either link an existing code repository to your Appwrite Function or to create a new repository from scratch using one of the available templates. If you link a repository to an Appwrite Function, it automatically creates a new deployment when you push changes.
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/avatars.md | 
	appwrite__appwrite/docs/services/avatars.md | 427 | 1,758,118,744 | 
	en | 
	The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars.
The Avatars service allows you to fetch country flags, browser icons, payment methods logos, remote websites favicons, generate QR codes, and manipulate remote image URLs.
All endpoints in this service allow you to resize, crop, and change the output image quality for maximum performance and visibility in your app.
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/storage.md | 
	appwrite__appwrite/docs/services/storage.md | 1,219 | 1,758,118,744 | 
	en | 
	The Storage service allows you to manage your project files. Using the Storage service, you can upload, view, download, and query all your project files.
Files are managed using buckets. Storage buckets are similar to Collections we have in our [Databases](https://appwrite.io/docs/databases) service. The difference is, buckets also provide more power to decide what kinds of files, what sizes you want to allow in that bucket, whether or not to encrypt the files, scan with antivirus and more.
Using Appwrite permissions architecture, you can assign read or write access to each bucket or file in your project for either a specific user, team, user role, or even grant it with public access (`any`). You can learn more about [how Appwrite handles permissions and access control](https://appwrite.io/docs/permissions).
The preview endpoint allows you to generate preview images for your files. Using the preview endpoint, you can also manipulate the resulting image so that it will fit perfectly inside your app in terms of dimensions, file size, and style. The preview endpoint also allows you to change the resulting image file format for better compression or image quality for better delivery over the network.
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/proxy.md | 
	appwrite__appwrite/docs/services/proxy.md | 471 | 1,758,118,744 | 
	en | 
	The Proxy service allows you to configure behavior for your attached domains. You can use proxy service to create rules that define what is returned on specific domains and subdomains.
Proxy Rules can be configured to serve Appwrite API, which allows you to comply with first-party cookies, making your website more secure. It can also be configured to serve Appwrite Function, which lets you accept incoming webhooks, build custom API endpoints, and serve static files. | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/graphql.md | 
	appwrite__appwrite/docs/services/graphql.md | 901 | 1,758,118,744 | 
	en | 
	The GraphQL services allows you to manipulate your Appwrite instance through a single endpoint using GraphQL queries and mutations, asking for exactly what you need and nothing more. You can perform any action available in the REST API.
> ## GraphQL API vs REST API
> 
> The major difference comes from the way the data is returned. GraphQL returns the data in a structured format, giving you only the nodes you ask for, while REST returns the data in a flat format.
> 
> GraphQL has a single endpoint for all queries and mutations, while the REST API has multiple endpoints for each type of action.
> 
> Both APIs are fully compatible with each other, and you can use them together in the same project.
> 
> Both GraphQL and REST have pros and cons. For example, while GraphQL requests are very flexible and can be more efficient, REST has better support for caching, error handling, and versioning. | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/services/locale.md | 
	appwrite__appwrite/docs/services/locale.md | 721 | 1,758,118,744 | 
	en | 
	The Locale service allows you to customize your app based on your users' location. Using this service, you can get your users' location, IP address, list of countries and continents names, phone codes, currencies, and more. Country codes returned follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.
The user service supports multiple locales. This feature allows you to fetch countries and continents information in your app language. To switch locales, all you need to do is pass the 'X-Appwrite-Locale' header or set the 'setLocale' method using any of our available SDKs. [View here the list of available locales](https://github.com/appwrite/appwrite/blob/master/app/config/locale/codes.php).
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/tutorials/add-storage-adapter.md | 
	appwrite__appwrite/docs/tutorials/add-storage-adapter.md | 3,927 | 1,758,118,744 | 
	en | 
	# Adding a New Storage Adapter
This document is part of the Appwrite contributors' guide. Before you continue reading this document make sure you have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md) and the [Contributing Guide](https://github.com/appwrite/appwrite/blob/master/CONTRIBUTING.md).
## Getting Started
### Agenda
Storage providers help us use various storage services to store our Appwrite data. As of the writing of these lines we already support Local storage, [AWS S3](https://aws.amazon.com/s3/) storage and [Digitalocean Spaces](https://www.digitalocean.com/products/spaces/) storage.
As the storage library is separated into [utopia-php/storage](https://github.com/utopia-php/storage), adding a new storage adapter will consist of two phases. First adding and implementing the new adapter in the [utopia-php/storage](https://github.com/utopia-php/storage) and then adding support to the new storage adapter in Appwrite.
### Phase 1
In phase 1, we will introduce and implement the new device adapter in [utopia-php/storage](https://github.com/utopia-php/storage) library.
### Add new adapter
Add a new storage adapter inside the `src/Storage/Device/` folder. Use one of the existing ones as a reference. The new adapter class should extend `Device` class and implement all the required methods.
Note that the class name should start with a capital letter as PHP FIG standards suggest.
Always use properly named environment variables if any credentials are required.
### Introduce new device constant
Introduce newly added device constant in `src/Storage/Storage.php` alongside existing device constants. The device constant should start with `const DEVICE_<name of device>` as the existing ones.
### Introduce new device tests
Add tests for the newly added device adapter inside `tests/Storage/Device`. Use the existing adapter tests as a reference. The test file and class should be properly named `<Adapter class name>Test.php` and class should be `<Adapter class name>Test`
### Run and verify tests
Run tests using `vendor/bin/phpunit --configuration phpunit.xml` and verify that everything is working correctly.
If everything goes well, create a new pull request in [utopia-php/storage](https://github.com/utopia-php/storage) library.
### Phase 2
In this phase we will add support to the new storage adapter in Appwrite.
* Note for this to happen, your PR in the first phase should have been merged and a new version of [utopia-php/storage](https://github.com/utopia-php/storage) library released.
### Upgrade the utopia-php/storage dependency
Upgrade the utopia-php/storage dependency in `composer.json` file.
### Introduce new environment variables
Introduce new environment variables if the adapter requires new configuration information or to pass in credentials. The storage environment variables are prefixed as `_APP_STORAGE_DEVICE`. Please read [Adding Environment Variables](https://github.com/appwrite/appwrite/blob/master/docs/tutorials/add-environment-variable.md) guidelines in order to properly introduce new environment variables.
### Implement the device case
In `app/controllers/shared/api.php` inside init function, there are `switch/case` statements for each supported storage device. Implement the instantiation of your device type for your device case. The device cases are the device constants listed in the `uptopa-php/storage/Storage` class.
### Test and verify everything works
To test you can switch to your newly added device using `_APP_STORAGE_DEVICE` environment variable. Then run `docker compose build && docker compose up -d` in order to build the containers with updated changes. Once the containers are running, login to Appwrite console and create a project. Then in the storage section, try to upload, preview, delete files.
If everything goes well, initiate a pull request to appwrite repository.
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/tutorials/add-translations.md | 
	appwrite__appwrite/docs/tutorials/add-translations.md | 10,532 | 1,758,118,744 | 
	en | 
	# Help translate Appwrite to your language βοΈ
This document is part of the Appwrite contributors' guide. Before you continue reading this document make sure you have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md) and the [Contributing Guide](https://github.com/appwrite/appwrite/blob/master/CONTRIBUTING.md).
## Getting started
Appwrite's Locale API, Email Templates ( and soon our Dashboard ) has support for returning responses in your own locale based on the value of the `X-Appwrite-Locale` header. Behind the scenes, we use the value of this header to find the correct translation file for the locale. This guide will walk you through the process of adding a new Locale to Appwrite.
You can help in three distinct ways:
- Adding support for new locales
- Helping us with existing incomplete translations
- Reviewing existing translations for correctness
## 1. Prerequisites
It's really easy to contribute to an open-sourced project, but when using GitHub, there are a few steps we need to follow. This section will take you step-by-step through the process of preparing your own local version of Appwrite, where you can make any changes without affecting Appwrite right away.
> If you are experienced with GitHub or have made a pull request before, you can skip to [Generate the translations](#2-generate-the-translations).
### 1.1 Fork the Appwrite repository
Before making any changes, you will need to fork Appwrite's repository to keep branches on the official repo clean. To do that, visit the [Appwrite Github repository](https://github.com/appwrite/appwrite) and click on the fork button.

This will redirect you from `github.com/appwrite/appwrite` to `github.com/YOUR_USERNAME/appwrite`, meaning all changes you do are only done inside your repository. Once you are there, click the highlighted `Code` button, copy the URL and clone the repository to your computer using `git clone` command:
```shell
$ git clone COPIED_URL
```
> To fork a repository, you will need a basic understanding of CLI and git-cli binaries installed. If you are a beginner, we recommend you to use `Github Desktop`. It is a really clean and simple visual Git client.
Finally, you will need to create a `feat-XXX-YYY-translation` branch based on the `locale` branch and switch to it. The `XXX` should represent issue ID and `YYY` the language name.
## 2. Generate the translations
You can choose to contribute either directly on [**GitHub**](#21-manually-using-github) or using [**POEditor**](#22-visually-using-po-editor) if you prefer a GUI.
### 2.1 Manually using GitHub
> Proceed to [Visually using PO Editor](#22-visually-using-po-editor) if you want to use graphical interface instead.
We maintain a [`locale branch`](https://github.com/appwrite/appwrite/tree/locale/) under the [appwrite/appwrite repo](https://github.com/appwrite/appwrite/) exclusively for translations related PRs. Here are a few files that you need to refer to help with your contribution.
1. **terms.json**
   [terms.json](https://github.com/appwrite/appwrite/blob/locale/app/config/locale/terms.json) contains all the terms that are used in Appwrite that require translation. Each term is a JSON object as shown below.
   ```json
   [
     {
       "term": "settings.inspire",
       "comment": "This string is used as an easter egg in the appwrite.io source code.",
       "reference": ""
     }
   ]
   ```
2. **en.json**
   [en.json](https://github.com/appwrite/appwrite/blob/locale/app/config/locale/translations/en.json) contains the English translation for all the terms that are present in **terms.json**. You can use this file as a reference when making a contribution for your language.
   ```json
   {
       "settings.inspire": "\"The art of being wise is the art of knowing what to overlook.\"",
       "settings.locale": "en",
       "settings.direction": "ltr",
       "emails.sender": "%s Team",
       ....
       ....
   }
   ```
3. **languages.php**
   [languages.php](https://github.com/appwrite/appwrite/blob/locale/app/config/locale/languages.php) contains all the languages listed in **[ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)**. You can use this file to find your language code when making a contribution for your language.
Great, let's start. First, find the code of the language you want to add. For example, if you want to add support for **Spanish**, you can find the code for Spanish in [languages.php](https://github.com/appwrite/appwrite/blob/locale/app/config/locale/languages.php#L202).
Once you have found the ISO language code for **Spanish** (es), create a new file `/app/config/locale/translations/es.json` just like all [the other languages](https://github.com/appwrite/appwrite/tree/locale/app/config/locale/translations).
Next, choose a reference language. If English is your reference language, copy the contents of [`en.json`](https://github.com/appwrite/appwrite/blob/locale/app/config/locale/translations/en.json) into `/app/config/locale/translations/es.json` and translate all the corresponding strings like so
```json
{
    "settings.inspire": "\"El arte de ser sabio es el arte de saber quΓ© pasar por alto\"",
    "settings.locale": "es",
    "settings.direction": "ltr",
    "emails.sender": "Equipo %s"
    ... ...
}
```
### 2.2 Visually using PO Editor
> Proceed to [Add the translations to the project](#3-add-the-translations-to-the-project) if you already followed the GitHub approach.
We use [PO Editor](https://poeditor.com/) to manage all our translations in a convenient way. The first step is to join the Appwrite Project on PO Editor using [our invite link](https://poeditor.com/join/project?hash=BNrWbRXyk6).
On the home page, you can see all the languages that we currently support and the progress in each one. You can choose to help us complete the existing translations or add new ones.

Once you've chosen the languages you want to contribute to, click on **Join Translation** with your email ID and name or choose one of the OAuth providers.
Continue with the rest of the process until you arrive at your dashboard.

Your request might be pending, so you can ping us on Discord and we'll make the process faster π . Once your request has been accepted, you can proceed.

You're now ready to start contributing. On the left, you'll find the string to be translated in the default reference language ( which is English ). You can also change the default language to something that you're more familiar with using the toggle.

Once you're happy with your translations, you can export them. Head over to the **Exports** tab and choose the **Key-Value JSON** option only. Download the file and you can then follow the steps similar to the Github approach.

> **Attention! π** There are two JSON exports. Please make sure to export the one saying `Key-value JSON`. Refer to the screenshot if you are not sure which one is correct.
After exporting a JSON file, we need to rename it to follow the **[ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)** standards. You can use [languages.php](https://github.com/appwrite/appwrite/blob/locale/app/config/locale/languages.php) file to find your language code when making a contribution for your language. For example, Spanish translation should have a file called `es.json`.
## 3. Add the translations to the project
Add your language code to [codes.php](https://github.com/appwrite/appwrite/blob/locale/app/config/locale/codes.php#L14) in the following format.
```php
    ...
    'es', // Spanish
    ...
```
Finally, load your translation file in `init.php` by following a pattern similar to the [existing languages](https://github.com/appwrite/appwrite/blob/locale/app/init.php#L270).
> Please make sure to keep both `codes.php` and `init.php` in the alphabetical order A-Z.
## 4. Test the translations
To test if the translation is properly loaded, we will send a GET request to get a list of EU countries.
First of all, we need to start a local instance of Appwrite. Thanks to Docker, this can be done using one command.
```shell
docker compose up -d
```
If this is your first time running Appwrite, it may take up to a few minutes to download all images and start all containers. Once everything is started, you should see Appwrite running on `http://localhost:80`. When you visit this URL, it will ask you to sign up. After that, it will show you your empty dashboard where you need to create a new project - give it any name you want. Then you need to go to `Settings` of the project and copy `Project-ID`.
If you are lost in the Appwrite dashboard, check out our [Article about Appwrite's dashboard](https://dev.to/appwrite/30daysofappwrite-appwrite-dashboard-15cc).
Now, let's send the request. We will be editing headers of the request, so you will need a tool to do that, such as Postman or Insomnia.
First, let's see English translations. Let's set request type to `GET`, URL to `https://localhost/v1/locale/countries/eu` and add `X-Appwrite-Project` header.

> Make sure to use your own project ID for the header.
After firing the request, we can see countries named `Austria, Belgium, Bulgaria...` So far, we are getting English translations of the country names.
Once we add `X-Appwrite-Locale` header and send the request again, we will get the names in a specific language.

> Make sure to replace the locale code with the language code you are writing translations for.
If you can see countries' names translated, everything works, and you are ready for the last step. π
## 5. Raise a pull request
First of all, commit the changes with the message `Added YYY translations` where `YYY` is the translated language and push it. This will publish a new branch to your forked version of Appwrite. If you visit it at `github.com/YOUR_USERNAME/appwrite`, you will see a new alert saying you are ready to submit a pull request. Follow the steps GitHub provides, and at the end, you will have your pull request submitted.
## π€ Stuck ?
If you need any help with the contribution, feel free to head over to [our Discord channel](https://appwrite.io/discord) and we'll be happy to help you out.
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/tutorials/add-route.md | 
	appwrite__appwrite/docs/tutorials/add-route.md | 6,317 | 1,758,118,744 | 
	en | 
	# Adding Route π‘
This document is part of the Appwrite contributors' guide. Before you continue reading this document make sure you have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md) and the [Contributing Guide](https://github.com/appwrite/appwrite/blob/master/CONTRIBUTING.md).
### 1. Alias
Setting an alias allows the route to be also accessible from the alias URL.
The first parameter specifies the alias URL, the second parameter specifies default values for route parameters.
```php
App::post('/v1/storage/buckets/:bucketId/files')
    ->alias('/v1/storage/files', ['bucketId' => 'default'])
```
### 2. Description
Used as an abstract description of the route.
```php
App::post('/v1/storage/buckets/:bucketId/files')
    ->desc('Create File')
```
### 3. Groups
Groups array is used to group one or more routes with one or more hooks functionality.
```php
App::post('/v1/storage/buckets/:bucketId/files')
    ->groups(['api'])
```
In the above example groups() is used to define the current route as part of the routes that shares a common init middleware hook.
```php
App::init()
    ->groups(['api'])
    ->action(
  some code.....
);
```
### 4. The Labels Mechanism
Labels are very straightforward and easy to use and understand, but at the same time are very robust.
Labels are passed from the controllers route and used to pick up key-value pairs to be handled in a centralized place
along the road.
Labels can be used to pass a pattern in order to be replaced on the other end.
Appwrite uses different labels to achieve different things, for example:
#### Scope
- scope - Defines the route permissions scope.
```php
App::post('/v1/storage/buckets/:bucketId/files')
    ->label('scope', 'files.write')
```
#### Audit
* audits.event - Identify the log in human-readable text.
* audits.userId - Signals the extraction of userId in places that it's not available natively.
* audits.resource - Signals the extraction part of the resource.
- audits.event - Identify the log in human-readable text.
- audits.userId - Signals the extraction of $userId in places that it's not available natively.
- audits.resource - Signals the extraction part of the resource.
```php
App::post('/v1/account/create')
    ->label('audits.event', 'account.create')
    ->label('audits.resource', 'user/{response.$id}')
    ->label('audits.userId', '{response.$id}')
```
#### SDK
* sdk.auth - Array of authentication types is passed in order to impose different authentication methods in different situations.
* sdk.namespace - Refers to the route namespace.
* sdk.method - Refers to the sdk method that needs to called.
* sdk.description - Description of the route, using markdown format.
* sdk.response.code - Refers to the route http response status code expected.
* sdk.auth.response.model - Refers the route http response expected.
* sdk.offline.model - Refers to the local collection where offline data should be stored. No value indicates the data will not be cached
* sdk.offline.key - Refers to the ID of the local data
* sdk.offline.response.key - JSON property name that has the ID. Defaults to $id
```php
App::post('/v1/account/jwt')
    ->label('sdk', new Method(
        namespace: 'account',
        name: 'createJWT',
        description: '/docs/references/account/create-jwt.md',
        auth: [],
        responses: [
            new SDKResponse(
                code: Response::STATUS_CODE_CREATED,
                model: Response::MODEL_JWT,
            )
        ],
        responseType: ResponseType::JSON,
    ))
```
#### Cache
- cache - When set to true, signal the use of file cache.
- cache.resource - Identifies the cached resource.
```php
App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview')
    ->label('cache', true)
    ->label('cache.resource', 'file/{request.fileId}')
```
#### Abuse
- abuse-key - Specifies routes unique abuse key.
- abuse-limit - Specifies the number of times the route can be requested in a time frame, per route.
- abuse-time - Specifies the time frame (in seconds) relevancy of the all other abuse definitions, per route.
When using the example below, we configure the abuse mechanism to allow this key combination
constructed from the combination of the ip, http method, url, userId to hit the route maximum 60 times in 1 hour (60 seconds \* 60 minutes).
```php
App::post('/v1/storage/buckets/:bucketId/files')
    ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}')
    ->label('abuse-limit', 60)
    ->label('abuse-time', 3600)
```
#### Events
- event - A pattern that is associated with the route in behalf of realtime messaging.
  Placeholders marked as `[]` are parsed and replaced with their real values.
```php
App::post('/v1/storage/buckets/:bucketId/files')
    ->label('event', 'buckets.[bucketId].files.[fileId].create')
```
### 5. Param
As the name implies, `param()` is used to define a request parameter.
`param()` accepts 6 parameters :
- A key (name)
- A default value
- An instance of a validator class,This can also accept a callback that returns a validator instance. Dependency injection is supported for the callback.
- Description of the parameter
- Is the route optional
- An array of injections
```php
App::get('/v1/account/logs')
    ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true)
```
### 6. inject
inject is used to inject dependencies pre-bounded to the app.
```php
App::post('/v1/storage/buckets/:bucketId/files')
    ->inject('user')
```
In the example above, the user object is injected into the route pre-bounded using `App::setResource()`.
```php
App::setResource('user', function() {
some code...
});
```
### 6. Action
Action populates the actual route code and has to be very clear and understandable. A good route stays simple and doesn't contain complex logic. An action is where we describe our business needs in code, and combine different libraries to work together and tell our story.
```php
App::post('/v1/account/sessions/anonymous')
    ->action(function (Request $request) {
    some code...
});
```
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/tutorials/add-environment-variable.md | 
	appwrite__appwrite/docs/tutorials/add-environment-variable.md | 2,890 | 1,758,118,744 | 
	en | 
	# Introducing new Environment Variable
This document is part of the Appwrite contributors' guide. Before you continue reading this document, make sure you have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md) and the [Contributing Guide](https://github.com/appwrite/appwrite/blob/master/CONTRIBUTING.md).
## Getting Started
### Agenda
Adding new features may require various configuration options to be set by the users. And for such options, we use environment variables in Appwrite.
This tutorial will cover how to properly add a new environment variable in Appwrite.
### Naming environment variable
The environment variables in Appwrite are prefixed with `_APP_`. If it belongs to a specific category, the category name is appended as `_APP_REDIS` for the Redis category. The available categories are General, Redis, MariaDB, SMTP, Storage, Functions and Maintenance. Finally, a properly describing name is given to the variable. For example, `_APP_REDIS_HOST` is an environment variable for the hostname of your Redis instance. You can find more information on available categories and existing environment variables in the [environment variables doc](https://appwrite.io/docs/environment-variables).
### Describe new environment variable
First of all, we add the new environment variable to `app/config/variables.php` in the designated category. If none of the categories fit, add it to the General category. Copy the existing variable description to create a new one so that you will not miss any required fields.
This information is also used to generate the website documentation at https://appwrite.io/docs/environment-variables, so please use good descriptions that clearly define the purpose and other required info about the environment variable that you are adding.
### Add to .env and Dockerfile
If the newly introduced environment variable has a default value, add it to the `.env` and `Dockerfile` along with other environment variables. `.env` file uses settings for Appwrite development environment.
### Add to Docker Compose file and template
Add the new environment variables to the `docker-compose.yml` and `app/views/install/compose.phtml` for each docker service that requires access to those environment variables.
The `docker-compose.yml` file is used by the Appwrite maintainers during development, whereas the `app/views/install/compose.phtml` file is used by the Appwrite setup script.
With these steps, your environment variable is properly added and can be accessed inside Appwrite code and any other containers where it is passed. You can access and use those variables to implement the features you are trying to achieve.
If everything went well, commit and initiate a PR and wait for the Appwrite team's approval.
Whooho! You have successfully added a new environment variable to Appwrite. π
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/tutorials/multi-architecture-support.md | 
	appwrite__appwrite/docs/tutorials/multi-architecture-support.md | 683 | 1,758,118,744 | 
	en | 
	# Multi Architecture Support
A list of Appwrite CPU architecture support status. We use this list to track the status of all Appwrite related Docker images and which architecture is supported by each image.
|  | linux/amd64 | linux/arm64 | linux/arm/v6 | linux/arm/v7 | linux/arm64/v8 | linux/ppc64le | linux/s390x |
|---|---|---|---|---|---|---|---|
| appwrite/appwrite | π’ | π’ | π’ | π’ | π’ | π’ | π’ |
| appwrite/mariadb | π’ | π’ | π΄ | π΄ | π΄ | π’ | π΄ |
| appwrite/clamav | π’ | π’ | π’ | π’ | π΄ | π’ | π’ |
| traefik | π’ | π΄ | π’ | π΄ | π’ | π΄ | π΄ |
| redis | π’ | π’ | π’ | π’ | π’ | π’ | π’ |
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/tutorials/add-oauth2-provider.md | 
	appwrite__appwrite/docs/tutorials/add-oauth2-provider.md | 10,272 | 1,758,118,744 | 
	en | 
	# Adding a new OAuth2 provider π‘
This document is part of the Appwrite contributors' guide. Before you continue reading this document make sure you have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md) and the [Contributing Guide](https://github.com/appwrite/appwrite/blob/master/CONTRIBUTING.md).
## Getting started
OAuth2 providers help users to log in to the apps and websites without the need to provide passwords or any other type of credentials. Appwrite's goal is to have support from as many **major** OAuth2 providers as possible.
As of the writing of these lines, we do not accept any minor OAuth2 providers. For us to accept some smaller and potentially unlimited number of OAuth2 providers, some product design and software architecture changes must be applied first.
## 1. Prerequisites
It's really easy to contribute to an open source project, but when using GitHub, there are a few steps we need to follow. This section will take you step-by-step through the process of preparing your own local version of Appwrite, where you can make any changes without affecting Appwrite right away.
> If you are experienced with GitHub or have made a pull request before, you can skip to [Implement new provider](#2-implement-new-provider).
### 1.1 Fork the Appwrite repository
Before making any changes, you will need to fork Appwrite's repository to keep branches on the official repo clean. To do that, visit the [Appwrite Github repository](https://github.com/appwrite/appwrite) and click on the fork button.

This will redirect you from `github.com/appwrite/appwrite` to `github.com/YOUR_USERNAME/appwrite`, meaning all changes you do are only done inside your repository. Once you are there, click the highlighted `Code` button, copy the URL and clone the repository to your computer using `git clone` command:
```shell
$ git clone COPIED_URL
```
> To fork a repository, you will need a basic understanding of CLI and git-cli binaries installed. If you are a beginner, we recommend you to use `Github Desktop`. It is a really clean and simple visual Git client.
Finally, you will need to create a `feat-XXX-YYY-oauth` branch based on the `master` branch and switch to it. The `XXX` should represent the issue ID and `YYY` the OAuth provider name.
## 2. Implement new provider
### 2.1 List your new provider
The first step in adding a new OAuth2 provider is to add it to the list of providers located at:
```
app/config/oAuthProviders.php
```
Make sure to fill in all data needed and that your provider array key name:
- is in [`camelCase`](https://en.wikipedia.org/wiki/Camel_case) format for sentence, but lowercase for names. `github` must be all lowercased, but `paypalSandbox` should have uppercase S
- has no spaces or special characters
> Please make sure to keep the list of providers in `oAuthProviders.php` in the alphabetical order A-Z.
### 2.2 Add Provider Logo
Add a logo image to your new provider in this path: `public/images/users`. Your logo should be a png 100Γ100px file with the name of your provider (all lowercase). Please make sure to leave about 30px padding around the logo to be consistent with other logos.
### 2.3 Add Provider Class
Once you have finished setting up all the metadata for the new provider, you need to start coding.
Create a new file `XXX.php` where `XXX` is the name of the OAuth provider in [`PascalCase`](https://stackoverflow.com/a/41769355/7659504) in this location
```bash
src/Appwrite/Auth/OAuth2/XXX.php
```
Inside this file, create a new class that extends the basic OAuth2 provider abstract class. Note that the class name should start with a capital letter, as PHP FIG standards suggest.
Once a new class is created, you can start to implement your new provider's login flow. We have prepared a starting point for Oauth provider class below, but you should also consider looking at other provider's implementation and try to follow the same standards.
```php
<?php
namespace Appwrite\Auth\OAuth2;
use Appwrite\Auth\OAuth2;
// Reference Material
// [DOCS FROM OAUTH PROVIDER]
class [PROVIDER NAME] extends OAuth2
{
    private string $endpoint = '[ENDPOINT API URL]';
    protected array $user = [];
    protected array $tokens = [];
    protected array $scopes = [
        // [ARRAY_OF_REQUIRED_SCOPES]
    ];
    public function getName(): string
    {
        return '[PROVIDER NAME]';
    }
    public function getLoginURL(): string
    {
        $url = $this->endpoint . '[LOGIN_URL_STUFF]';
        return $url;
    }
    protected function getTokens(string $code): array
    {
        if (empty($this->tokens)) {
            // TODO: Fire request to oauth API to generate access_token
            // Make sure to use '$this->getScopes()' to include all scopes properly
            $this->tokens = ["[FETCH TOKEN RESPONSE]"];
        }
        return $this->tokens;
    }
    public function refreshTokens(string $refreshToken): array
    {
        // TODO: Fire request to oauth API to generate access_token using refresh token
        $this->tokens = ["[FETCH TOKEN RESPONSE]"];
        return $this->tokens;
    }
    public function getUserID(string $accessToken): string
    {
        $user = $this->getUser($accessToken);
        // TODO: Pick user ID from $user response
        $userId = "[USER ID]";
        return $userId;
    }
    public function getUserEmail(string $accessToken): string
    {
        $user = $this->getUser($accessToken);
        // TODO: Pick user email from $user response
        $userEmail = "[USER EMAIL]";
        return $userEmail;
    }
    public function isEmailVerified(string $accessToken): bool
    {
        $user = $this->getUser($accessToken);
        // TODO: Pick user verification status from $user response
        $isVerified = "[USER VERIFICATION STATUS]";
        return $isVerified;
    }
    public function getUserName(string $accessToken): string
    {
        $user = $this->getUser($accessToken);
        // TODO: Pick username from $user response
        $username = "[USERNAME]";
        return $username;
    }
    protected function getUser(string $accessToken): array
    {
        if (empty($this->user)) {
            // TODO: Fire request to oauth API to get information about users
            $this->user = "[FETCH USER RESPONSE]";
        }
        return $this->user;
    }
}
```
> If you copy this template, make sure to replace all placeholders wrapped like `[THIS]` and to implement everything marked as `TODO:`.
> If your OAuth2 provider has different endpoints for getting username/email/id, you can fire specific requests from specific get-method, and stop using `getUser` method.
Please mention in your documentation what resources or API docs you used to implement the provider's OAuth2 protocol.
## 3. Test your provider
After you finish adding your new provider to Appwrite, you should be able to see it in your Appwrite console. Navigate to 'Project > Users > Providers' and check your new provider's settings form.
> To start the Appwrite console from the source code, you can simply run `docker compose up -d'.
Add credentials and check both a successful and a failed login (where the user denies integration on the provider page).
You can test your OAuth2 provider by trying to login using the [OAuth2 method](https://appwrite.io/docs/references/cloud/client-web/account#createOAuth2Session) when integrating the Appwrite Web SDK in a demo app.
Pass your new adapter name as the provider parameter. If login is successful, you will be redirected to your success URL parameter. Otherwise, you will be redirected to your failure URL.
If everything goes well, raise a pull request and be ready to respond to any feedback which can arise during our code review.
## 4. Raise a pull request
First of all, commit the changes with the message `Added XXX OAuth2 Provider` and push it. This will publish a new branch to your forked version of Appwrite. If you visit it at `github.com/YOUR_USERNAME/appwrite`, you will see a new alert saying you are ready to submit a pull request. Follow the steps GitHub provides, and at the end, you will have your pull request submitted.
## π€ Stuck ?
If you need any help with the contribution, feel free to head over to [our Discord channel](https://appwrite.io/discord) and we'll be happy to help you out.
## π Need more freedom
If your OAuth provider requires special configuration apart from `clientId` and `clientSecret` you can create a custom form. Currently this is being realized through putting all custom fields as JSON into the `clientSecret` field to keep the project API stable. You can implement your custom form following these steps:
1. Add your custom form in `app/views/console/users/oauth/[PROVIDER].phtml`. Below is a template you can use. Add the filename to `app/config/oAuthProviders.php`.
```php
<?php
$provider = $this->getParam('provider', '');
?>
<label for="oauth2<?php echo $this->escape(ucfirst($provider)); ?>Appid">Application (Client) ID<span class="tooltip" data-tooltip="Provided by AzureAD"><i class="icon-info-circled"></i></span></label>
<input name="appId" id="oauth2<?php echo $this->escape(ucfirst($provider)); ?>Appid" type="text" autocomplete="off" data-ls-bind="{{console-project.provider<?php echo $this->escape(ucfirst($provider)); ?>Appid}}" placeholder="Application ID" />
<?php /*Hidden input for the final secret. Gets filled with a JSON via JS. */ ?>
<input name="secret" data-forms-oauth-custom="<?php echo $this->escape(ucfirst($provider)); ?>" id="oauth2<?php echo $this->escape(ucfirst($provider)); ?>Secret" type="hidden" autocomplete="off" data-ls-bind="{{console-project.provider<?php echo $this->escape(ucfirst($provider)); ?>Secret}}" />
<!-- [Your custom form inputs go here] -->
```
2. Add the config for creating the JSON in `public/scripts/views/forms/oauth-custom.js` using this template
```js
{
    "[Provider]":{
        "[JSON property name 1]":"[html element Id 1]",
        "[JSON property name 2]":"[html element Id 2]"
    }
}
```
3. In your provider class `src/Appwrite/Auth/OAuth2/[Provider].php` add logic to decode the JSON using the same property names.
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/tutorials/add-runtime.md | 
	appwrite__appwrite/docs/tutorials/add-runtime.md | 16,271 | 1,758,118,744 | 
	en | 
	# Creating a new functions runtime π
This document is part of the Appwrite contributors' guide. Before you continue reading this document make sure you have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md) and the [Contributing Guide](https://github.com/appwrite/appwrite/blob/master/CONTRIBUTING.md).
## Getting started
Function Runtimes allow you to execute code written in any language and form the basis of Appwrite's Cloud Functions! Appwrite's goal is to support as many function runtimes as possible.
## 1. Prerequisites
For a function runtime to work, two prerequisites **must** be met due to the way Appwrite's Runtime Execution Model works:
- [ ] The Language in question must be able to run a web server that can serve JSON and text.
- [ ] The Runtime must be able to be packaged into a Docker container
Note: Both Compiled and Interpreted languages work with Appwrite's execution model but are written in slightly different ways.
It's really easy to contribute to an open-source project, but when using GitHub, there are a few steps we need to follow. This section will take you step-by-step through the process of preparing your local version of Appwrite, where you can make any changes without affecting Appwrite right away.
> If you are experienced with GitHub or have made a pull request before, you can skip to [Implement new runtime](https://github.com/appwrite/appwrite/blob/master/docs/tutorials/add-runtime.md#2-implement-new-runtime).
### 1.1 Fork the Appwrite repository
Before making any changes, you will need to fork Appwrite's repository to keep branches on the official repo clean. To do that, visit [Appwrite's Runtime repository](https://github.com/appwrite/runtimes) and click on the fork button.
[](https://github.com/appwrite/appwrite/blob/master/docs/tutorials/images/fork.png)
This will redirect you from `github.com/appwrite/runtimes` to `github.com/YOUR_USERNAME/runtimes`, meaning all changes you do are only done inside your repository. Once you are there, click the highlighted `Code` button, copy the URL and clone the repository to your computer using the `git clone` command:
```bash
$ git clone COPIED_URL
```
> To fork a repository, you will need a basic understanding of CLI and git-cli binaries installed. If you are a beginner, we recommend you to use `Github Desktop`. It is a clean and simple visual Git client.
Finally, you will need to create a `feat-XXX-YYY-runtime` branch based on the `refactor` branch and switch to it. The `XXX` should represent the issue ID and `YYY` the runtime name.
## 2. Implement new runtime
### 2.1 Preparing the files for your new runtime
The first step to writing a new runtime is to create a folder within `/runtimes` with the name of the runtime and the version separated by a dash. For instance, if I was to write a Rust Runtime with version 1.55 the folder name would be: `rust-1.55`
Within that folder you will need to create a few basic files that all Appwrite runtimes require:
```
Dockerfile - Dockerfile that explains how the container will be built.
README.md - A readme file explaining the runtime and any special notes for the runtime. A good example of this is the PHP 8.0 runtime.
```
### 2.2 Differences between compiled and interpreted runtimes
Runtimes within Appwrite are created differently depending on whether they are compiled or interpreted. This is due to the fundamental differences between the two ways of running the code.
Interpreted languages have both a `build.sh` file and a `launch.sh` file.
The `build.sh` file for an interpreted runtime is normally used for installing any dependencies for both the server itself and the user's code and then to copy it to the `/usr/code` folder which is then packaged and can be used later for running the server.
The build script is always executed during the build stage of tag deployment.
The `launch.sh` file for an interpreted runtime should extract the `/tmp/code.tar.gz` file that contains both the user's code and the dependencies. This tarball was created by Appwrite from the `/usr/code` folder and should install the dependencies that were pre-installed by the build stage and move them into the relevant locations for that runtime. It will then run the server ready for execution.
---
Compiled Languages only have a `build.sh` file.
The `build.sh` script for a compiled runtime is used to move the user's source code and rename it into source files for the runtime (The `ENTRYPOINT_NAME` environment variable can help with this) it will also build the code and move it into the `/usr/code` folder. Compiled runtime executables **must** be called `runtime` for the ubuntu or alpine images to detect and run them.
#### Note:
`/tmp/code.tar.gz` is always created from the `/usr/code` folder in the build stage. If you need any files for either compiled or interpreted runtimes you should place them there and extract them from the `/tmp/code.tar.gz` during the `launch.sh` script to get the files you need.
### 2.3 Writing the runtime
Internally the runtime can be anything you like as long as it follows the standards set by the other runtimes.
The best way to go about writing a runtime is like so:
Initialize a web server that runs on port 3000 and uses any IP Address (0.0.0.0) and on each `POST` request do the following:
1. Check that the `x-internal-challenge` header matches the `INTERNAL_RUNTIME_KEY` environment variable. If not, return an error with a `401` status code and an `unauthorized` error message.
2. Decode the executor's JSON POST request. This normally looks like so:
```json
{
  "path": "/usr/code",
  "file": "index.js",
  "env": {
    "hello": "world!"
  },
  "payload": "An Example Payload",
  "timeout": 10
}
```
For a compiled language you can disregard the `path` and `file` attribute if you like,
`timeout` is also an optional parameter to deal with, if you can handle it please do. Otherwise, it doesn't matter since the connection will simply be dropped by the executor.
You must create two classes for users to use within their scripts. A `Request` Class and a `Response` class
The `Request` class must store `env`, `payload` and `headers` and pass them to the user's function.
The Request always goes before the response in the user's function parameters.
The `Response` class must have two functions.
- A `send(string)` function which will return text to the request
- and a `json(object)` function which will return JSON to the request setting the appropriate headers
For interpreted languages use the `path` and `file` parameters to find the file and require it.
Please make sure to add appropriate checks to make sure the imported file is a function that you can execute.
5. Finally execute the function and handle whatever response the user's code returns. Try to wrap the function into a `try catch` statement to handle any errors the user's function encounters and return them cleanly to the executor with the error schema.
### 2.4 The Error Schema
All errors that occur during the execution of a user's function **MUST** be returned using this JSON Object otherwise Appwrite will be unable to parse them for the user.
```json
{
    "code": 500, // (Int) Use 404 if function not found or use 401 if the x-internal-challenge check fails.
    "message": "Error: Tried to divide by 0 \n /usr/code/index.js:80:7", // (String) Try to return a stacktrace and detailed error message if possible. This is shown to the user.
}
```
### 2.5 Writing your Dockerfile
The Dockerfile is very important as it's the environment you are creating to run build the runtime and also run the code if you are writing an Interpreted Runtime (Compiled runtimes will use an alpine or ubuntu image)
The first thing you need to do is find a docker image to base your runtime off, You can find these at [Docker Hub](https://hub.docker.com). If possible try to use verified official builds of the language you are creating a runtime for.
Next in your Dockerfile at the start add the docker image you want to base it off at the top like so:
```bash
FROM Dart:2.12 # Dart is used as an example.
```
This will download and require the image when you build your runtime and allow you to use the toolset of the language you are building a runtime for.
Create a user and group for the runtime, this user will be used to both build and run the code:
```bash
RUN groupadd -g 2000 appwrite \
&& useradd -m -u 2001 -g appwrite appwrite
```
then create the folders you will use in your build step:
```bash
RUN mkdir -p /usr/local/src/
RUN mkdir -p /usr/code
RUN mkdir -p /usr/workspace
RUN mkdir -p /usr/builtCode
```
Next copy your source code and set the working directory for the image like so:
```
WORKDIR /usr/local/src
COPY . /usr/local/src
```
Next, you want to make sure you are adding execute permissions to any scripts you may run, the main ones are `build.sh` and `launch.sh`. You can run commands in Dockerfile using the `RUN` prefix like so:
```
RUN chmod +x ./build.sh
RUN chmod +x ./launch.sh
```
Note: Do not chmod a `launch.sh` file if you don't have one.
If needed use the `RUN` commands to install any dependencies you require for the build stage.
Next set the permissions for the user you created so your build and run step will have access to them:
```
RUN ["chown", "-R", "appwrite:appwrite", "/usr/local/src"]
RUN ["chown", "-R", "appwrite:appwrite", "/usr/code"]
RUN ["chown", "-R", "appwrite:appwrite", "/usr/workspace"]
RUN ["chown", "-R", "appwrite:appwrite", "/usr/builtCode"]
```
Finally, you'll add a `CMD` command. For an interpreted language this should be:
```
CMD ["/usr/local/src/launch.sh"]
```
Since this will use your launch script when the runtime starts.
For a compiled language this must be:
```
CMD ["tail", "-f", "/dev/null"]
```
so the build steps can be run.
## 3. Building your Docker image and adding it to the list
With your runtime successfully created you can now move on to building your docker image and adding it to the script files used for generating all of the image files.
Open up the `/runtimes/buildLocalOnly.sh` script first and add your runtime to it. The following is an example with dart version 2.12
```
echo 'Dart 2.12...'
docker build -t dart-runtime:2.12 ./runtimes/dart-2.12
```
Next, open up the `/runtimes/build.sh` script and also add your runtime to it. This one is slightly different as this is the one that will be used for cross-platform compiles and deploying it to Docker hub. The following is an example also with dart version 2.12:
```
echo  'Dart 2.12...'
docker buildx build --platform linux/amd64,linux/arm64 -t dart-runtime:2.12 ./runtimes/dart-2.12/ --push
```
## 4. Adding the runtime to the runtimes list
In `src/Runtimes/Runtimes` create a new entry in the `__construct()` method in the Runtimes class like so:
```
$dart = new Runtime('dart', 'Dart');
$dart->addVersion('2.12', 'dart-runtime:2.12', 'appwrite-ubuntu:20.04', [System::X86, System::ARM]);
$this->runtimes['dart'] = $dart;
```
This is an example of what you would do for a compiled language such as dart.
The first line is creating a new language entry. The first parameter is the internal name and the second one is the external one which is what the user will see in Appwrite.
The second line adds a new version to the language entry, I'll break down the parameters:
```
1: Version - The version of the runtime you are creating.
2: Build Image - The image used to build the code
3: Run Image - The image used to run the code.
For interpreted languages, this is normally the same as the Build Image, but for compiled languages, this can be either "appwrite-alpine:3.13.6" or "appwrite-ubuntu:20.04"
We recommend using Alpine when possible and using Ubuntu if the runtime doesn't work on Alpine.
4: Platforms Supported - These are the architectures this runtime is available to.
```
The third line simply adds the new runtime to the main list.
## 5. Adding tests
### 5.1 Writing your test execution script
Adding tests for your runtime is simple, go into the `/tests/resources` folder and create a folder for the language you are creating then within the folder create a source code file for the language you are writing a runtime for as if you were creating a user function for your runtime. Within this user function you are writing all you need to do is return some JSON with the following schema:
```json
{
    "normal": "Hello World!",
    "env1": request.env['ENV1'], // ENV1 from the request environment variable
    "payload": request.payload, // Payload from the request
}
```
### 5.2 Creating the test packaging script for your runtime
With your test execution written you can move on to writing the script used to package your test execution script into a tarball for later use by the test system. Move into `/test/resources` again and notice how we have shell scripts for all runtimes we have made tests for.
Next create a shell script yourself with your language name. As an example, the shell script name for dart would be `package-dart.sh`
Within this newly created script copy-paste this script and replace all the `LANGUAGE_NAME` parts with your language's name
```
echo  'LANGUAGE_NAME Packaging...'
rm $(pwd)/tests/resources/LANGUAGE_NAME.tar.gz
tar -zcvf $(pwd)/tests/resources/LANGUAGE_NAME.tar.gz -C $(pwd)/tests/resources/LANGUAGE_NAME .
```
Then save this file. Then `cd` into the root of the `runtimes` project in a terminal. Run the following command replacing the `LANGUAGE_NAME` with your language's name:
```
chmod +x ./tests/resources/package-LANGUAGE_NAME.sh && ./tests/resources/package-LANGUAGE_NAME.sh
```
This command adds execution permissions to your script and executes it.
NOTE: If you ever want to repackage your script you can simply run: `./tests/resources/package-LANGUAGE_NAME.sh` in the root of the `runtimes` project since you don't have to change permissions more than once.
### 5.3 Adding your runtime to the main testing script
Now you have created your test execution script and have packaged it up for your runtime to execute you can now add it to the main testing script. Open up the `./tests/Runtimes/RuntimesTest.php` file and find the part where we are defining `$this->tests`.
Once you have found this, Add your own entry into this array like so:
```php
'LANGUAGE_NAME-VERSION'  =>  [
    'code'  =>  $functionsDir .  ' /LANGUAGE_NAME.tar.gz',
    'entrypoint'  =>  'Test file', // Replace with the name of the test file you wrote in ./tests/resources/LANGUAGE_NAME
    'timeout'  =>  15,
    'runtime'  =>  'LANGUAGE_NAME-VERSION',
    'tarname'  =>  'LANGUAGE_NAME-VERSION.tar.gz', // Note: If your version has a point in it replace it with a dash instead for this value.
],
```
Make sure to replace all instances of `LANGUAGE_NAME` with your language's name and `VERSION` with your runtime's version.
Once you have done this and saved it, it is finally time to move onto one of the final steps.
### 5.4 Running the tests.
Running the tests is easy, simply run `docker compose up` in the root of the `runtimes` folder. This will launch a Docker container with the test script and start running through all the runtimes making sure to test them thoroughly.
If all tests pass then congratulations! You can now go ahead and file a PR against the `runtimes` repo making sure to target the `refactor` branch, make sure you're ready to respond to any feedback which can arise during our code review.
## 6. Raise a pull request
First of all, commit the changes with the message `Added XXX Runtime` and push it. This will publish a new branch to your forked version of Appwrite. If you visit it at `github.com/YOUR_USERNAME/runtimes`, you will see a new alert saying you are ready to submit a pull request. Follow the steps GitHub provides, and at the end, you will have your pull request submitted.
##  Stuck ?
If you need any help with the contribution, feel free to head over to [our Discord channel](https://appwrite.io/discord) and we'll be happy to help you out.
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/dart/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/dart/GETTING_STARTED.md | 1,944 | 1,758,118,744 | 
	en | 
	## Getting Started
### Initialize & Make API Request
Once you add the dependencies, its extremely easy to get started with the SDK; All you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:
```dart
import 'package:dart_appwrite/dart_appwrite.dart';
void main() async {
  Client client = Client()
    .setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
    .setProject('5ff3379a01d25') // Your project ID
    .setKey('cd868c7af8bdc893b4...93b7535db89')
    .setSelfSigned(); // Use only on dev mode with a self-signed SSL cert
  Users users = Users(client);
  try {
    final user = await users.create(userId: ID.unique(), email: "email@example.com", phone: "+123456789", password: "password", name: "Walter O'Brien");
    print(user.toMap());
  } on AppwriteException catch(e) {
    print(e.message);
  }
}
```
### Error handling
The Appwrite Dart SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```dart
Users users = Users(client);
try {
  final user = await users.create(userId: ID.unique(), email: "email@example.com", phone: "+123456789", password: "password", name: "Walter O'Brien");
  print(user.toMap());
} on AppwriteException catch(e) {
  //show message to user or do other operation based on error as required
  print(e.message);
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Dart Playground](https://github.com/appwrite/playground-for-dart)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/dart/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/dart/CHANGELOG.md | 11,457 | 1,758,118,744 | 
	en | 
	# Change Log
## 16.1.0
* Add `gif` support to `ImageFormat` enum
* Add support for `dart38` and `flutter332` runtimes
* Add `upsertDocument()` method to Databases service
* Fix `convertTo()` method in `Document` and `Preferences` models to correctly accept `Map<String, dynamic>`
* Fix `upsertDocuments()` method to have `documents` attribute as required parameter
## 16.0.0
* Add `<REGION>` to doc examples due to the new multi region endpoints
* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc.
* Add doc examples, class and methods for new `Sites` service
* Add doc examples, class and methods for new `Tokens` service
* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType`
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Add `queries` and `search` params to `listMemberships` method
* Update enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329
* Remove `search` param from `listExecutions` method
## 14.0.0
* Breaking changes:
  * Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`).
## 13.0.0
* Fixed realtime pong response.
* Fixed issues with `chunkedUpload` method.
* Fixed type mismatch bug where `List<dynamic>` was incorrectly causing runtime type errors.
* Updated return type of `updateMfaChallenge()` from raw data to properly typed `models.Session` object.
## 12.0.0
* Support for Appwrite 1.6
* Added `key` attribute to `Runtime` response model.
* Added `buildSize` attribute to `Deployments` response model.
* Added `scheduledAt` attribute to `Executions` response model.
* Added `scopes` attribute to `Functions` response model.
* Added `specifications` attribute to `Functions` response model.
* Added new response model for `Specifications`.
* Added new response model for `Builds`.
* Added `createJWT()` : Enables creating a JWT using the `userId`.
* Added `listSpecifications()`: Enables listing available runtime specifications.
* Added `deleteExecution()` : Enables deleting executions.
* Added `updateDeploymentBuild()`: Enables cancelling a deployment.
* Added `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution
* Breaking changes:
  * Removed `otp` parameter from `deleteMFAAuthenticator`.
  * Added `scopes` parameter for create/update function.
  * Renamed `templateBranch` to `templateVersion`  in `createFunction()`.
  * Renamed `downloadDeployment()` to `getDeploymentDownload()`
You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
**Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.**
## 11.0.3
* Minor bugfixes
## 11.0.2
* Fixed MSG91 missing template ID
## 11.0.1
* Fixed parameters using enum types
## 11.0.0
* Added enum support
* Added SSR support
* Added messaging service support
* Added contains query support
* Added or query support
## 10.1.0
* Add new queue health endpoints
* Fix between queries
## 10.0.0
* Parameter `url` is now optional in the `createMembership` endpoint
* Parameter `runtime` is now optional in the `update` endpoint of the `Functions` class
## 9.0.1
* Added a new `label` function to the `Role` helper class
* Update internal variable names to prevent name collision
* Fix: content range header inconsistency in chunked uploads [#648](https://github.com/appwrite/sdk-generator/pull/648)
## 9.0.0
* Support for Appwrite 1.4.0
* New endpoints for fetching user identities
* New endpoints for listing locale codes
* New endpoint for downloading a function deployment
* Updated documentation
* Breaking changes:
  * The `createFunction` method has a new signature.
  * The `createExecution` method has a new signature.
  * The `updateFunction` method has a new signature.
  * The `createDeployment` method no longer requires an entrypoint.
  * The `updateFile` method now includes the ability to update the file name.
  * The `updateMembershipRoles` method has been renamed to `updateMembership`.
## 8.0.1
* Added documentation comments
* Added unit tests
* Upgraded dependencies
## 8.0.0
* Added relationships support
* Added support for new queries: `isNull`, `isNotNull`, `startsWith`, `notStartsWith`, `endsWith`, `between` and `select`.
* Added update attribute support
* Added team prefs support
* Changed function create/update `execute` parameter to optional
* Changed team `update` to `updateName`
* Changed `Account` service to use the `User` model instead of `Account`
## 7.3.0
* Improve helper classes
* Deprecated `InputFile` default constructor and introduced `InputFile.fromPath` and `InputFile.fromBytes` for consistency with other SDKs
## 7.2.0
* Support for GraphQL
## 7.1.0
* Role helper update
## 7.0.0
### NEW
* Support for Appwrite 1.0.0
* More verbose headers have been included in the Clients - `x-sdk-name`, `x-sdk-platform`, `x-sdk-language`, `x-sdk-version`
* Helper classes and methods for Permissions, Roles and IDs
* Helper methods to suport new queries
* All Dates and times are now returned in the ISO 8601 format
* Execution Model now has an additional `stdout` attribute
* Endpoint for creating DateTime attribute
* User imports API with support for multiple hashing algorithms
* CRUD API for functions environment variables
* `createBucket` now supports different compression algorithms
### BREAKING CHANGES
* `databaseId` is no longer part of the `Database` Service constructor. `databaseId` will be part of the respective methods of the database service.
* The `Users.create()` method signature has now been updated to include a `phone` parameter
* `color` attribute is no longer supported in the Avatars Service
* The `number` argument in phone endpoints have been renamed to `phone`
* List endpoints no longer support `limit`, `offset`, `cursor`, `cursorDirection`, `orderAttributes`, `orderTypes` as they have been moved to the `queries` array
* `read` and `write` permission have been deprecated and they are now included in the `permissions` array
* Parameter `permission` for collections and buckets are now renamed to `documentSecurity` & `fileSecurity` respectively
* Renamed methods of the Query helper
    1.  `lesser` renamed to `lessThan`
    2.  `lesserEqual` renamed to `lessThanEqual`
    3.  `greater` renamed to `greaterThan`
    4.  `greaterEqual` renamed to `greaterThanEqual`
**Full Changelog for Appwrite 1.0.0 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md
## 6.0.1
* Dependency upgrades
* Doc comments updates
* Cleanup code
## 6.0.0
* Support for Appwrite 0.15
* **BREAKING** `Database` -> `Databases`
* **BREAKING** `account.createSession()` -> `account.createEmailSession()`
* **BREAKING** `dateCreated` attribute removed from `Team`, `Execution`, `File` models
* **BREAKING** `dateCreated` and `dateUpdated` attribute removed from `Func`, `Deployment`, `Bucket` models
* **BREAKING** Realtime channels
    * collections.[COLLECTION_ID] is now databases.[DATABASE_ID].collections.[COLLECTION_ID]
    * collections.[COLLECTION_ID].documents is now databases.[DATABASE_ID].collections.[COLLECTION_ID].documents
**Full Changelog for Appwrite 0.15 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0150
## 5.0.1
* Code formatting fix
## 5.0.0
* Support for Appwrite 0.14
* **BREAKING** `account.delete()` -> `account.updateStatus()`
* **BREAKING** Execution model `stdout` renamed to `response`
* **BREAKING** Membership model `name` renamed to `userName` and `email` renamed to `userEmail`
* Added `teamName` to Membership model
* New `users.getMemberships` function
## 4.0.2
* Fix null issues with float attributes (https://github.com/appwrite/sdk-for-dart/issues/17 and https://github.com/appwrite/sdk-for-dart/issues/16)
## 4.0.1
* Fix InputFile filename param
* Fix examples
## 4.0.0
* Support for Appwrite 0.13
* **BREAKING** **Tags** have been renamed to **Deployments**
* **BREAKING** `createFile` function expects Bucket ID as the first parameter
* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile**
* **BREAKING** `list<Entity>` endpoints now contain a `total` attribute instead of `sum`
* `onProgress()` callback function for endpoints supporting file uploads
* Support for synchronous function executions
* Bug fixes and Improvements
**Full Changelog for Appwrite 0.13 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0130
## 3.0.2
- String Attribute Type got fixed
## 3.0.1
- Export Query Builder
## 3.0.0
- Support for Appwrite 0.12
- **BREAKING** Updated database service to adapt 0.12 API
- **BREAKING** Custom ID support while creating resources
- [View all the changes](https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0120)
## 2.0.0
- BREAKING All services and methods now return structured response objects instead of `Response` object
## 1.0.2
- Support for Appwrite 0.11
## 1.0.1
- Export, separate IO and Browser clients for Flutter (Client and Realtime as well) and Dart (Client)
## 1.0.0
- Support for Appwrite 0.10
- Refactored for better cross platform support
- Exception implements `toString()` to get proper error message for unhandled exceptions
- **Breaking** - Signature for `MultipartFile` has changed as we have dropped Dio in favor of [http](https://pub.dev/packages/http) package. [Here is the new signature for MultipartFile](https://pub.dev/documentation/http/latest/http/MultipartFile-class.html)
- **Breaking** - Signature for `Response` has changed, now it only exposes the data.
## 0.7.0
- Support for Appwrite 0.9
- Breaking - removed order type enum, now you should pass string 'ASC' or 'DESC'
- Breaking - changed param name from `env` to `runtime` in the **Functions** API
- Image Crop Gravity support in image preview service
- New endpoint in Account getSession to get session by ID
- New endpoint in the Users API to update user verification status
- Fix - issues with User-Agent when app name consisted of non-ASCII characters
## 0.6.2
- Removed default values, nothing should change in usage as default values are already allocated in server
## 0.6.1
- Fix for image preview param types
## 0.6.0
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0
- Upgraded all underlying dependencies to null safe version
- BREAKING Renamed users.deleteUser to users.delete
- BREAKING Renamed parameter inviteId to membershipId on teams.updateMembershipStatus, teams.deleteMembership
- JWT Support client.setJWT('JWT_GENERATED_IN_CLIENT')
- [Update membership roles](https://appwrite.io/docs/references/cloud/server-dart/teams?sdk=dart#updateMembershipRoles)
- New awesome image preview features, supports borderRadius, borderColor, borderWidth
## 0.5.0-dev.1
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0
- Upgraded all underlying dependencies to null safe version
## 0.3.1
- Minor fixes for custom exceptions
## 0.3.0
- Improved code quality
- Added a custom Appwrite exception
- Enabled access to private storage file
## 0.2.0
- Upgraded to work with Appwrite 0.7
## 0.1.0
- First release
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/dart/EXAMPLES.md | 
	appwrite__appwrite/docs/sdks/dart/EXAMPLES.md | 1,186 | 1,758,118,744 | 
	en | 
	# Examples
Init your Appwrite client:
```dart
Client client = Client();
client
    .setEndpoint('https://localhost/v1') // Your Appwrite Endpoint
    .setProject('5e8cf4f46b5e8') // Your project ID
    .setSelfSigned() // Remove in production
;
```
Create a new user:
```dart
Users users = Users(client);
User result = await users.create(
    userId: ID.unique(),
    email: "email@example.com",
    phone: "+123456789",
    password: "password",
    name: "Walter O'Brien"
);
```
Fetch user profile:
```dart
Users users = Users(client);
User profile = await users.get(
    userId: '[USER_ID]',
);
```
Upload File:
```dart
Storage storage = Storage(client);
InputFile file = InputFile(path: './path-to-file/image.jpg', filename: 'image.jpg');
storage.createFile(
    bucketId: '[BUCKET_ID]',
    fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID
    file: file,
    permissions: [
      Permission.read(Role.any()),
    ],
)
.then((response) {
    print(response); // File uploaded!
})
.catchError((error) {
    print(error.response);
});
```
All examples and API features are available at the [official Appwrite docs](https://appwrite.io/docs)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/nodejs/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/nodejs/GETTING_STARTED.md | 2,645 | 1,758,118,744 | 
	en | 
	## Getting Started
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key project API keys section.
```js
const sdk = require('node-appwrite');
let client = new sdk.Client();
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
    .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;
```
### Make Your First Request
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```js
let users = new sdk.Users(client);
let promise = users.create(sdk.ID.unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
});
```
### Full Example
```js
const sdk = require('node-appwrite');
let client = new sdk.Client();
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
    .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;
let users = new sdk.Users(client);
let promise = users.create(sdk.ID.unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
});
```
### Error Handling
The Appwrite Node SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```js
let users = new sdk.Users(client);
try {
    let res = await users.create(sdk.ID.unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
} catch(e) {
    console.log(e.message);
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Node Playground](https://github.com/appwrite/playground-for-node)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/nodejs/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/nodejs/CHANGELOG.md | 2,695 | 1,758,118,744 | 
	en | 
	# Change Log
## 17.1.0
* Add `upsertDocument` method
* Add `dart-3.8` and `flutter-3.32` runtimes
* Add `gif` image format
* Update bulk operation methods to reflect warning message
* Fix file parameter handling in chunked upload method
## 17.0.0
* Add `REGION` to doc examples due to the new multi region endpoints
* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc.
* Add doc examples, class and methods for new `Sites` service
* Add doc examples, class and methods for new `Tokens` service
* Add enums for `BuildRuntime`, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType`
* Updates enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Add `queries` and `search` params to `listMemberships` method
* Removes `search` param from `listExecutions` method
## 16.0.0
* Fix: remove content-type from GET requests
* Update (breaking): min and max params are now optional in `updateFloatAttribute` and `updateIntegerAttribute` methods (changes their positioning in method definition)
## 15.0.1
* Remove titles from all function descriptions
* Fix typing for collection "attribute" key
* Remove unnecessary awaits and asyncs
* Ensure `AppwriteException` response is always string
## 15.0.0
* Fix: pong response & chunked upload
## 14.2.0
* Add new push message parameters
## 14.1.0
* Support updating attribute name and size
## 14.0.0
* Support for Appwrite 1.6
* Add `key` attribute to `Runtime` response model.
* Add `buildSize` attribute to `Deployments` response model
* Add `scheduledAt` attribute to `Executions` response model
* Add `scopes` attribute to `Functions` response model
* Add `specifications` attribute to `Functions` response model
* Add new response model for `Specifications`
* Add new response model for `Builds`
* Add `createJWT()` : Enables creating a JWT using the `userId`
* Add `listSpecifications()`: Enables listing available runtime specifications
* Add `deleteExecution()` : Enables deleting executions
* Add `updateDeploymentBuild()`: Enables cancelling a deployment
* Add `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution
* Breaking changes
    * Remove `otp` parameter from `deleteMFAAuthenticator`.
    * Add `scopes` parameter for create/update function.
    * Rename `templateBranch` to `templateVersion`  in `createFunction()`.
    * Rename `downloadDeployment()` to `getDeploymentDownload()`
> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`. | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/flutter-dev/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/flutter-dev/CHANGELOG.md | 1,174 | 1,758,118,744 | 
	en | 
	## 0.3.2
- Fixed package namespaces
## 0.3.1
- Downgraded meta package version to 1.1.8
## 0.3.0
- Updated package dependencies (@lohanidamodar)
- Added Flutter for Web compatibility (@lohanidamodar)
## 0.2.3
- Fixed OAuth2 cookie bug, where a new session cookie couldn't overwrite an old cookie
## 0.2.2
- Fixed an error that happened when the OAuth session creation request was sent before any other API call
- Fixed a bug in the Avatars service where location URL generation had syntax error
## 0.2.1
- Fixed callback scheme
## 0.2.0
- Updated flutter_web_auth plugin to version 0.2.4
- Added per project unique callback for OAuth2 redirects to avoid conflicts between multiple Appwrite projects
## 0.1.1
- Updated flutter_web_auth version
## 0.1.0
- Added examples file
- Some minor style fixes
## 0.0.14
- Using MultipartFile for file uploads
## 0.0.13
- Fix for file upload method
## 0.0.12
- Added file upload support for storage service
## 0.0.11
- Added integration with web auth plugin to support Appwrite OAuth API
## 0.0.9
- Updated default params
## 0.0.8
- Fixed compilation error in Client class
- Shorter description for package
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/flutter-dev/EXAMPLES.md | 
	appwrite__appwrite/docs/sdks/flutter-dev/EXAMPLES.md | 1,355 | 1,758,118,744 | 
	en | 
	# Examples
Init your Appwrite client:
```dart
Client client = Client();
client
    .setEndpoint('https://localhost/v1') // Your Appwrite Endpoint
    .setProject('5e8cf4f46b5e8') // Your project ID
    .setSelfSigned() // Remove in production
;
```
Create a new user and session:
```dart
Account account = Account(client);
final user = await account.create(userId: ID.unique(), email: "email@example.com", password: "password", name: "Walter O'Brien");
 
final session = await account.createEmailSession(email: 'me@appwrite.io', password: 'password');
```
Fetch user profile:
```dart
Account account = Account(client);
final profile = await account.get();
```
Upload File:
```dart
Storage storage = Storage(client);
late InputFile file;
if(kIsWeb) {
    file = InputFile(bytes: pickedFile.bytes, filename: 'image.jpg');
} else {
    file = InputFile(path: './path-to-file/image.jpg', filename: 'image.jpg');
}
storage.createFile(
    bucketId: '[BUCKET_ID]',
    fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID
    file: file,
    permissions: [
      Permission.read(Role.any()),
    ],
)
.then((response) {
    print(response); // File uploaded!
})
.catchError((error) {
    print(error.response);
});
```
All examples and API features are available at the [official Appwrite docs](https://appwrite.io/docs)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/flutter/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/flutter/GETTING_STARTED.md | 9,574 | 1,758,118,744 | 
	en | 
	## Getting Started
### Add your Flutter Platform
To init your SDK and start interacting with Appwrite services, you need to add a new Flutter platform to your project. To add a new platform, go to your Appwrite console, choose the project you created in the step before, and click the 'Add Platform' button.
From the options, choose to add a new **Flutter** platform and add your app credentials. Appwrite Flutter SDK currently supports building apps for Android, iOS, Linux, Mac OS, Web and Windows.
If you are building your Flutter application for multiple devices, you have to follow this process for each different device.
### Android
For **Android** first add your app <u>name</u> and <u>package name</u>, Your package name is generally the **applicationId** in your app-level <a href="https://github.com/appwrite/playground-for-flutter/blob/0fdbdff98384fff940ed0b1e08cf14cfe3a2be3e/android/app/build.gradle#L41" target="_blank" rel="noopener">build.gradle</a> file. By registering your new app platform, you are allowing your app to communicate with the Appwrite API.
In order to capture the Appwrite OAuth callback url, the following activity needs to be added inside the `<application>` tag, along side the existing `<activity>` tags in your [AndroidManifest.xml](https://github.com/appwrite/playground-for-flutter/blob/master/android/app/src/main/AndroidManifest.xml). Be sure to replace the **[PROJECT_ID]** string with your actual Appwrite project ID. You can find your Appwrite project ID in your project settings screen in the console.
```xml
<manifest ...>
    ....
    <application ...>
        ....
        <!-- Add this inside the <application> tag, along side the existing <activity> tags -->
        <activity android:exported="true" android:name="com.linusu.flutter_web_auth_2.CallbackActivity" >
            <intent-filter android:label="flutter_web_auth_2">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="appwrite-callback-[PROJECT_ID]" />
            </intent-filter>
        </activity>
    </application>
</manifest>
```
### iOS
For **iOS** first add your app name and Bundle ID, You can find your Bundle Identifier in the General tab for your app's primary target in Xcode.
The Appwrite SDK uses ASWebAuthenticationSession on iOS 12+ and SFAuthenticationSession on iOS 11 to allow OAuth authentication. You have to change your iOS Deployment Target in Xcode to be iOS >= 11 to be able to build your app on an emulator or a real device.
1. In Xcode, open Runner.xcworkspace in your app's ios folder.
2. To view your app's settings, select the Runner project in the Xcode project navigator. Then, in the main view sidebar, select the Runner target.
3. Select the General tab.
4. In Deployment Info, 'Target' select iOS 11.0
### Linux
For **Linux** add your app <u>name</u> and <u>package name</u>, Your package name is generally the **name** in your <a href="https://github.com/appwrite/playground-for-flutter/blob/0fdbdff98384fff940ed0b1e08cf14cfe3a2be3e/pubspec.yaml#L1" target="_blank" rel="noopener">pubspec.yaml<a> file. If you cannot find the correct package name, run the application in linux, and make any request with proper exception handling, you should get the application ID needed to add in the received error message.
### Mac OS
For **Mac OS** add your app name and Bundle ID, You can find your Bundle Identifier in the General tab for your app's primary target in Xcode.
The Appwrite SDK uses ASWebAuthenticationSession on macOS 10.15+ to allow OAuth authentication. You have to change your macOS Deployment Target in Xcode to be macOS >= 10.15 to be able to build your app for macOS.
### Web
Appwrite 0.7, and the Appwrite Flutter SDK 0.3.0 have added support for Flutter Web. To build web apps that integrate with Appwrite successfully, all you have to do is add a web platform on your Appwrite project's dashboard and list the domain your website will use to allow communication to the Appwrite API.
For web in order to capture the OAuth2 callback URL and send it to the application using JavaScript `postMessage()`, you need to create an html file inside `./web` folder of your Flutter project. For example `auth.html` with the following content.
```html
<!DOCTYPE html>
<title>Authentication complete</title>
<p>Authentication is complete. If this does not happen automatically, please close the window.</p>
<script>
  function postAuthenticationMessage() {
    const message = {
      'flutter-web-auth-2': window.location.href
    };
    if (window.opener) {
      window.opener.postMessage(message, window.location.origin);
      window.close();
    } else if (window.parent && window.parent !== window) {
      window.parent.postMessage(message, window.location.origin);
    } else {
      localStorage.setItem('flutter-web-auth-2', window.location.href);
      window.close();
    }
  }
  postAuthenticationMessage();
</script>
```
Redirection URL passed to the authentication service must be the same as the URL on which the application is running (schema, host, port if necessary) and the path must point to created HTML file, /auth.html in this case. The callbackUrlScheme parameter of the authenticate() method does not take into account, so it is possible to use a schema for native platforms in the code.
#### Flutter Web Cross-Domain Communication & Cookies
While running Flutter Web, make sure your Appwrite server and your Flutter client are using the same top-level domain and the same protocol (HTTP or HTTPS) to communicate. When trying to communicate between different domains or protocols, you may receive HTTP status error 401 because some modern browsers block cross-site or insecure cookies for enhanced privacy. In production, Appwrite allows you set multiple [custom-domains](https://appwrite.io/docs/custom-domains) for each project.
### Windows
For **Windows** add your app <u>name</u> and <u>package name</u>, Your package name is generally the **name** in your <a href="https://github.com/appwrite/playground-for-flutter/blob/0fdbdff98384fff940ed0b1e08cf14cfe3a2be3e/pubspec.yaml#L1" target="_blank" rel="noopener">pubspec.yaml</a> file. If you cannot find the correct package name, run the application in windows, and make any request with proper exception handling, you should get the application id needed to add in the received error message.
### Init your SDK
<p>Initialize your SDK with your Appwrite server API endpoint and project ID, which can be found in your project settings page.
```dart
import 'package:appwrite/appwrite.dart';
void main() {
  Client client = Client();
  client
    .setEndpoint('https://localhost/v1') // Your Appwrite Endpoint
    .setProject('5e8cf4f46b5e8') // Your project ID
    .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
  ;
}
```
Before starting to send any API calls to your new Appwrite instance, make sure your Android or iOS emulators has network access to the Appwrite server hostname or IP address.
When trying to connect to Appwrite from an emulator or a mobile device, localhost is the hostname for the device or emulator and not your local Appwrite instance. You should replace localhost with your private IP as the Appwrite endpoint's hostname. You can also use a service like [ngrok](https://ngrok.com/) to proxy the Appwrite API.
### Make Your First Request
<p>Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```dart
// Register User
Account account = Account(client);
final user = await account
  .create(
    userId: ID.unique(), email: "email@example.com", password: "password", name: "Walter O'Brien"
  );
```
### Full Example
```dart
import 'package:appwrite/appwrite.dart';
void main() {
  Client client = Client();
  client
    .setEndpoint('https://localhost/v1') // Your Appwrite Endpoint
    .setProject('5e8cf4f46b5e8') // Your project ID
    .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
    ;
  // Register User
  Account account = Account(client);
  final user = await account
    .create(
      userId: ID.unique(), email: "email@example.com", password: "password", name: "Walter O'Brien"
    );
}
```
### Error Handling
The Appwrite Flutter SDK raises `AppwriteException` object with `message`, `type`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```dart
Account account = Account(client);
try {
  final user = await account.create(userId: ID.unique(), email: "email@example.com", password: "password", name: "Walter O'Brien");
  print(user.toMap());
} on AppwriteException catch(e) {
  //show message to user or do other operation based on error as required
  print(e.message);
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-flutter)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Flutter Playground](https://github.com/appwrite/playground-for-flutter)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/flutter/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/flutter/CHANGELOG.md | 13,608 | 1,758,118,744 | 
	en | 
	# Change Log
## 17.0.2
* Add `gif` support to `ImageFormat` enum
* Fix `convertTo()` method in `Document` and `Preferences` models to correctly accept `Map<String, dynamic>`
## 17.0.1
* Fix `devKeys` support by conditionally including credentials during requests
## 17.0.0
* Update `flutter_web_auth_2` dependency to version 4.1.0
* Update `auth.html` example in README.md to align with `flutter_web_auth_2` documentation
* Breaking changes:
  * Minimum iOS version supported is now 17.4 due to the updated requirements of `flutter_web_auth_2` version 4.1.0
## 16.1.0
* Add `setDevKey` method to Client service
* Add `upsertDocument` method to Databases service
## 16.0.0
* Remove `Gif` from ImageFormat enum
* Remove `search` param from `listExecutions` method
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Update default `quality` for `getFilePreview` from 0 to -1
## 15.0.2
* Avoid setting empty `User-Agent` header and only encode it when present.
* Update doc examples to use new multi-region endpoint: `https://<REGION>.cloud.appwrite.io/v1`.
## 15.0.1
* Removed `Content-Type` header from GET and HEAD requests.
* Add validation for setting endpoint in `setEndpoint` and `setEndPointRealtime` methods.
* Include Figma in list of available OAuth providers.
## 15.0.0
* Encode `User-Agent` header to fix invalid HTTP header field value error.
* Breaking changes:
  * Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`).
## 14.0.0
* Fixed realtime pong response.
* Fixed issues with `chunkedUpload` method.
## 13.0.0
* Fixed realtime reconnection issues
* Support for Appwrite 1.6
* Update dependencies
* Added `scheduledAt` attribute to `Execution` response model
* Added `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution
* Breaking changes:
  * Removed `otp` parameter from `deleteMFAAuthenticator`.
You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
**Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.**
## 12.0.4
* Fixed concurrent modification error when closing realtime socket
## 12.0.3
* Upgrade dependencies
## 12.0.2
* Fixed realtime multiple subscription issues
## 12.0.1
* Fixed parameters using enum types
## 12.0.0
* Added enum support
* Added SSR support
* Added messaging service support
* Added contains query support
* Added or query support
## 11.0.1
* Fix between queries
## 11.0.0
* Parameter `url` is now optional in the `createMembership` endpoint
## 10.0.1
* Added a new `label` function to the `Role` helper class
* Update internal variable names to prevent name collision
* Fix: content range header inconsistency in chunked uploads [#648](https://github.com/appwrite/sdk-generator/pull/648)
## 10.0.0
* Support for Appwrite 1.4.0
* New endpoints for fetching user identities
* New endpoints for listing locale codes
* Updated documentation
* Breaking changes:
  * The `createFunction` method has a new signature.
  * The `createExecution` method has a new signature.
  * The `updateFunction` method has a new signature.
  * The `createDeployment` method no longer requires an entrypoint.
  * The `updateFile` method now includes the ability to update the file name.
  * The `updateMembershipRoles` method has been renamed to `updateMembership`.
## 9.0.1
* Added documentation comments
* Added unit tests
* Upgraded dependencies
## 9.0.0
* Added relationships support
* Added support for new queries: `isNull`, `isNotNull`, `startsWith`, `notStartsWith`, `endsWith`, `between` and `select`.
* Added update attribute support
* Added team prefs support
* Changed function create/update `execute` parameter to optional
* Changed team `update` to `updateName`
* Changed `Account` service to use the `User` model instead of `Account`
## 8.3.0
* Fix: back navigation bringing back web browser after OAuth session creation
* Update: Deprecated `InputFile` default constructor and introduced `InputFile.fromPath` and `InputFile.fromBytes` for consistency with other SDKs
## 8.2.2
* Fix: notify callback when websocket closes [#604](https://github.com/appwrite/sdk-generator/pull/604)
## 8.2.1
* Fix OAuth on web
* Improve helper classes
## 8.2.0
* Support for GraphQL
## 8.1.0
* Role helper update
## 8.0.0
### NEW
* Support for Appwrite 1.0.0
* More verbose headers have been included in the Clients - `x-sdk-name`, `x-sdk-platform`, `x-sdk-language`, `x-sdk-version`
* Helper classes and methods for Permissions, Roles and IDs
* Helper methods to suport new queries
* All Dates and times are now returned in the ISO 8601 format
### BREAKING CHANGES
* `databaseId` is no longer part of the `Database` Service constructor. `databaseId` will be part of the respective methods of the database service.
* `color` attribute is no longer supported in the Avatars Service
* The `number` argument in phone endpoints have been renamed to `phone`
* List endpoints no longer support `limit`, `offset`, `cursor`, `cursorDirection`, `orderAttributes`, `orderTypes` as they have been moved to the `queries` array
* `read` and `write` permission have been deprecated and they are now included in the `permissions` array
* Renamed methods of the Query helper
    1.  `lesser` renamed to `lessThan`
    2.  `lesserEqual` renamed to `lessThanEqual`
    3.  `greater` renamed to `greaterThan`
    4.  `greaterEqual` renamed to `greaterThanEqual`
* `User` response model is now renamed to `Account`
**Full Changelog for Appwrite 1.0.0 can be found here**:
https://github.com/appwrite/appwrite/blob/master/CHANGES.md
## 7.0.0
* **BREAKING** Switched to using [flutter_web_auth_2](https://pub.dev/packages/flutter_web_auth_2), check Getting Started section in Readme for changes (Android and Web will require adjustments for OAuth to work properly)
* Fixes Concurrent modification issue
* Upgrade dependencies
* **Windows** support for OAuth sessions
## 6.0.0
* Support for Appwrite 0.15
* **NEW** Phone authentication `account.createPhoneSession()`
* **BREAKING** `Database` -> `Databases`
* **BREAKING** `account.createSession()` -> `account.createEmailSession()`
* **BREAKING** `dateCreated` attribute removed from `Team`, `Execution`, `File` models
* **BREAKING** `dateCreated` and `dateUpdated` attribute removed from `Func`, `Deployment`, `Bucket` models
* **BREAKING** Realtime channels
    * collections.[COLLECTION_ID] is now databases.[DATABASE_ID].collections.[COLLECTION_ID]
    * collections.[COLLECTION_ID].documents is now databases.[DATABASE_ID].collections.[COLLECTION_ID].documents
**Full Changelog for Appwrite 0.15 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0150
## 5.0.0
* Support for Appwrite 0.14
* **BREAKING** `account.delete()` -> `account.updateStatus()`
* **BREAKING** Execution model `stdout` renamed to `response`
* **BREAKING** Membership model `name` renamed to `userName` and `email` renamed to `userEmail`
* Added `teamName` to Membership model
## 4.0.2
* Upgrade dependencies
## 4.0.1
* Fix InputFile filename param
* Fix examples
## 4.0.0
* Support for Appwrite 0.13
* **BREAKING** **Tags** have been renamed to **Deployments**
* **BREAKING** `createFile` function expects Bucket ID as the first parameter
* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile**
* **BREAKING** `list<Entity>` endpoints now contain a `total` attribute instead of `sum`
* `onProgress()` callback function for endpoints supporting file uploads
* Support for synchronous function executions
* Bug fixes and Improvements
**Full Changelog for Appwrite 0.13 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0130
## 3.0.1
- Export Query Builder
## 3.0.0
- Support for Appwrite 0.12
- **BREAKING** Updated database service to adapt 0.12 API
- **BREAKING** Custom ID support while creating resources
- [View all the changes](https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0120)
## 2.1.0
- Updated `flutter_we_auth` plugin now supports Flutter web for OAuth2 sessions [read more](https://github.com/appwrite/sdk-for-flutter/blob/master/README.md#web)
- Added linters and updated codebase to match the rules
## 2.0.3
- Support for Appwrite 0.11
- Fix comments on `sum` attributes
## 2.0.2
- Fix realtime not restarting when there was only one subscription and that was closed and reopened
## 2.0.1
- Fix realtime close and reconnect working only 1 out of two times due to future returning too early
- Add dart doc comments to newly added response models
## 2.0.0
- BREAKING All services and methods now return proper response objects instead of `Response` object
## 1.0.4
- Fix user agent by using `packageName` instead of `appName`
## 1.0.3
- Upgrade `flutter_web_auth` to `0.3.1`
## 1.0.2
- Fix timestamp in Realtime Response to Integer
## 1.0.1
- Fix null pointer exception while creating OAuth2 session
- Export RealtimeMessage
- Export, separate IO and Browser clients for Flutter (Client and Realtime as well) and Dart (Client)
## 1.0.0
- Support for Appwrite 0.10
- Refactored for better cross platform support
- Exception implements `toString()` to get proper error message for unhandled exceptions
- Introduces new Realtime service, [more on official docs](link-to-realtime-docs)
- Breaking Signature for `MultipartFile` has changed as now we are using `http` package. [Here is the new signature for MultipartFile](https://pub.dev/documentation/http/latest/http/MultipartFile-class.html)
- Breaking Signature for `Response` has changed, now it only exposes the `data`.
## 0.7.1
- Fix - createOAuth2Session completing too early
## 0.7.0
- Support for Appwrite 0.9
- Breaking - removed order type enum, now you should pass string 'ASC' or 'DESC'
- Image Crop Gravity support in image preview service
- New endpoint in Account getSession to get session by ID
- Fix - issues with User-Agent when app name consisted of non-ASCII characters
- Fix - issue with null Success and Failure URL in createOAuth2Session
- Updated underlying dependencies
## 0.6.3
- Removed default values, nothing should change in usage as default values are already allocated in server
## 0.6.2
- Fixed deployment bug
## 0.6.1
- Fix for image preview param types
## 0.6.0
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0
- Upgraded all underlying dependencies to null safe version
- BREAKING Renamed parameter inviteId to membershipId on teams.updateMembershipStatus, teams.deleteMembership
- [Anonymous login](https://appwrite.io/docs/references/cloud/client-flutter/account?sdk=flutter#createAnonymousSession)
- [JWT Support](https://appwrite.io/docs/references/cloud/client-flutter/account?sdk=flutter#createJWT)
- Fallback Cookies for Flutter Web if 3rd party cookies are blocked
- Custom User Agent Support
- [Update membership roles](https://appwrite.io/docs/references/cloud/client-flutter/teams?sdk=flutter#updateMembershipRoles)
- New awesome image preview features, supports borderRadius, borderColor, borderWidth
## 0.5.0-dev.1
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0 and minimum Flutter SDK version required 2.0.0
- Upgraded all underlying dependencies to null safe version
- All of Avatars service now return Future<Response></Response> instead of String like the Storage getFilePreview, getFileView and getFileDownload
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0
- Upgraded all underlying dependencies to null safe version
## 0.4.0
- Improved code quality
- Enabled access to private storage files
- Easier integration for preview images with the image widget
- Added custom Appwrite exceptions
- Breaking: getFilePreview, getFileDownload and getFileView now return Future instead of String
## 0.4.0-dev.3
- Added code formatting as part of the CI
- Added custom Appwrite exceptions
## 0.4.0-dev.2
- Minor fixes for custom exceptions
## 0.4.0-dev.1
- Improved code quality
- Enabled access to private storage file
- Added easier integration for preview images and the Image widget
## 0.3.0
- Upgraded to work with Appwrite 0.7
## 0.3.0-dev.2
- Fix for an error when using a self-signed certificate for Web
## 0.3.0-dev.1
- Updated package dependencies (@lohanidamodar)
- Added Flutter for Web compatibility (@lohanidamodar)
## 0.2.3
- Fixed OAuth2 cookie bug, where a new session cookie couldn't overwrite an old cookie
## 0.2.2
- Fixed an error that happened when the OAuth session creation request was sent before any other API call
- Fixed a bug in the Avatars service where location URL generation had syntax error
## 0.2.1
- Fixed callback scheme
## 0.2.0
- Updated flutter_web_auth plugin to version 0.2.4
- Added per project unique callback for OAuth2 redirects to avoid conflicts between multiple Appwrite projects
## 0.1.1
- Updated flutter_web_auth version
## 0.1.0
- Added examples file
- Some minor style fixes
## 0.0.14
- Using MultipartFile for file uploads
## 0.0.13
- Fix for file upload method
## 0.0.12
- Added file upload support for storage service
## 0.0.11
- Added integration with web auth plugin to support Appwrite OAuth API
## 0.0.9
- Updated default params
## 0.0.8
- Fixed compilation error in Client class
- Shorter description for package
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/flutter/EXAMPLES.md | 
	appwrite__appwrite/docs/sdks/flutter/EXAMPLES.md | 1,355 | 1,758,118,744 | 
	en | 
	# Examples
Init your Appwrite client:
```dart
Client client = Client();
client
    .setEndpoint('https://localhost/v1') // Your Appwrite Endpoint
    .setProject('5e8cf4f46b5e8') // Your project ID
    .setSelfSigned() // Remove in production
;
```
Create a new user and session:
```dart
Account account = Account(client);
final user = await account.create(userId: ID.unique(), email: "email@example.com", password: "password", name: "Walter O'Brien");
 
final session = await account.createEmailSession(email: 'me@appwrite.io', password: 'password');
```
Fetch user profile:
```dart
Account account = Account(client);
final profile = await account.get();
```
Upload File:
```dart
Storage storage = Storage(client);
late InputFile file;
if(kIsWeb) {
    file = InputFile(bytes: pickedFile.bytes, filename: 'image.jpg');
} else {
    file = InputFile(path: './path-to-file/image.jpg', filename: 'image.jpg');
}
storage.createFile(
    bucketId: '[BUCKET_ID]',
    fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID
    file: file,
    permissions: [
      Permission.read(Role.any()),
    ],
)
.then((response) {
    print(response); // File uploaded!
})
.catchError((error) {
    print(error.response);
});
```
All examples and API features are available at the [official Appwrite docs](https://appwrite.io/docs)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/objective-c/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/objective-c/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/android/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/android/GETTING_STARTED.md | 4,343 | 1,758,118,744 | 
	en | 
	## Getting Started
### Add your Android Platform
To initialize your SDK and start interacting with Appwrite services, you need to add a new Android platform to your project. To add a new platform, go to your Appwrite console, select your project (create one if you haven't already), and click the 'Add Platform' button on the project Dashboard.
From the options, choose to add a new **Android** platform and add your app credentials.
Add your app <u>name</u> and <u>package name</u>. Your package name is generally the applicationId in your app-level `build.gradle` file. By registering a new platform, you are allowing your app to communicate with the Appwrite API.
### Registering additional activities
In order to capture the Appwrite OAuth callback url, the following activity needs to be added to your [AndroidManifest.xml](https://github.com/appwrite/playground-for-android/blob/master/app/src/main/AndroidManifest.xml). Be sure to replace the **[PROJECT_ID]** string with your actual Appwrite project ID. You can find your Appwrite project ID in your project settings screen in the console.
```xml
<manifest>
    <application>
        <activity android:name="io.appwrite.views.CallbackActivity" >
            <intent-filter android:label="android_web_auth">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="appwrite-callback-[PROJECT_ID]" />
            </intent-filter>
        </activity>
    </application>
</manifest>
```
### Init your SDK
<p>Initialize your SDK with your Appwrite server API endpoint and project ID, which can be found in your project settings page.
```kotlin
import io.appwrite.Client
import io.appwrite.services.Account
val client = Client(context)
  .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
  .setProject("5df5acd0d48c2") // Your project ID
  .setSelfSigned(true) // Remove in production
```
Before starting to send any API calls to your new Appwrite instance, make sure your Android emulators has network access to the Appwrite server hostname or IP address.
When trying to connect to Appwrite from an emulator or a mobile device, localhost is the hostname of the device or emulator and not your local Appwrite instance. You should replace localhost with your private IP. You can also use a service like [ngrok](https://ngrok.com/) to proxy the Appwrite API.
### Make Your First Request
<p>Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```kotlin
// Register User
val account = Account(client)
val response = account.create(
    ID.unique(),
    "email@example.com",
    "password",
    "Walter O'Brien"
)
```
### Full Example
```kotlin
import io.appwrite.Client
import io.appwrite.services.Account
import io.appwrite.ID
val client = Client(context)
  .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
  .setProject("5df5acd0d48c2") // Your project ID
  .setSelfSigned(true) // Remove in production
val account = Account(client)
val user = account.create(
    ID.unique(),
    "email@example.com",
    "password",
    "Walter O'Brien"
)
```
### Error Handling
The Appwrite Android SDK raises an `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```kotlin
try {
    var user = account.create(ID.unique(),"email@example.com","password","Walter O'Brien")
    Log.d("Appwrite user", user.toMap())
} catch(e : AppwriteException) {
    e.printStackTrace()
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-android)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Android Playground](https://github.com/appwrite/playground-for-android)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/android/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/android/CHANGELOG.md | 254 | 1,758,118,744 | 
	en | 
	# Change Log
## 8.0.0
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Update default `quality` for `getFilePreview` from 0 to -1
* Remove `Gif` from ImageFormat enum
* Remove `search` param from `listExecutions` method | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/java/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/java/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/kotlin/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/kotlin/GETTING_STARTED.md | 2,929 | 1,758,118,744 | 
	en | 
	## Getting Started
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key project API keys section.
```kotlin
import io.appwrite.Client
import io.appwrite.services.Account
suspend fun main() {
    val client = Client(context)
      .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
      .setProject("5df5acd0d48c2") // Your project ID
      .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
      .setSelfSigned(true) // Use only on dev mode with a self-signed SSL cert
}
```
### Make Your First Request
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```kotlin
val users = Users(client)
val user = users.create(
    user = ID.unique(),
    email = "email@example.com",
    phone = "+123456789",
    password = "password",
    name = "Walter O'Brien"
)
```
### Full Example
```kotlin
import io.appwrite.Client
import io.appwrite.services.Users
import io.appwrite.ID
suspend fun main() {
    val client = Client(context)
      .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
      .setProject("5df5acd0d48c2") // Your project ID
      .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
      .setSelfSigned(true) // Use only on dev mode with a self-signed SSL cert
    val users = Users(client)
    val user = users.create(
        user = ID.unique(),
        email = "email@example.com",
        phone = "+123456789",
        password = "password",
        name = "Walter O'Brien"
    )
}
```
### Error Handling
The Appwrite Kotlin SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```kotlin
import io.appwrite.Client
import io.appwrite.ID
import io.appwrite.services.Users
suspend fun main() {
    val users = Users(client)
    try {
        val user = users.create(
            user = ID.unique(),
            email = "email@example.com",
            phone = "+123456789",
            password = "password",
            name = "Walter O'Brien"
        )
    } catch (e: AppwriteException) {
        e.printStackTrace()
    }
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Kotlin Playground](https://github.com/appwrite/playground-for-kotlin)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/kotlin/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/kotlin/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/web/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/web/GETTING_STARTED.md | 2,200 | 1,758,118,744 | 
	en | 
	## Getting Started
### Add your Web Platform
For you to init your SDK and interact with Appwrite services you need to add a web platform to your project. To add a new platform, go to your Appwrite console, choose the project you created in the step before and click the 'Add Platform' button.
From the options, choose to add a **Web** platform and add your client app hostname. By adding your hostname to your project platform you are allowing cross-domain communication between your project and the Appwrite API.
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page.
```js
// Init your Web SDK
const client = new Client();
client
    .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
    .setProject('455x34dfkj') // Your project ID
;
```
### Make Your First Request
Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```js
const account = new Account(client);
// Register User
account.create(ID.unique(), "email@example.com", "password", "Walter O'Brien")
    .then(function (response) {
        console.log(response);
    }, function (error) {
        console.log(error);
    });
```
### Full Example
```js
// Init your Web SDK
const client = new Client();
client
    .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
    .setProject('455x34dfkj')
;
const account = new Account(client);
// Register User
account.create(ID.unique(), "email@example.com", "password", "Walter O'Brien")
    .then(function (response) {
        console.log(response);
    }, function (error) {
        console.log(error);
    });
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-web)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Web Playground](https://github.com/appwrite/playground-for-web)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/web/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/web/CHANGELOG.md | 319 | 1,758,118,744 | 
	en | 
	# Change Log
## 18.0.0
* Add `<REGION>` to doc examples due to the new multi region endpoints
* Remove `Gif` from ImageFormat enum
* Remove `search` param from `listExecutions` method
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Improve CORS error catching in `client.call` method | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/web/README.md | 
	appwrite__appwrite/docs/sdks/web/README.md | 314 | 1,758,118,744 | 
	en | 
	## Getting Started
Initialise the Appwrite SDK in your code, and setup your API credentials:
```js
// Init your Web SDK
var appwrite = new Appwrite();
appwrite
    .setEndpoint('http://localhost/v1') // Set only when using self-hosted solution
    .setProject('455x34dfkj') // Your Appwrite Project UID
;
```
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/cli/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/cli/GETTING_STARTED.md | 4,354 | 1,758,118,744 | 
	en | 
	## Getting Started 
Before you can use the CLI, you need to login to your Appwrite account. 
```sh
$ appwrite login
? Enter your email test@test.com
? Enter your password ********
β Success 
```
This will also prompt you to enter your Appwrite endpoint ( default: http://localhost/v1 ) 
* ### Initialising your project
Once logged in, the CLI needs to be initialised before you can use it with your Appwrite project. You can do this with the `appwrite init project` command. 
```sh
$ appwrite init project
```
The following prompt will guide you through the setup process. The `init` command also creates an `appwrite.json` file representing your Appwrite project.
The `appwrite.json` file does a lot of things. 
* Provides context to the CLI
* Keeps track of all your cloud functions
* Keeps track of all your project's collections
* Helps you deploy your Appwrite project to production and more..
You can also fetch all the collections in your current project using
```sh
appwrite init collection
```
* ### Creating and deploying cloud functions
The CLI makes it extremely easy to create and deploy Appwrite's cloud functions. Initialise your new function using
```
$ appwrite init function
? What would you like to name your function? My Awesome Function
? What runtime would you like to use? Node.js (node-15.5)
β Success 
```
This will create a new function `My Awesome Function` in your current Appwrite project and also create a template function for you to get started.
```sh
$ tree My\ Awesome\ Function 
My Awesome Function
βββ README.md
βββ index.js
βββ package-lock.json
βββ package.json
0 directories, 4 files
```
You can now deploy this function using 
```sh
$ appwrite push function
? Which functions would you like to deploy? My Awesome Function (61d1a4c81dfcd95bc834)
βΉ Info Deploying function My Awesome Function ( 61d1a4c81dfcd95bc834 )
β Success Deployed My Awesome Function ( 61d1a4c81dfcd95bc834 )
```
Your function has now been deployed on your Appwrite server! As soon as the build process is finished, you can start executing the function.
* ### Deploying Collections
Similarly, you can deploy all your collections to your Appwrite server using 
```sh
appwrite push collections
```
> ### Note
> By default, requests to domains with self signed SSL certificates (or no certificates) are disabled. If you trust the domain, you can bypass the certificate validation using
```sh
$ appwrite client --selfSigned true
```
## Usage 
The Appwrite CLI follows the following general syntax.
```sh
$ appwrite [COMMAND] --[OPTIONS]
```
A few sample commands to get you started 
```sh
$ appwrite users create --userId "unique()" --email hello@appwrite.io --password very_strong_password
$ appwrite users list 
```
To create a document you can use the following command 
```sh
$ appwrite databases create-document --database-id <DATABASE_ID> --collection-id <COLLECTION_ID> --document-id "unique()" --data '{"name": "Walter O Brein"}' --permissions 'read("any")' 'read("team:abc")'
```
### Some Gotchas
- `data` must be a valid JSON string where each key and value are enclosed in double quotes `"` like the example above.
- Some arguments like the `read` and `write` permissions are expected to be arrays. In the Appwrite CLI, array values are passed in using space as a separator like in the example above.
To get information about the different services available, you can use 
```sh
$ appwrite -h
```
To get information about a particular service and the commands available in a service you can use 
```sh
$ appwrite users // or
$ appwrite users --help // or
$ appwrite users help // or
$ appwrite accounts
```
To get information about a particular command and the parameters it accepts, you can use
```sh
$ appwrite users list --help
$ appwrite account get --help 
```
At any point, you can view or reset the CLI configuration using the `client` service.
```
$ appwrite client --debug
// This will display your endpoint, projectID, API key and so on.
$ appwrite client --reset
```
## CI mode
The Appwrite CLI can also work in a CI environment. The initialisation of the CLI works a bit differently in CI. In CI, you set your `endpoint`, `projectId` and `API Key` using 
```sh
appwrite client --endpoint http://localhost/v1 --projectId <PROJECT_ID> --key <API KEY>
```
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/cli/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/cli/CHANGELOG.md | 5,184 | 1,758,118,744 | 
	en | 
	# Change Log
## 8.2.2
* Fix object comparison logic when pushing settings
* Type generation fixes:
   * Dart: Fixed import casing to snake_case, removed `extends Document` and hardcoded attributes, removed unnecessary imports
   * Java: Fixed indentation to 4 spaces, updated imports to `java.util.Objects`, fixed enum casing in strict mode as per [Oracle official docs](https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html)
   * Javascript: Updated optional values formatting from `|null` to `| null`
   * Kotlin: Fixed indentation to 4 spaces per [Kotlinlang official docs](https://kotlinlang.org/docs/coding-conventions.html#indentation)
   * PHP: Fixed indentation to 4 spaces per [PHP Fig official docs](https://www.php-fig.org/psr/psr-2/)
   * Swift: Fixed indentation to 4 spaces, improved `decodeIfPresent` usage for optionals, added missing `public` to `init` method
   * Typescript: Fixed indentation to 4 spaces per [Typescript coding guidelines](https://github.com/microsoft/TypeScript/wiki/Coding-guidelines)
## 8.2.1
* Added `--with-variables` option to the Sites command for adding/updating environment variables  
* Fixed Functions environment variables not being pushed with `--with-variables`  
* Removed `awaitPools` when wiping old variables  
> **Note:** Storing environment variables in the `vars` attribute of `appwrite.json` is now deprecated due to security risks. Variables are now synced directly from the `.env` file in the root directory of the functionβs or siteβs folder.
## 8.2.0
* Add `encrypt` attribute support
* Add improved warnings on attribute recreation and deletion
* Fix `null` parsing error when using create attribute command
* Type generation fixes and improvements:
  * Add `--strict` / `-s` flag to `appwrite types` command to generate types in strict mode. This automatically converts the casing of attributes to match the language's naming conventions
  * Add automatic package import to `dart` language which uses package detection to import the correct package
  * Add `Document` class extension to generated types in `dart` and `js` language to support internal attributes like `$id` and `$collectionId` etc.
  * Add proper enum support to `js` language
  * Fix indentation in `java`, `kotlin` and `swift` to use 2 spaces instead of 4 for consistency across all languages
  * Fix doc comments to use correct syntax in various languages (for eg. `///` instead of `/*`)
  * Update enums in `dart` to use lowerCamelCase in `strict` mode as per [constant_identifier_names](https://dart.dev/tools/diagnostics/constant_identifier_names?utm_source=dartdev&utm_medium=redir&utm_id=diagcode&utm_content=constant_identifier_names)
## 8.1.1
* Fix circular dependency issue due to usage of `success` method in `utils.js` file from `parser.js` file
* Type generation fixes:
  * Add ability to generate types directly to a specific file by passing a file path to `appwrite types output_path`, instead of just a directory
  * Fix non-required attributes to not be null if default value is provided
  * Fix `Models` import error
  * Improve formatting and add auto-generated comments
## 8.1.0
* Add multi-region support to `init` command
* Update `init` command to clear previous configuration in `appwrite.json`
* Update localConfig to store multi-region endpoint
* Fix throw error when creating unknown attribute instead of timing out
* Fix equal comparison of large numbers and BigNumber instances using proper equality checks
* Fix duplication of reasons when comparing localConfig with remoteConfig
* Fix `firstOrNull()` to `firstOrNull` in types generation for dart
* Refactor to use `isCloud()` method consistently
## 8.0.2
* Add Type generation fixes:
  * Properly handle enum attributes in dart, java and kotlin
  * Fix initialisation of null attributes in dart's fromMap method
  * Fix relationships and enums in swift
## 8.0.1
* Add `resourceId` and `resourceType` attributes to `createRedirectRule`
* Add `providerReference` to vcs command for getting repository contents
* Add warning comment to `bulk updateDocuments` method
* Fix type generation for enums in Typescript and PHP language
## 8.0.0
* Add `types` command to generate language specific typings for collections. Currently supports - `php`, `swift`, `dart`, `js`, `ts`, `kotlin` and `java`
* Update bulk operation docs to include experiment feature warnings
* Remove assistant service and commands
## 7.0.0
* Add `sites` command
* Add `tokens` command
* Add `devKeys` support to `projects` command
* Add `init site`, `pull site` and `push site` commands
* Add bulk operation methods like `createDocuments`, `deleteDocuments` etc.
* Add new upsert methods: `upsertDocument` and `upsertDocuments`
* Update GET requests to not include content-type header
## 6.2.3
* Fix hot swapping error in `python-ml` function
## 6.2.2
* Fix GitHub builds by adding `qemu-system` package
* Fix attribute creation timed out
## 6.2.1
* Add `listOrganizations` method to `organizations` service and fix init project command
## 6.2.0
* Add specifications support to CLI
* Update package version
* Fix: Missed specifications param when updating a function | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/deno/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/deno/GETTING_STARTED.md | 2,475 | 1,758,118,744 | 
	en | 
	## Getting Started
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section.
```typescript
let client = new sdk.Client();
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
    .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;
```
### Make your first request
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```typescript
let users = new sdk.Users(client);
let user = await users.create(ID.unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
console.log(user);
```
### Full Example
```typescript
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
let client = new sdk.Client();
let users = new sdk.Users(client);
client
    .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
    .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
    .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;
let user = await users.create(ID.unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
console.log(user);
```
### Error Handling
The Appwrite Deno SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```typescript
let users = new sdk.Users(client);
try {
    let user = await users.create(ID.unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
} catch(e) {
    console.log(e.message);
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Deno Playground](https://github.com/appwrite/playground-for-deno)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/deno/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/deno/CHANGELOG.md | 707 | 1,758,118,744 | 
	en | 
	# Change Log
## 15.0.0
* Add `<REGION>` to doc examples due to the new multi region endpoints
* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc.
* Add doc examples, class and methods for new `Sites` service
* Add doc examples, class and methods for new `Tokens` service
* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType`
* Updates enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Add `queries` and `search` params to `listMemberships` method
* Removes `search` param from `listExecutions` method | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/react-native/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/react-native/GETTING_STARTED.md | 2,924 | 1,758,118,744 | 
	en | 
	
## Getting Started
### Add your Platform
If this is your first time using Appwrite, create an account and create your first project.
Then, under **Add a platform**, add a **Android app** or a **Apple app**. You can skip optional steps.
#### iOS steps
Add your app **name** and **Bundle ID**. You can find your **Bundle Identifier** in the **General** tab for your app's primary target in XCode. For Expo projects you can set or find it on **app.json** file at your project's root directory.
#### Android steps
Add your app's **name** and **package name**, Your package name is generally the **applicationId** in your app-level **build.gradle** file. For Expo projects you can set or find it on **app.json** file at your project's root directory.
## Setup
On `index.js` add import for `react-native-url-polyfill`
```
import 'react-native-url-polyfill/auto'
```
> If you are building for iOS, don't forget to install pods
> `cd ios && pod install && cd ..`
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page.
```js
import { Client } from 'react-native-appwrite';
// Init your React Native SDK
const client = new Client();
client
    .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
    .setProject('455x34dfkj') // Your project ID
    .setPlatform('com.example.myappwriteapp') // Your application ID or bundle ID.
;
```
### Make Your First Request
Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```js
const account = new Account(client);
// Register User
account.create(ID.unique(), 'me@example.com', 'password', 'Jane Doe')
    .then(function (response) {
        console.log(response);
    }, function (error) {
        console.log(error);
    });
```
### Full Example
```js
import { Client, Account } from 'react-native-appwrite';
// Init your React Native SDK
const client = new Client();
client
    .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
    .setProject('455x34dfkj')
    .setPlatform('com.example.myappwriteapp') // YOUR application ID
;
const account = new Account(client);
// Register User
account.create(ID.unique(), 'me@example.com', 'password', 'Jane Doe')
    .then(function (response) {
        console.log(response);
    }, function (error) {
        console.log(error);
    });
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/quick-starts/react-native)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite React Native Playground](https://github.com/appwrite/playground-for-react-native) | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/react-native/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/react-native/CHANGELOG.md | 898 | 1,758,118,744 | 
	en | 
	# Change log
## 0.10.1
* Fix URL based methods like `getFileViewURL`, `getFilePreviewURL` etc. by adding the missing `projectId` to searchParams
* Add `gif` to ImageFormat enum
## 0.10.0
* Add generate file URL methods like`getFilePreviewURL`, `getFileViewURL` etc.
* Update (breaking) existing methods like `getFilePreview` to download the image instead of returning URLs
## 0.9.2
* Fix `devKeys` by removing credentials from requests when the key is set
## 0.9.1
* Add `setDevkey` and `upsertDocument` methods
## 0.9.0
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Update default `quality` for `getFilePreview` from 0 to -1
* Remove `Gif` from ImageFormat enum
* Remove `search` param from `listExecutions` method
## 0.7.4
* Upgrade dependencies to resolve PlatformConstants error with Expo 53
* Update doc examples to use new multi-region endpoint | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/php/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/php/GETTING_STARTED.md | 2,394 | 1,758,118,744 | 
	en | 
	## Getting Started
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section.
```php
$client = new Client();
$client
    ->setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    ->setProject('5df5acd0d48c2') // Your project ID
    ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
    ->setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;
```
### Make Your First Request
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```php
$users = new Users($client);
$user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
```
### Full Example
```php
use Appwrite\Client;
use Appwrite\ID;
use Appwrite\Services\Users;
$client = new Client();
$client
    ->setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
    ->setProject('5df5acd0d48c2') // Your project ID
    ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
    ->setSelfSigned() // Use only on dev mode with a self-signed SSL cert
;
$users = new Users($client);
$user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
```
### Error Handling
The Appwrite PHP SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```php
$users = new Users($client);
try {
    $user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
} catch(AppwriteException $error) {
    echo $error->message;
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite PHP Playground](https://github.com/appwrite/playground-for-php)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/php/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/php/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/python/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/python/GETTING_STARTED.md | 2,550 | 1,758,118,744 | 
	en | 
	## Getting Started
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found on your project settings page and your new API secret Key from project's API keys section.
```python
from appwrite.client import Client
from appwrite.services.users import Users
client = Client()
(client
  .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
  .set_project('5df5acd0d48c2') # Your project ID
  .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
  .set_self_signed() # Use only on dev mode with a self-signed SSL cert
)
```
### Make Your First Request
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```python
users = Users(client)
result = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
```
### Full Example
```python
from appwrite.client import Client
from appwrite.services.users import Users
from appwrite.id import ID
client = Client()
(client
  .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
  .set_project('5df5acd0d48c2') # Your project ID
  .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
  .set_self_signed() # Use only on dev mode with a self-signed SSL cert
)
users = Users(client)
result = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
```
### Error Handling
The Appwrite Python SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```python
users = Users(client)
try:
  result = users.create(ID.unique(), email = "email@example.com", phone = "+123456789", password = "password", name = "Walter O'Brien")
except AppwriteException as e:
  print(e.message)
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Python Playground](https://github.com/appwrite/playground-for-python)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/python/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/python/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/go/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/go/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/dotnet/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/dotnet/GETTING_STARTED.md | 1,802 | 1,758,118,744 | 
	en | 
	## Getting Started
### Initialize & Make API Request
Once you have installed the package, it is extremely easy to get started with the SDK; all you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:
```csharp
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
  .SetEndpoint("http://<REGION>.cloud.appwrite.io/v1")  
  .SetProject("5ff3379a01d25")                 // Your project ID
  .SetKey("cd868db89");                         // Your secret API key
var users = new Users(client);
var user = await users.Create(
    userId: ID.Unique(),
    email: "email@example.com",
    phone: "+123456789",
    password: "password",
    name: "Walter O'Brien");
Console.WriteLine(user.ToMap());
```
### Error Handling
The Appwrite .NET SDK raises an `AppwriteException` object with `message`, `code`, and `response` properties. You can handle any errors by catching `AppwriteException` and presenting the `message` to the user or handling it yourself based on the provided error information. Below is an example.
```csharp
var users = new Users(client);
try
{
    var user = await users.Create(
        userId: ID.Unique(),
        email: "email@example.com",
        phone: "+123456789",
        password: "password",
        name: "Walter O'Brien");
} 
catch (AppwriteException e)
{
    Console.WriteLine(e.Message);
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite .NET Playground](https://github.com/appwrite/playground-for-dotnet)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/dotnet/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/dotnet/CHANGELOG.md | 3,320 | 1,758,118,744 | 
	en | 
	# Change Log
## 0.14.0
* Refactor from Newtonsoft.Json to System.Text.Json for serialization/deserialization
* Update package dependencies in `Package.csproj.twig`
* Migrate all serialization/deserialization logic in `Client.cs.twig`, `Query.cs.twig`, and `Extensions.cs.twig`
* Update model attributes from `[JsonProperty]` to `[JsonPropertyName]` in `Model.cs.twig`
* Create new `ObjectToInferredTypesConverter.cs.twig` for proper object type handling
* Replace `JsonConverter` with `JsonConverter<object>` in `ValueClassConverter.cs.twig`
* Update error handling to use `JsonDocument` instead of `JObject`
## 0.13.0
* Add `<REGION>` to doc examples due to the new multi region endpoints
* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc.
* Add doc examples, class and methods for new `Sites` service
* Add doc examples, class and methods for new `Tokens` service
* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType`
* Update enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Add `queries` and `search` params to `listMemberships` method
* Remove `search` param from `listExecutions` method
## 0.12.0
* fix: remove content-type from GET requests by @loks0n in https://github.com/appwrite/sdk-for-dotnet/pull/59
* update: min and max are not optional in methods like `UpdateIntegerAttribute` etc.
* chore: regenerate sdk by @ChiragAgg5k in https://github.com/appwrite/sdk-for-dotnet/pull/60
* chore: fix build error by @ChiragAgg5k in https://github.com/appwrite/sdk-for-dotnet/pull/61
## 0.11.0
* Add new push message parameters by @abnegate in https://github.com/appwrite/sdk-for-dotnet/pull/56
## 0.10.0
* fix: chunk upload by @byawitz in https://github.com/appwrite/sdk-for-dotnet/pull/52
## 0.9.0
* Support for Appwrite 1.6
* Added `key` attribute to `Runtime` response model.
* Added `buildSize` attribute to `Deployments` response model.
* Added `scheduledAt` attribute to `Executions` response model.
* Added `scopes` attribute to `Functions` response model.
* Added `specifications` attribute to `Functions` response model.
* Added new response model for `Specifications`.
* Added new response model for `Builds`.
* Added `createJWT()` : Enables creating a JWT using the `userId`.
* Added `listSpecifications()`: Enables listing available runtime specifications.
* Added `deleteExecution()` : Enables deleting executions.
* Added `updateDeploymentBuild()`: Enables cancelling a deployment.
* Added `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution
#### Breaking changes
You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
* Removed `otp` parameter from `deleteMFAAuthenticator`.
* Added `scopes` parameter for create/update function.
* Renamed `templateBranch` to `templateVersion`  in `createFunction()`.
* Renamed `downloadDeployment()` to `getDeploymentDownload()`
> **Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.**
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/apple/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/apple/GETTING_STARTED.md | 5,221 | 1,758,118,744 | 
	en | 
	## Getting Started
### Add your Apple Platform
To initialize your SDK and start interacting with Appwrite services, you need to add a new Apple platform to your project. To add a new platform, go to your Appwrite console, select your project (create one if you haven't already), and click the 'Add Platform' button on the project Dashboard.
From the options, choose to add a new **iOS**, **macOS**, **watchOS** or **tvOS** platform and add your app credentials.
Add your app <u>name</u> and <u>bundle identifier</u>. Your bundle identifier can be found in your Xcode project file or your `Info.plist` file. By registering a new platform, you are allowing your app to communicate with the Appwrite API.
### Registering URL schemes
In order to capture the Appwrite OAuth callback url, the following URL scheme needs to be added to project. You can add this from Xcode by selecting your project file, then the target you wish to use OAuth with. From the `Info` tab, expand the `URL types` section and add your Appwrite instance domain for the `Identifier`, and `appwrite-callback-[PROJECT-ID]` for the `URL scheme`. Be sure to replace the **[PROJECT_ID]** string with your actual Appwrite project ID. You can find your Appwrite project ID in your project settings screen in the console. Alternatively, you can add the following block directly to your targets `Info.plist` file:
```xml
<key>CFBundleURLTypes</key>
<array>
<dict>
    <key>CFBundleTypeRole</key>
    <string>Editor</string>
    <key>CFBundleURLName</key>
    <string>io.appwrite</string>
    <key>CFBundleURLSchemes</key>
    <array>
        <string>appwrite-callback-[PROJECT-ID]</string>
    </array>
</dict>
</array>
```
Next we need to add a hook to save cookies when our app is opened by its callback URL.
### Registering an OAuth handler view
> If you're using UIKit, you can skip this section.
In SwiftUI this is as simple as ensuring `.registerOAuthHandler()` is called on the `View` you want to invoke an OAuth request from.
### Updating the SceneDelegate for UIKit
> If you're using SwiftUI, you can skip this section.
For UIKit, you need to add the following function to your `SceneDelegate.swift`. If you have already defined this function, you can just add the contents from below.
```swift
    func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
        guard let url = URLContexts.first?.url,
            url.absoluteString.contains("appwrite-callback") else {
            return
        }
        WebAuthComponent.handleIncomingCookie(from: url)
    }
```
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page.
```swift
import Appwrite
func main() {
    let client = Client()
        .setEndpoint("http://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
        .setProject("5df5acd0d48c2") // Your project ID
        .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
}
```
### Make Your First Request
Once your SDK object is initialized, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```swift
let account = Account(client)
do {
    let user = try await account.create(
        userId: ID.unique(),
        email: "email@example.com",
        password: "password",
        name: "Walter O'Brien"
    )
    print(String(describing: user.toMap()))
} catch {
    print(error.localizedDescription)
}
```
### Full Example
```swift
import Appwrite
func main() {
    let client = Client()
        .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
        .setProject("5df5acd0d48c2") // Your project ID
        .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
    let account = Account(client)
    
    do {
        let user = try await account.create(
            userId: ID.unique(),
            email: "email@example.com",
            password: "password",
            name: "Walter O'Brien"
        )
        print(String(describing: account.toMap()))
    } catch {
        print(error.localizedDescription)
    }
}
```
### Error Handling
When an error occurs, the Appwrite Apple SDK throws an `AppwriteError` object with `message` and `code` properties. You can handle any errors in a catch block and present the `message` or `localizedDescription` to the user or handle it yourself based on the provided error information. Below is an example.
```swift
import Appwrite
func main() {
    let account = Account(client)
    
    do {
        let user = try await account.get()
        print(String(describing: user.toMap()))
    } catch {
        print(error.localizedDescription)
    }
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Swift Playground](https://github.com/appwrite/playground-for-swift-server)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/apple/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/apple/CHANGELOG.md | 265 | 1,758,118,744 | 
	en | 
	# Change Log
## 10.0.0
* Add `<REGION>` to doc examples due to the new multi region endpoints
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
* Remove `search` param from `listExecutions` method
* Remove `Gif` from ImageFormat enum | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/ruby/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/ruby/GETTING_STARTED.md | 2,519 | 1,758,118,744 | 
	en | 
	## Getting Started
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section.
```ruby
require 'appwrite'
client = Appwrite::Client.new()
client
    .set_endpoint(ENV["APPWRITE_ENDPOINT"]) # Your API Endpoint
    .set_project(ENV["APPWRITE_PROJECT"]) # Your project ID
    .set_key(ENV["APPWRITE_SECRET"]) # Your secret API key
    .setSelfSigned() # Use only on dev mode with a self-signed SSL cert
;
```
### Make Your First Request
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```ruby
users = Appwrite::Users.new(client);
user = users.create(userId: Appwrite::ID::unique(), email: "email@example.com", phone: "+123456789", password: "password", name: "Walter O'Brien");
```
### Full Example
```ruby
require 'appwrite'
client = Appwrite::Client.new()
client
    .set_endpoint(ENV["APPWRITE_ENDPOINT"]) # Your API Endpoint
    .set_project(ENV["APPWRITE_PROJECT"]) # Your project ID
    .set_key(ENV["APPWRITE_SECRET"]) # Your secret API key
    .setSelfSigned() # Use only on dev mode with a self-signed SSL cert
;
users = Appwrite::Users.new(client);
user = users.create(userId: Appwrite::ID::unique(), email: "email@example.com", phone: "+123456789", password: "password", name: "Walter O'Brien");
```
### Error Handling
The Appwrite Ruby SDK raises `Appwrite::Exception` object with `message`, `code` and `response` properties. You can handle any errors by catching `Appwrite::Exception` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```ruby
users = Appwrite::Users.new(client);
begin
    user = users.create(userId: Appwrite::ID::unique(), email: "email@example.com", phone: "+123456789", password: "password", name: "Walter O'Brien");
rescue Appwrite::Exception => error
    puts error.message
end
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Ruby Playground](https://github.com/appwrite/playground-for-ruby)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/ruby/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/ruby/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/swift/GETTING_STARTED.md | 
	appwrite__appwrite/docs/sdks/swift/GETTING_STARTED.md | 2,902 | 1,758,118,744 | 
	en | 
	## Getting Started
### Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key project API keys section.
```swift
import Appwrite
func main() {
    let client = Client()
        .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
        .setProject("5df5acd0d48c2") // Your project ID
        .setKey("919c2d184...a2ae413dad2") // Your secret API key
        .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
}
```
### Make Your First Request
Once your SDK object is initialized, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
```swift
let users = Users(client)
do {
    let user = try await users.create(
        userId: ID.unique(),
        email: "email@example.com",
        phone: "+123456789",
        password: "password",
        name: "Walter O'Brien"
    )
    print(String(describing: user.toMap()))
} catch {
    print(error.localizedDescription)
}
```
### Full Example
```swift
import Appwrite
func main() {
    let client = Client()
        .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
        .setProject("5df5acd0d48c2") // Your project ID
        .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
        .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
    let users = Users(client)
    
    do {
        let user = try await users.create(
            userId: ID.unique(),
            email: "email@example.com",
            phone: "+123456789",
            password: "password",
            name: "Walter O'Brien"
        )
        print(String(describing: user.toMap()))
    } catch {
        print(error.localizedDescription)
    }
}
```
### Error Handling
When an error occurs, the Appwrite Swift SDK throws an `AppwriteError` object with `message` and `code` properties. You can handle any errors in a catch block and present the `message` or `localizedDescription` to the user or handle it yourself based on the provided error information. Below is an example.
```swift
import Appwrite
func main() {
    let users = Users(client)
    
    do {
        let users = try await users.list()
        print(String(describing: users.toMap()))
    } catch {
        print(error.localizedDescription)
    }
}
```
### Learn more
You can use the following resources to learn more and get help
- π [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- π [Appwrite Docs](https://appwrite.io/docs)
- π¬ [Discord Community](https://appwrite.io/discord)
- π [Appwrite Swift Playground](https://github.com/appwrite/playground-for-swift-server)
 | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/swift/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/swift/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
| 
	appwrite | 
	appwrite | 
	appwrite__appwrite | 
	docs/sdks/typescript/CHANGELOG.md | 
	appwrite__appwrite/docs/sdks/typescript/CHANGELOG.md | 12 | 1,758,118,744 | 
	en | 
	# Change Log | 
	2025-09-24T14:46:58.085215 | 
			Subsets and Splits
				
	
				
			
				
No community queries yet
The top public SQL queries from the community will appear here once available.