From 563b2ea5b2391fa200b441e72fd146025e4d9efb Mon Sep 17 00:00:00 2001 From: premtsd Date: Thu, 5 Mar 2026 10:23:32 +0000 Subject: [PATCH 1/5] 14.1.0.* --- README.md | 4 ++-- install.ps1 | 4 ++-- install.sh | 2 +- lib/commands/run.ts | 6 +++--- lib/commands/update.ts | 3 ++- lib/commands/utils/attributes.ts | 4 ++++ lib/commands/utils/deployment.ts | 6 +++--- lib/constants.ts | 2 +- package.json | 6 +++--- scoop/appwrite.config.json | 6 +++--- 10 files changed, 24 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 50b2101..036d22d 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using ```sh $ appwrite -v -14.0.0 +14.1.0 ``` ### Install using prebuilt binaries @@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc Once the installation completes, you can verify your install using ``` $ appwrite -v -14.0.0 +14.1.0 ``` ## Getting Started diff --git a/install.ps1 b/install.ps1 index ca1ba89..9b62e31 100644 --- a/install.ps1 +++ b/install.ps1 @@ -13,8 +13,8 @@ # You can use "View source" of this page to see the full script. # REPO -$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.0/appwrite-cli-win-x64.exe" -$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.0/appwrite-cli-win-arm64.exe" +$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.1.0/appwrite-cli-win-x64.exe" +$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.1.0/appwrite-cli-win-arm64.exe" $APPWRITE_BINARY_NAME = "appwrite.exe" diff --git a/install.sh b/install.sh index 08cbdbf..6dbe51a 100644 --- a/install.sh +++ b/install.sh @@ -96,7 +96,7 @@ printSuccess() { downloadBinary() { echo "[2/4] Downloading executable for $OS ($ARCH) ..." - GITHUB_LATEST_VERSION="14.0.0" + GITHUB_LATEST_VERSION="14.1.0" GITHUB_FILE="appwrite-cli-${OS}-${ARCH}" GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE" diff --git a/lib/commands/run.ts b/lib/commands/run.ts index d7da653..bfc566d 100644 --- a/lib/commands/run.ts +++ b/lib/commands/run.ts @@ -5,7 +5,7 @@ import ignoreModule from "ignore"; const ignore: typeof ignoreModule = (ignoreModule as unknown as { default?: typeof ignoreModule }).default ?? ignoreModule; -import tar from "tar"; +import { create, extract } from "tar"; import fs from "fs"; import chokidar from "chokidar"; import inquirer from "inquirer"; @@ -323,7 +323,7 @@ const runFunction = async ({ fs.mkdirSync(hotSwapPath, { recursive: true }); } - await tar.extract({ + await extract({ keep: true, sync: true, cwd: hotSwapPath, @@ -358,7 +358,7 @@ const runFunction = async ({ fs.copyFileSync(sourcePath, filePath); } - await tar.create( + await create( { gzip: true, sync: true, diff --git a/lib/commands/update.ts b/lib/commands/update.ts index c874b11..1f6080e 100644 --- a/lib/commands/update.ts +++ b/lib/commands/update.ts @@ -36,7 +36,8 @@ const isInstalledViaNpm = (): boolean => { scriptPath.includes("/usr/local/lib/node_modules/") || scriptPath.includes("/opt/homebrew/lib/node_modules/") || scriptPath.includes("/.npm-global/") || - scriptPath.includes("/node_modules/.bin/") + scriptPath.includes("/node_modules/.bin/") || + scriptPath.includes("/.nvm/versions/node/") ) { return true; } diff --git a/lib/commands/utils/attributes.ts b/lib/commands/utils/attributes.ts index f33e773..279c28f 100644 --- a/lib/commands/utils/attributes.ts +++ b/lib/commands/utils/attributes.ts @@ -262,6 +262,7 @@ export class Attributes { required: attribute.required, xdefault: attribute.default, array: attribute.array, + encrypt: attribute.encrypt, }); case "text": return databasesService.createTextAttribute({ @@ -271,6 +272,7 @@ export class Attributes { required: attribute.required, xdefault: attribute.default, array: attribute.array, + encrypt: attribute.encrypt, }); case "mediumtext": return databasesService.createMediumtextAttribute({ @@ -280,6 +282,7 @@ export class Attributes { required: attribute.required, xdefault: attribute.default, array: attribute.array, + encrypt: attribute.encrypt, }); case "longtext": return databasesService.createLongtextAttribute({ @@ -289,6 +292,7 @@ export class Attributes { required: attribute.required, xdefault: attribute.default, array: attribute.array, + encrypt: attribute.encrypt, }); case "integer": return databasesService.createIntegerAttribute({ diff --git a/lib/commands/utils/deployment.ts b/lib/commands/utils/deployment.ts index ec0cf20..15ca90b 100644 --- a/lib/commands/utils/deployment.ts +++ b/lib/commands/utils/deployment.ts @@ -1,6 +1,6 @@ import fs from "fs"; import path from "path"; -import tar from "tar"; +import { create, extract } from "tar"; import { Client, AppwriteException } from "@appwrite.io/console"; import { error } from "../../parser.js"; @@ -26,7 +26,7 @@ interface DeploymentDetails { async function packageDirectory(dirPath: string): Promise { const tempFile = `${dirPath.replace(/[^a-zA-Z0-9]/g, "_")}-${Date.now()}.tar.gz`; - await tar.create( + await create( { gzip: true, file: tempFile, @@ -111,7 +111,7 @@ export async function downloadDeploymentCode(params: { ); } - tar.extract({ + extract({ sync: true, cwd: resourcePath, file: compressedFileName, diff --git a/lib/constants.ts b/lib/constants.ts index dcd8617..a0220ff 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -1,7 +1,7 @@ // SDK export const SDK_TITLE = 'Appwrite'; export const SDK_TITLE_LOWER = 'appwrite'; -export const SDK_VERSION = '14.0.0'; +export const SDK_VERSION = '14.1.0'; export const SDK_NAME = 'Command Line'; export const SDK_PLATFORM = 'console'; export const SDK_LANGUAGE = 'cli'; diff --git a/package.json b/package.json index e299040..0205f0b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "type": "module", "homepage": "https://appwrite.io/support", "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API", - "version": "14.0.0", + "version": "14.1.0", "license": "BSD-3-Clause", "main": "dist/index.cjs", "module": "dist/index.js", @@ -61,7 +61,7 @@ "inquirer-search-list": "^1.2.6", "json-bigint": "^1.0.0", "tail": "^2.2.6", - "tar": "^6.1.11", + "tar": "^7.4.3", "undici": "^5.28.2", "zod": "^4.3.5" }, @@ -76,7 +76,7 @@ "@types/inquirer": "^8.2.10", "@types/json-bigint": "^1.0.4", "@types/node": "^18.19.0", - "@types/tar": "^6.1.11", + "@types/tar": "^6.1.13", "@yao-pkg/pkg": "^6.11.0", "esbuild": "^0.27.2", "prettier": "^3.7.4", diff --git a/scoop/appwrite.config.json b/scoop/appwrite.config.json index 2ad0c56..e0f8eab 100644 --- a/scoop/appwrite.config.json +++ b/scoop/appwrite.config.json @@ -1,12 +1,12 @@ { "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", - "version": "14.0.0", + "version": "14.1.0", "description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.", "homepage": "https://github.com/appwrite/sdk-for-cli", "license": "BSD-3-Clause", "architecture": { "64bit": { - "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.0/appwrite-cli-win-x64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.1.0/appwrite-cli-win-x64.exe", "bin": [ [ "appwrite-cli-win-x64.exe", @@ -15,7 +15,7 @@ ] }, "arm64": { - "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.0/appwrite-cli-win-arm64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.1.0/appwrite-cli-win-arm64.exe", "bin": [ [ "appwrite-cli-win-arm64.exe", From dd974c730d259c1adc8d829af38bf7eefb04545b Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 5 Mar 2026 10:47:42 +0000 Subject: [PATCH 2/5] chore: add 14.1.0 changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 017d282..43d3a3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 14.1.0 + +* Fix: Pass encrypt parameter for varchar, text, mediumtext, and longtext string types in push command +* Fix: Update tar to v7.4.3 and use named imports +* Fix: Add NVM installation path detection for update command + ## 14.0.0 * Breaking: Changed createDeployment signature; activate option now optional with default true; parameter order updated From 510b1adb81c8429fc49794da789add23eede33ed Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 5 Mar 2026 10:50:50 +0000 Subject: [PATCH 3/5] chore: update 14.1.0 changelog format --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43d3a3a..e8feab2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,9 @@ ## 14.1.0 -* Fix: Pass encrypt parameter for varchar, text, mediumtext, and longtext string types in push command -* Fix: Update tar to v7.4.3 and use named imports -* Fix: Add NVM installation path detection for update command +* Fixed `push tables` not passing `encrypt` parameter for varchar, text, mediumtext, and longtext string types +* Fixed NVM installation path not being detected by `update` command +* Updated `tar` dependency to v7.4.3 ## 14.0.0 From 1380a3e0569a53672a2c84d1f591606a8440685e Mon Sep 17 00:00:00 2001 From: premtsd Date: Thu, 5 Mar 2026 11:38:29 +0000 Subject: [PATCH 4/5] 14.0.1.* --- CHANGELOG.md | 6 ------ README.md | 4 ++-- install.ps1 | 4 ++-- install.sh | 2 +- lib/constants.ts | 2 +- package.json | 2 +- scoop/appwrite.config.json | 6 +++--- 7 files changed, 10 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8feab2..017d282 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,5 @@ # Change Log -## 14.1.0 - -* Fixed `push tables` not passing `encrypt` parameter for varchar, text, mediumtext, and longtext string types -* Fixed NVM installation path not being detected by `update` command -* Updated `tar` dependency to v7.4.3 - ## 14.0.0 * Breaking: Changed createDeployment signature; activate option now optional with default true; parameter order updated diff --git a/README.md b/README.md index 036d22d..a457d66 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using ```sh $ appwrite -v -14.1.0 +14.0.1 ``` ### Install using prebuilt binaries @@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc Once the installation completes, you can verify your install using ``` $ appwrite -v -14.1.0 +14.0.1 ``` ## Getting Started diff --git a/install.ps1 b/install.ps1 index 9b62e31..a1872a4 100644 --- a/install.ps1 +++ b/install.ps1 @@ -13,8 +13,8 @@ # You can use "View source" of this page to see the full script. # REPO -$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.1.0/appwrite-cli-win-x64.exe" -$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.1.0/appwrite-cli-win-arm64.exe" +$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-x64.exe" +$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-arm64.exe" $APPWRITE_BINARY_NAME = "appwrite.exe" diff --git a/install.sh b/install.sh index 6dbe51a..ef83da4 100644 --- a/install.sh +++ b/install.sh @@ -96,7 +96,7 @@ printSuccess() { downloadBinary() { echo "[2/4] Downloading executable for $OS ($ARCH) ..." - GITHUB_LATEST_VERSION="14.1.0" + GITHUB_LATEST_VERSION="14.0.1" GITHUB_FILE="appwrite-cli-${OS}-${ARCH}" GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE" diff --git a/lib/constants.ts b/lib/constants.ts index a0220ff..6e29b56 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -1,7 +1,7 @@ // SDK export const SDK_TITLE = 'Appwrite'; export const SDK_TITLE_LOWER = 'appwrite'; -export const SDK_VERSION = '14.1.0'; +export const SDK_VERSION = '14.0.1'; export const SDK_NAME = 'Command Line'; export const SDK_PLATFORM = 'console'; export const SDK_LANGUAGE = 'cli'; diff --git a/package.json b/package.json index 0205f0b..cd51350 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "type": "module", "homepage": "https://appwrite.io/support", "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API", - "version": "14.1.0", + "version": "14.0.1", "license": "BSD-3-Clause", "main": "dist/index.cjs", "module": "dist/index.js", diff --git a/scoop/appwrite.config.json b/scoop/appwrite.config.json index e0f8eab..2294a19 100644 --- a/scoop/appwrite.config.json +++ b/scoop/appwrite.config.json @@ -1,12 +1,12 @@ { "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", - "version": "14.1.0", + "version": "14.0.1", "description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.", "homepage": "https://github.com/appwrite/sdk-for-cli", "license": "BSD-3-Clause", "architecture": { "64bit": { - "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.1.0/appwrite-cli-win-x64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-x64.exe", "bin": [ [ "appwrite-cli-win-x64.exe", @@ -15,7 +15,7 @@ ] }, "arm64": { - "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.1.0/appwrite-cli-win-arm64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-arm64.exe", "bin": [ [ "appwrite-cli-win-arm64.exe", From 6c343bc2a6789d7ce009c4fa32e6051d6a960175 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 5 Mar 2026 11:41:53 +0000 Subject: [PATCH 5/5] chore: add 14.0.1 changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 017d282..75e5e03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 14.0.1 + +* Fixed `push tables` not passing `encrypt` parameter for varchar, text, mediumtext, and longtext string types +* Fixed NVM installation path not being detected by `update` command +* Updated `tar` dependency to v7.4.3 + ## 14.0.0 * Breaking: Changed createDeployment signature; activate option now optional with default true; parameter order updated