Skip to content

Commit 90074f7

Browse files
chore: rc.4
1 parent 7ebd1b9 commit 90074f7

File tree

9 files changed

+14
-20
lines changed

9 files changed

+14
-20
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
6.0.0-rc.3
32+
6.0.0-rc.4
3333
```
3434

3535
### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
6060
Once the installation completes, you can verify your install using
6161
```
6262
$ appwrite -v
63-
6.0.0-rc.3
63+
6.0.0-rc.4
6464
```
6565

6666
## Getting Started
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
appwrite account deleteMfaAuthenticator \
2-
--type totp \
3-
--otp <OTP>
2+
--type totp

install.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# You can use "View source" of this page to see the full script.
1414

1515
# REPO
16-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.3/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.3/appwrite-cli-win-arm64.exe"
16+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.4/appwrite-cli-win-x64.exe"
17+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.4/appwrite-cli-win-arm64.exe"
1818

1919
$APPWRITE_BINARY_NAME = "appwrite.exe"
2020

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ printSuccess() {
9797
downloadBinary() {
9898
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
9999

100-
GITHUB_LATEST_VERSION="6.0.0-rc.3"
100+
GITHUB_LATEST_VERSION="6.0.0-rc.4"
101101
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
102102
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
103103

lib/client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class Client {
1616
'x-sdk-name': 'Command Line',
1717
'x-sdk-platform': 'console',
1818
'x-sdk-language': 'cli',
19-
'x-sdk-version': '6.0.0-rc.3',
20-
'user-agent' : `AppwriteCLI/6.0.0-rc.3 (${os.type()} ${os.version()}; ${os.arch()})`,
19+
'x-sdk-version': '6.0.0-rc.4',
20+
'user-agent' : `AppwriteCLI/6.0.0-rc.4 (${os.type()} ${os.version()}; ${os.arch()})`,
2121
'X-Appwrite-Response-Format' : '1.5.0',
2222
};
2323
}

lib/commands/account.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ const accountUpdateMfaAuthenticator = async ({type,otp,parseOutput = true, overr
430430
/**
431431
* @typedef {Object} AccountDeleteMfaAuthenticatorRequestParams
432432
* @property {AuthenticatorType} type Type of authenticator.
433-
* @property {string} otp Valid verification token.
434433
* @property {boolean} overrideForCli
435434
* @property {boolean} parseOutput
436435
* @property {libClient | undefined} sdk
@@ -439,14 +438,11 @@ const accountUpdateMfaAuthenticator = async ({type,otp,parseOutput = true, overr
439438
/**
440439
* @param {AccountDeleteMfaAuthenticatorRequestParams} params
441440
*/
442-
const accountDeleteMfaAuthenticator = async ({type,otp,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
441+
const accountDeleteMfaAuthenticator = async ({type,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
443442
let client = !sdk ? await sdkForProject() :
444443
sdk;
445444
let apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
446445
let payload = {};
447-
if (typeof otp !== 'undefined') {
448-
payload['otp'] = otp;
449-
}
450446

451447
let response = undefined;
452448

@@ -1847,7 +1843,6 @@ account
18471843
.command(`deleteMfaAuthenticator`)
18481844
.description(`Delete an authenticator for a user by ID.`)
18491845
.requiredOption(`--type <type>`, `Type of authenticator.`)
1850-
.requiredOption(`--otp <otp>`, `Valid verification token.`)
18511846
.action(actionRunner(accountDeleteMfaAuthenticator))
18521847

18531848
account

lib/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const parseError = (err) => {
131131
} catch {
132132
}
133133

134-
const version = '6.0.0-rc.3';
134+
const version = '6.0.0-rc.4';
135135
const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``;
136136
const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud}`;
137137

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "appwrite-cli",
33
"homepage": "https://appwrite.io/support",
44
"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": "6.0.0-rc.3",
5+
"version": "6.0.0-rc.4",
66
"license": "BSD-3-Clause",
77
"main": "index.js",
88
"bin": {

scoop/appwrite.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3-
"version": "6.0.0-rc.3",
3+
"version": "6.0.0-rc.4",
44
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
55
"homepage": "https://github.com/appwrite/sdk-for-cli",
66
"license": "BSD-3-Clause",
77
"architecture": {
88
"64bit": {
9-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.3/appwrite-cli-win-x64.exe",
9+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.4/appwrite-cli-win-x64.exe",
1010
"bin": [
1111
[
1212
"appwrite-cli-win-x64.exe",
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"arm64": {
18-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.3/appwrite-cli-win-arm64.exe",
18+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.4/appwrite-cli-win-arm64.exe",
1919
"bin": [
2020
[
2121
"appwrite-cli-win-arm64.exe",

0 commit comments

Comments
 (0)