appwrite-cli 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
29
29
 
30
30
  ```sh
31
31
  $ appwrite -v
32
- 5.0.0
32
+ 5.0.1
33
33
  ```
34
34
 
35
35
  ### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
60
60
  Once the installation completes, you can verify your install using
61
61
  ```
62
62
  $ appwrite -v
63
- 5.0.0
63
+ 5.0.1
64
64
  ```
65
65
 
66
66
  ## Getting Started
package/install.ps1 CHANGED
@@ -13,8 +13,8 @@
13
13
  # You can use "View source" of this page to see the full script.
14
14
 
15
15
  # REPO
16
- $GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.0/appwrite-cli-win-x64.exe"
17
- $GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.0/appwrite-cli-win-arm64.exe"
16
+ $GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-x64.exe"
17
+ $GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-arm64.exe"
18
18
 
19
19
  $APPWRITE_BINARY_NAME = "appwrite.exe"
20
20
 
@@ -30,11 +30,11 @@ $USER_PATH_ENV_VAR = [Environment]::GetEnvironmentVariable("PATH", "User")
30
30
  function Greeting {
31
31
  Write-Host @"
32
32
 
33
- _ _ _ ___ __ _____
33
+ _ _ _ ___ __ _____
34
34
  /_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \
35
35
  //_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/
36
- / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
37
- \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
36
+ / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
37
+ \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
38
38
  |_| |_|
39
39
 
40
40
  "@ -ForegroundColor red
package/install.sh CHANGED
@@ -44,11 +44,11 @@ greeting() {
44
44
  echo -e "${RED}"
45
45
  cat << "EOF"
46
46
 
47
- _ _ _ ___ __ _____
47
+ _ _ _ ___ __ _____
48
48
  /_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \
49
49
  //_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/
50
- / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
51
- \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
50
+ / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
51
+ \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
52
52
  |_| |_|
53
53
  EOF
54
54
  echo -e "${NC}\n"
@@ -97,7 +97,7 @@ printSuccess() {
97
97
  downloadBinary() {
98
98
  echo "[2/4] Downloading executable for $OS ($ARCH) ..."
99
99
 
100
- GITHUB_LATEST_VERSION="5.0.0"
100
+ GITHUB_LATEST_VERSION="5.0.1"
101
101
  GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
102
102
  GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
103
103
 
package/lib/client.js CHANGED
@@ -15,8 +15,8 @@ class Client {
15
15
  'x-sdk-name': 'Command Line',
16
16
  'x-sdk-platform': 'console',
17
17
  'x-sdk-language': 'cli',
18
- 'x-sdk-version': '5.0.0',
19
- 'user-agent' : `AppwriteCLI/5.0.0 (${os.type()} ${os.version()}; ${os.arch()})`,
18
+ 'x-sdk-version': '5.0.1',
19
+ 'user-agent' : `AppwriteCLI/5.0.1 (${os.type()} ${os.version()}; ${os.arch()})`,
20
20
  'X-Appwrite-Response-Format' : '1.5.0',
21
21
  };
22
22
  }
@@ -5,7 +5,7 @@ const { sdkForConsole } = require("../sdks");
5
5
  const { globalConfig, localConfig } = require("../config");
6
6
  const { actionRunner, success, parseBool, commandDescriptions, log, parse } = require("../parser");
7
7
  const { questionsLogin } = require("../questions");
8
- const { accountCreateEmailSession, accountDeleteSession } = require("./account");
8
+ const { accountCreateEmailPasswordSession, accountDeleteSession } = require("./account");
9
9
 
10
10
  const login = new Command("login")
11
11
  .description(commandDescriptions['login'])
@@ -17,7 +17,7 @@ const login = new Command("login")
17
17
 
18
18
  let client = await sdkForConsole(false);
19
19
 
20
- await accountCreateEmailSession({
20
+ await accountCreateEmailPasswordSession({
21
21
  email: answers.email,
22
22
  password: answers.password,
23
23
  parseOutput: false,
package/lib/parser.js CHANGED
@@ -149,7 +149,7 @@ const error = (message) => {
149
149
  console.error(`${chalk.red.bold("✗ Error")} ${chalk.red(message ?? "")}`);
150
150
  }
151
151
 
152
- const logo = "\n _ _ _ ___ __ _____ \n \/_\\ _ __ _ ____ ___ __(_) |_ ___ \/ __\\ \/ \/ \\_ \\\n \/\/_\\\\| '_ \\| '_ \\ \\ \/\\ \/ \/ '__| | __\/ _ \\ \/ \/ \/ \/ \/ \/\\\/\n \/ _ \\ |_) | |_) \\ V V \/| | | | || __\/ \/ \/___\/ \/___\/\\\/ \/_ \n \\_\/ \\_\/ .__\/| .__\/ \\_\/\\_\/ |_| |_|\\__\\___| \\____\/\\____\/\\____\/ \n |_| |_| \n\n";
152
+ const logo = "\n _ _ _ ___ __ _____\n \/_\\ _ __ _ ____ ___ __(_) |_ ___ \/ __\\ \/ \/ \\_ \\\n \/\/_\\\\| '_ \\| '_ \\ \\ \/\\ \/ \/ '__| | __\/ _ \\ \/ \/ \/ \/ \/ \/\\\/\n \/ _ \\ |_) | |_) \\ V V \/| | | | || __\/ \/ \/___\/ \/___\/\\\/ \/_\n \\_\/ \\_\/ .__\/| .__\/ \\_\/\\_\/ |_| |_|\\__\\___| \\____\/\\____\/\\____\/\n |_| |_|\n\n";
153
153
 
154
154
  const commandDescriptions = {
155
155
  "account": `The account command allows you to authenticate and manage a user account.`,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "appwrite-cli",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "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",
5
- "version": "5.0.0",
5
+ "version": "5.0.1",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "index.js",
8
8
  "bin": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
5
5
  "homepage": "https://github.com/appwrite/sdk-for-cli",
6
6
  "license": "BSD-3-Clause",
7
7
  "architecture": {
8
8
  "64bit": {
9
- "url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.0/appwrite-cli-win-x64.exe",
9
+ "url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-x64.exe",
10
10
  "bin": [
11
11
  [
12
12
  "appwrite-cli-win-x64.exe",
@@ -15,7 +15,7 @@
15
15
  ]
16
16
  },
17
17
  "arm64": {
18
- "url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.0/appwrite-cli-win-arm64.exe",
18
+ "url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-arm64.exe",
19
19
  "bin": [
20
20
  [
21
21
  "appwrite-cli-win-arm64.exe",