appwrite-cli 4.2.1 → 4.2.2
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 +2 -2
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +7 -2
- package/lib/commands/account.js +63 -158
- package/lib/commands/assistant.js +3 -8
- package/lib/commands/avatars.js +29 -45
- package/lib/commands/console.js +3 -8
- package/lib/commands/databases.js +97 -243
- package/lib/commands/functions.js +54 -119
- package/lib/commands/generic.js +0 -1
- package/lib/commands/graphql.js +5 -13
- package/lib/commands/health.js +37 -93
- package/lib/commands/locale.js +17 -43
- package/lib/commands/migrations.js +33 -83
- package/lib/commands/project.js +13 -33
- package/lib/commands/projects.js +81 -203
- package/lib/commands/proxy.js +11 -28
- package/lib/commands/storage.js +36 -81
- package/lib/commands/teams.js +29 -73
- package/lib/commands/users.js +59 -148
- package/lib/commands/vcs.js +19 -48
- package/package.json +1 -1
- package/scoop/appwrite.json +3 -3
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
|
-
4.2.
|
|
32
|
+
4.2.2
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Install using prebuilt binaries
|
|
@@ -63,7 +63,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
|
|
|
63
63
|
Once the installation completes, you can verify your install using
|
|
64
64
|
```
|
|
65
65
|
$ appwrite -v
|
|
66
|
-
4.2.
|
|
66
|
+
4.2.2
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
## 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/4.2.
|
|
17
|
-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/4.2.
|
|
16
|
+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/4.2.2/appwrite-cli-win-x64.exe"
|
|
17
|
+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/4.2.2/appwrite-cli-win-arm64.exe"
|
|
18
18
|
|
|
19
19
|
$APPWRITE_BINARY_NAME = "appwrite.exe"
|
|
20
20
|
|
package/install.sh
CHANGED
|
@@ -97,7 +97,7 @@ printSuccess() {
|
|
|
97
97
|
downloadBinary() {
|
|
98
98
|
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
|
|
99
99
|
|
|
100
|
-
GITHUB_LATEST_VERSION="4.2.
|
|
100
|
+
GITHUB_LATEST_VERSION="4.2.2"
|
|
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': '4.2.
|
|
19
|
-
'user-agent' : `AppwriteCLI/4.2.
|
|
18
|
+
'x-sdk-version': '4.2.2',
|
|
19
|
+
'user-agent' : `AppwriteCLI/4.2.2 (${os.type()} ${os.version()}; ${os.arch()})`,
|
|
20
20
|
'X-Appwrite-Response-Format' : '1.4.0',
|
|
21
21
|
};
|
|
22
22
|
}
|
|
@@ -202,6 +202,11 @@ class Client {
|
|
|
202
202
|
return data;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
let cookies = response.headers.getSetCookie();
|
|
206
|
+
if (cookies && cookies.length > 0) {
|
|
207
|
+
globalConfig.setCookie(cookies[0]);
|
|
208
|
+
}
|
|
209
|
+
|
|
205
210
|
const text = await response.text();
|
|
206
211
|
let json = undefined;
|
|
207
212
|
try {
|