From 689c2274f6b3fd422479c66606f4fe7422d5d3b6 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Tue, 19 Mar 2024 15:53:52 -0700 Subject: [PATCH] chore: release 5.0.1 --- README.md | 4 ++-- install.ps1 | 10 +++++----- install.sh | 8 ++++---- lib/client.js | 4 ++-- lib/commands/generic.js | 4 ++-- lib/parser.js | 2 +- package.json | 2 +- scoop/appwrite.json | 6 +++--- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 98ede0e..dfa032f 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 -5.0.0 +5.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 -5.0.0 +5.0.1 ``` ## Getting Started diff --git a/install.ps1 b/install.ps1 index 92d39e8..ee00f1e 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/5.0.0/appwrite-cli-win-x64.exe" -$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.0/appwrite-cli-win-arm64.exe" +$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-x64.exe" +$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-arm64.exe" $APPWRITE_BINARY_NAME = "appwrite.exe" @@ -30,11 +30,11 @@ $USER_PATH_ENV_VAR = [Environment]::GetEnvironmentVariable("PATH", "User") function Greeting { Write-Host @" - _ _ _ ___ __ _____ + _ _ _ ___ __ _____ /_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \ //_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/ - / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_ - \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/ + / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_ + \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/ |_| |_| "@ -ForegroundColor red diff --git a/install.sh b/install.sh index 2328eb0..43c7132 100644 --- a/install.sh +++ b/install.sh @@ -44,11 +44,11 @@ greeting() { echo -e "${RED}" cat << "EOF" - _ _ _ ___ __ _____ + _ _ _ ___ __ _____ /_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \ //_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/ - / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_ - \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/ + / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_ + \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/ |_| |_| EOF echo -e "${NC}\n" @@ -97,7 +97,7 @@ printSuccess() { downloadBinary() { echo "[2/4] Downloading executable for $OS ($ARCH) ..." - GITHUB_LATEST_VERSION="5.0.0" + GITHUB_LATEST_VERSION="5.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/client.js b/lib/client.js index ec4a8f0..141f6d1 100644 --- a/lib/client.js +++ b/lib/client.js @@ -15,8 +15,8 @@ class Client { 'x-sdk-name': 'Command Line', 'x-sdk-platform': 'console', 'x-sdk-language': 'cli', - 'x-sdk-version': '5.0.0', - 'user-agent' : `AppwriteCLI/5.0.0 (${os.type()} ${os.version()}; ${os.arch()})`, + 'x-sdk-version': '5.0.1', + 'user-agent' : `AppwriteCLI/5.0.1 (${os.type()} ${os.version()}; ${os.arch()})`, 'X-Appwrite-Response-Format' : '1.5.0', }; } diff --git a/lib/commands/generic.js b/lib/commands/generic.js index 3c26e0d..ef86fca 100644 --- a/lib/commands/generic.js +++ b/lib/commands/generic.js @@ -5,7 +5,7 @@ const { sdkForConsole } = require("../sdks"); const { globalConfig, localConfig } = require("../config"); const { actionRunner, success, parseBool, commandDescriptions, log, parse } = require("../parser"); const { questionsLogin } = require("../questions"); -const { accountCreateEmailSession, accountDeleteSession } = require("./account"); +const { accountCreateEmailPasswordSession, accountDeleteSession } = require("./account"); const login = new Command("login") .description(commandDescriptions['login']) @@ -17,7 +17,7 @@ const login = new Command("login") let client = await sdkForConsole(false); - await accountCreateEmailSession({ + await accountCreateEmailPasswordSession({ email: answers.email, password: answers.password, parseOutput: false, diff --git a/lib/parser.js b/lib/parser.js index a4e59a2..717bdd6 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -149,7 +149,7 @@ const error = (message) => { console.error(`${chalk.red.bold("✗ Error")} ${chalk.red(message ?? "")}`); } -const logo = "\n _ _ _ ___ __ _____ \n \/_\\ _ __ _ ____ ___ __(_) |_ ___ \/ __\\ \/ \/ \\_ \\\n \/\/_\\\\| '_ \\| '_ \\ \\ \/\\ \/ \/ '__| | __\/ _ \\ \/ \/ \/ \/ \/ \/\\\/\n \/ _ \\ |_) | |_) \\ V V \/| | | | || __\/ \/ \/___\/ \/___\/\\\/ \/_ \n \\_\/ \\_\/ .__\/| .__\/ \\_\/\\_\/ |_| |_|\\__\\___| \\____\/\\____\/\\____\/ \n |_| |_| \n\n"; +const logo = "\n _ _ _ ___ __ _____\n \/_\\ _ __ _ ____ ___ __(_) |_ ___ \/ __\\ \/ \/ \\_ \\\n \/\/_\\\\| '_ \\| '_ \\ \\ \/\\ \/ \/ '__| | __\/ _ \\ \/ \/ \/ \/ \/ \/\\\/\n \/ _ \\ |_) | |_) \\ V V \/| | | | || __\/ \/ \/___\/ \/___\/\\\/ \/_\n \\_\/ \\_\/ .__\/| .__\/ \\_\/\\_\/ |_| |_|\\__\\___| \\____\/\\____\/\\____\/\n |_| |_|\n\n"; const commandDescriptions = { "account": `The account command allows you to authenticate and manage a user account.`, diff --git a/package.json b/package.json index 0da3d80..c028469 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "appwrite-cli", "homepage": "https://appwrite.io/support", "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API", - "version": "5.0.0", + "version": "5.0.1", "license": "BSD-3-Clause", "main": "index.js", "bin": { diff --git a/scoop/appwrite.json b/scoop/appwrite.json index 5071823..0f955da 100644 --- a/scoop/appwrite.json +++ b/scoop/appwrite.json @@ -1,12 +1,12 @@ { "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", - "version": "5.0.0", + "version": "5.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/5.0.0/appwrite-cli-win-x64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.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/5.0.0/appwrite-cli-win-arm64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-arm64.exe", "bin": [ [ "appwrite-cli-win-arm64.exe",