diff --git a/CHANGELOG.md b/CHANGELOG.md index 5af193d..289c1ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 10.1.0 + +* Deprecate `createVerification` method in `Account` service +* Add `createEmailVerification` method in `Account` service + ## 10.0.1 * Fix CLI Dart model generation issues diff --git a/README.md b/README.md index b806d39..e31a89f 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 -10.0.1 +10.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 -10.0.1 +10.1.0 ``` ## Getting Started diff --git a/docs/examples/account/create-email-verification.md b/docs/examples/account/create-email-verification.md new file mode 100644 index 0000000..f9f37f2 --- /dev/null +++ b/docs/examples/account/create-email-verification.md @@ -0,0 +1,2 @@ +appwrite account create-email-verification \ + --url https://example.com diff --git a/docs/examples/account/update-email-verification.md b/docs/examples/account/update-email-verification.md new file mode 100644 index 0000000..02ff32a --- /dev/null +++ b/docs/examples/account/update-email-verification.md @@ -0,0 +1,3 @@ +appwrite account update-email-verification \ + --user-id \ + --secret diff --git a/install.ps1 b/install.ps1 index 19b1cad..db3fae9 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/10.0.1/appwrite-cli-win-x64.exe" -$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/10.0.1/appwrite-cli-win-arm64.exe" +$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/10.1.0/appwrite-cli-win-x64.exe" +$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/10.1.0/appwrite-cli-win-arm64.exe" $APPWRITE_BINARY_NAME = "appwrite.exe" diff --git a/install.sh b/install.sh index 39487a9..364d96f 100644 --- a/install.sh +++ b/install.sh @@ -97,7 +97,7 @@ printSuccess() { downloadBinary() { echo "[2/4] Downloading executable for $OS ($ARCH) ..." - GITHUB_LATEST_VERSION="10.0.1" + GITHUB_LATEST_VERSION="10.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/client.js b/lib/client.js index 6ec8c32..d8d6ec9 100644 --- a/lib/client.js +++ b/lib/client.js @@ -16,8 +16,8 @@ class Client { 'x-sdk-name': 'Command Line', 'x-sdk-platform': 'console', 'x-sdk-language': 'cli', - 'x-sdk-version': '10.0.1', - 'user-agent' : `AppwriteCLI/10.0.1 (${os.type()} ${os.version()}; ${os.arch()})`, + 'x-sdk-version': '10.1.0', + 'user-agent' : `AppwriteCLI/10.1.0 (${os.type()} ${os.version()}; ${os.arch()})`, 'X-Appwrite-Response-Format' : '1.8.0', }; } diff --git a/lib/commands/account.js b/lib/commands/account.js index bd2b952..4f2100b 100644 --- a/lib/commands/account.js +++ b/lib/commands/account.js @@ -1527,6 +1527,39 @@ const accountCreatePhoneToken = async ({userId,phone,parseOutput = true, overrid return response; +} +/** + * @typedef {Object} AccountCreateEmailVerificationRequestParams + * @property {string} url URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API. + * @property {boolean} overrideForCli + * @property {boolean} parseOutput + * @property {libClient | undefined} sdk + */ + +/** + * @param {AccountCreateEmailVerificationRequestParams} params + */ +const accountCreateEmailVerification = async ({url,parseOutput = true, overrideForCli = false, sdk = undefined}) => { + let client = !sdk ? await sdkForProject() : + sdk; + let apiPath = '/account/verifications/email'; + let payload = {}; + if (typeof url !== 'undefined') { + payload['url'] = url; + } + + let response = undefined; + + response = await client.call('post', apiPath, { + 'content-type': 'application/json', + }, payload); + + if (parseOutput) { + parse(response) + } + + return response; + } /** * @typedef {Object} AccountCreateVerificationRequestParams @@ -1542,7 +1575,7 @@ const accountCreatePhoneToken = async ({userId,phone,parseOutput = true, overrid const accountCreateVerification = async ({url,parseOutput = true, overrideForCli = false, sdk = undefined}) => { let client = !sdk ? await sdkForProject() : sdk; - let apiPath = '/account/verification'; + let apiPath = '/account/verifications/email'; let payload = {}; if (typeof url !== 'undefined') { payload['url'] = url; @@ -1560,6 +1593,43 @@ const accountCreateVerification = async ({url,parseOutput = true, overrideForCli return response; +} +/** + * @typedef {Object} AccountUpdateEmailVerificationRequestParams + * @property {string} userId User ID. + * @property {string} secret Valid verification token. + * @property {boolean} overrideForCli + * @property {boolean} parseOutput + * @property {libClient | undefined} sdk + */ + +/** + * @param {AccountUpdateEmailVerificationRequestParams} params + */ +const accountUpdateEmailVerification = async ({userId,secret,parseOutput = true, overrideForCli = false, sdk = undefined}) => { + let client = !sdk ? await sdkForProject() : + sdk; + let apiPath = '/account/verifications/email'; + let payload = {}; + if (typeof userId !== 'undefined') { + payload['userId'] = userId; + } + if (typeof secret !== 'undefined') { + payload['secret'] = secret; + } + + let response = undefined; + + response = await client.call('put', apiPath, { + 'content-type': 'application/json', + }, payload); + + if (parseOutput) { + parse(response) + } + + return response; + } /** * @typedef {Object} AccountUpdateVerificationRequestParams @@ -1576,7 +1646,7 @@ const accountCreateVerification = async ({url,parseOutput = true, overrideForCli const accountUpdateVerification = async ({userId,secret,parseOutput = true, overrideForCli = false, sdk = undefined}) => { let client = !sdk ? await sdkForProject() : sdk; - let apiPath = '/account/verification'; + let apiPath = '/account/verifications/email'; let payload = {}; if (typeof userId !== 'undefined') { payload['userId'] = userId; @@ -1611,7 +1681,7 @@ const accountUpdateVerification = async ({userId,secret,parseOutput = true, over const accountCreatePhoneVerification = async ({parseOutput = true, overrideForCli = false, sdk = undefined}) => { let client = !sdk ? await sdkForProject() : sdk; - let apiPath = '/account/verification/phone'; + let apiPath = '/account/verifications/phone'; let payload = {}; let response = undefined; @@ -1642,7 +1712,7 @@ const accountCreatePhoneVerification = async ({parseOutput = true, overrideForCl const accountUpdatePhoneVerification = async ({userId,secret,parseOutput = true, overrideForCli = false, sdk = undefined}) => { let client = !sdk ? await sdkForProject() : sdk; - let apiPath = '/account/verification/phone'; + let apiPath = '/account/verifications/phone'; let payload = {}; if (typeof userId !== 'undefined') { payload['userId'] = userId; @@ -1949,16 +2019,29 @@ account .action(actionRunner(accountCreatePhoneToken)) account - .command(`create-verification`) + .command(`create-email-verification`) .description(`Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). The verification link sent to the user's email address is valid for 7 days. Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface. `) .requiredOption(`--url `, `URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.`) + .action(actionRunner(accountCreateEmailVerification)) + +account + .command(`create-verification`) + .description(`[**DEPRECATED** - This command is deprecated. Please use 'account create-email-verification' instead] Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). The verification link sent to the user's email address is valid for 7 days. Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface. `) + .requiredOption(`--url `, `URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.`) .action(actionRunner(accountCreateVerification)) account - .command(`update-verification`) + .command(`update-email-verification`) .description(`Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.`) .requiredOption(`--user-id `, `User ID.`) .requiredOption(`--secret `, `Valid verification token.`) + .action(actionRunner(accountUpdateEmailVerification)) + +account + .command(`update-verification`) + .description(`[**DEPRECATED** - This command is deprecated. Please use 'account update-email-verification' instead] Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.`) + .requiredOption(`--user-id `, `User ID.`) + .requiredOption(`--secret `, `Valid verification token.`) .action(actionRunner(accountUpdateVerification)) account @@ -2019,7 +2102,9 @@ module.exports = { accountCreateMagicURLToken, accountCreateOAuth2Token, accountCreatePhoneToken, + accountCreateEmailVerification, accountCreateVerification, + accountUpdateEmailVerification, accountUpdateVerification, accountCreatePhoneVerification, accountUpdatePhoneVerification diff --git a/lib/commands/functions.js b/lib/commands/functions.js index e6c0236..69ebeb8 100644 --- a/lib/commands/functions.js +++ b/lib/commands/functions.js @@ -1541,7 +1541,7 @@ functions functions .command(`create-template-deployment`) - .description(`Create a deployment based on a template. Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/functions#listTemplates) to find the template details.`) + .description(`Create a deployment based on a template. Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/functions/templates) to find the template details.`) .requiredOption(`--function-id `, `Function ID.`) .requiredOption(`--repository `, `Repository name of the template.`) .requiredOption(`--owner `, `The name of the owner of the template.`) diff --git a/lib/commands/sites.js b/lib/commands/sites.js index 5c0bf63..991c513 100644 --- a/lib/commands/sites.js +++ b/lib/commands/sites.js @@ -1482,7 +1482,7 @@ sites sites .command(`create-template-deployment`) - .description(`Create a deployment based on a template. Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/sites#listTemplates) to find the template details.`) + .description(`Create a deployment based on a template. Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/sites/templates) to find the template details.`) .requiredOption(`--site-id `, `Site ID.`) .requiredOption(`--repository `, `Repository name of the template.`) .requiredOption(`--owner `, `The name of the owner of the template.`) diff --git a/lib/commands/tables-db.js b/lib/commands/tables-db.js index 267e99b..657dec4 100644 --- a/lib/commands/tables-db.js +++ b/lib/commands/tables-db.js @@ -503,7 +503,7 @@ const tablesDBListColumns = async ({databaseId,tableId,queries,parseOutput = tru /** * @typedef {Object} TablesDBCreateBooleanColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {boolean} xdefault Default value for column when not provided. Cannot be set when column is required. @@ -550,7 +550,7 @@ const tablesDBCreateBooleanColumn = async ({databaseId,tableId,key,required,xdef /** * @typedef {Object} TablesDBUpdateBooleanColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {boolean} xdefault Default value for column when not provided. Cannot be set when column is required. @@ -1182,7 +1182,7 @@ const tablesDBUpdateIpColumn = async ({databaseId,tableId,key,required,xdefault, /** * @typedef {Object} TablesDBCreateLineColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {any[]} xdefault Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required. @@ -1226,7 +1226,7 @@ const tablesDBCreateLineColumn = async ({databaseId,tableId,key,required,xdefaul /** * @typedef {Object} TablesDBUpdateLineColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {any[]} xdefault Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required. @@ -1271,7 +1271,7 @@ const tablesDBUpdateLineColumn = async ({databaseId,tableId,key,required,xdefaul /** * @typedef {Object} TablesDBCreatePointColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {any[]} xdefault Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required. @@ -1315,7 +1315,7 @@ const tablesDBCreatePointColumn = async ({databaseId,tableId,key,required,xdefau /** * @typedef {Object} TablesDBUpdatePointColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {any[]} xdefault Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required. @@ -1360,7 +1360,7 @@ const tablesDBUpdatePointColumn = async ({databaseId,tableId,key,required,xdefau /** * @typedef {Object} TablesDBCreatePolygonColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {any[]} xdefault Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required. @@ -1404,7 +1404,7 @@ const tablesDBCreatePolygonColumn = async ({databaseId,tableId,key,required,xdef /** * @typedef {Object} TablesDBUpdatePolygonColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {any[]} xdefault Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required. @@ -1504,7 +1504,7 @@ const tablesDBCreateRelationshipColumn = async ({databaseId,tableId,relatedTable /** * @typedef {Object} TablesDBCreateStringColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {number} size Column size for text columns, in number of characters. * @property {boolean} required Is column required? @@ -1559,7 +1559,7 @@ const tablesDBCreateStringColumn = async ({databaseId,tableId,key,size,required, /** * @typedef {Object} TablesDBUpdateStringColumnRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Column Key. * @property {boolean} required Is column required? * @property {string} xdefault Default value for column when not provided. Cannot be set when column is required. @@ -1805,7 +1805,7 @@ const tablesDBUpdateRelationshipColumn = async ({databaseId,tableId,key,onDelete /** * @typedef {Object} TablesDBListIndexesRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error * @property {boolean} overrideForCli * @property {boolean} parseOutput @@ -1843,7 +1843,7 @@ const tablesDBListIndexes = async ({databaseId,tableId,queries,parseOutput = tru /** * @typedef {Object} TablesDBCreateIndexRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Index Key. * @property {IndexType} type Index type. * @property {string[]} columns Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long. @@ -1897,7 +1897,7 @@ const tablesDBCreateIndex = async ({databaseId,tableId,key,type,columns,orders,l /** * @typedef {Object} TablesDBGetIndexRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Index Key. * @property {boolean} overrideForCli * @property {boolean} parseOutput @@ -1928,7 +1928,7 @@ const tablesDBGetIndex = async ({databaseId,tableId,key,parseOutput = true, over /** * @typedef {Object} TablesDBDeleteIndexRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} key Index Key. * @property {boolean} overrideForCli * @property {boolean} parseOutput @@ -1998,7 +1998,7 @@ const tablesDBListTableLogs = async ({databaseId,tableId,queries,parseOutput = t /** * @typedef {Object} TablesDBListRowsRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the TableDB service [server integration](https://appwrite.io/docs/server/tablesdbdb#tablesdbCreate). + * @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table). * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. * @property {boolean} overrideForCli * @property {boolean} parseOutput @@ -2036,7 +2036,7 @@ const tablesDBListRows = async ({databaseId,tableId,queries,parseOutput = true, /** * @typedef {Object} TablesDBCreateRowRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows. + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows. * @property {string} rowId Row ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. * @property {object} data Row data as JSON object. * @property {string[]} permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). @@ -2080,7 +2080,7 @@ const tablesDBCreateRow = async ({databaseId,tableId,rowId,data,permissions,pars /** * @typedef {Object} TablesDBCreateRowsRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows. + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows. * @property {object[]} rows Array of rows data as JSON objects. * @property {boolean} overrideForCli * @property {boolean} parseOutput @@ -2192,7 +2192,7 @@ const tablesDBUpdateRows = async ({databaseId,tableId,data,queries,parseOutput = /** * @typedef {Object} TablesDBDeleteRowsRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. * @property {boolean} overrideForCli * @property {boolean} parseOutput @@ -2228,7 +2228,7 @@ const tablesDBDeleteRows = async ({databaseId,tableId,queries,parseOutput = true /** * @typedef {Object} TablesDBGetRowRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} rowId Row ID. * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. * @property {boolean} overrideForCli @@ -2349,7 +2349,7 @@ const tablesDBUpdateRow = async ({databaseId,tableId,rowId,data,permissions,pars /** * @typedef {Object} TablesDBDeleteRowRequestParams * @property {string} databaseId Database ID. - * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). + * @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). * @property {string} rowId Row ID. * @property {boolean} overrideForCli * @property {boolean} parseOutput @@ -2625,7 +2625,7 @@ tablesDB tablesDB .command(`create-table`) - .description(`Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.`) + .description(`Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`) .requiredOption(`--database-id `, `Database ID.`) .requiredOption(`--table-id `, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`) .requiredOption(`--name `, `Table name. Max length: 128 chars.`) @@ -2673,7 +2673,7 @@ tablesDB .command(`create-boolean-column`) .description(`Create a boolean column. `) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault [value]`, `Default value for column when not provided. Cannot be set when column is required.`, (value) => value === undefined ? true : parseBool(value)) @@ -2684,7 +2684,7 @@ tablesDB .command(`update-boolean-column`) .description(`Update a boolean column. Changing the 'default' value will not update already existing rows.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault [value]`, `Default value for column when not provided. Cannot be set when column is required.`, (value) => value === undefined ? true : parseBool(value)) @@ -2837,7 +2837,7 @@ tablesDB .command(`create-line-column`) .description(`Create a geometric line column.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault `, `Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.`) @@ -2847,7 +2847,7 @@ tablesDB .command(`update-line-column`) .description(`Update a line column. Changing the 'default' value will not update already existing rows.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault `, `Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.`) @@ -2858,7 +2858,7 @@ tablesDB .command(`create-point-column`) .description(`Create a geometric point column.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault `, `Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.`) @@ -2868,7 +2868,7 @@ tablesDB .command(`update-point-column`) .description(`Update a point column. Changing the 'default' value will not update already existing rows.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault `, `Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.`) @@ -2879,7 +2879,7 @@ tablesDB .command(`create-polygon-column`) .description(`Create a geometric polygon column.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault `, `Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.`) @@ -2889,7 +2889,7 @@ tablesDB .command(`update-polygon-column`) .description(`Update a polygon column. Changing the 'default' value will not update already existing rows.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault `, `Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.`) @@ -2913,7 +2913,7 @@ tablesDB .command(`create-string-column`) .description(`Create a string column. `) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--size `, `Column size for text columns, in number of characters.`, parseInteger) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) @@ -2926,7 +2926,7 @@ tablesDB .command(`update-string-column`) .description(`Update a string column. Changing the 'default' value will not update already existing rows. `) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Column Key.`) .requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value)) .option(`--xdefault `, `Default value for column when not provided. Cannot be set when column is required.`) @@ -2987,7 +2987,7 @@ tablesDB .command(`list-indexes`) .description(`List indexes on the table.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error`) .option(`--console`, `Get the resource console url`) .action(actionRunner(tablesDBListIndexes)) @@ -2996,7 +2996,7 @@ tablesDB .command(`create-index`) .description(`Creates an index on the columns listed. Your index should include all the columns you will query in a single request. Type can be 'key', 'fulltext', or 'unique'.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Index Key.`) .requiredOption(`--type `, `Index type.`) .requiredOption(`--columns [columns...]`, `Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.`) @@ -3008,7 +3008,7 @@ tablesDB .command(`get-index`) .description(`Get index by ID.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Index Key.`) .action(actionRunner(tablesDBGetIndex)) @@ -3016,7 +3016,7 @@ tablesDB .command(`delete-index`) .description(`Delete an index.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--key `, `Index Key.`) .action(actionRunner(tablesDBDeleteIndex)) @@ -3033,16 +3033,16 @@ tablesDB .command(`list-rows`) .description(`Get a list of all the user's rows in a given table. You can use the query params to filter your results.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the TableDB service [server integration](https://appwrite.io/docs/server/tablesdbdb#tablesdbCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).`) .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`) .option(`--console`, `Get the resource console url`) .action(actionRunner(tablesDBListRows)) tablesDB .command(`create-row`) - .description(`Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.`) + .description(`Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.`) .requiredOption(`--row-id `, `Row ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`) .requiredOption(`--data `, `Row data as JSON object.`) .option(`--permissions [permissions...]`, `An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).`) @@ -3050,15 +3050,15 @@ tablesDB tablesDB .command(`create-rows`) - .description(`Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.`) + .description(`Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.`) .requiredOption(`--rows [rows...]`, `Array of rows data as JSON objects.`) .action(actionRunner(tablesDBCreateRows)) tablesDB .command(`upsert-rows`) - .description(`Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console. `) + .description(`Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console. `) .requiredOption(`--database-id `, `Database ID.`) .requiredOption(`--table-id `, `Table ID.`) .requiredOption(`--rows [rows...]`, `Array of row data as JSON objects. May contain partial rows.`) @@ -3077,7 +3077,7 @@ tablesDB .command(`delete-rows`) .description(`Bulk delete rows using queries, if no queries are passed then all rows are deleted.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`) .action(actionRunner(tablesDBDeleteRows)) @@ -3085,7 +3085,7 @@ tablesDB .command(`get-row`) .description(`Get a row by its unique ID. This endpoint response returns a JSON object with the row data.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--row-id `, `Row ID.`) .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`) .option(`--console`, `Get the resource console url`) @@ -3093,7 +3093,7 @@ tablesDB tablesDB .command(`upsert-row`) - .description(`Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreateTable) API or directly from your database console.`) + .description(`Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`) .requiredOption(`--database-id `, `Database ID.`) .requiredOption(`--table-id `, `Table ID.`) .requiredOption(`--row-id `, `Row ID.`) @@ -3115,7 +3115,7 @@ tablesDB .command(`delete-row`) .description(`Delete a row by its unique ID.`) .requiredOption(`--database-id `, `Database ID.`) - .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).`) + .requiredOption(`--table-id `, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`) .requiredOption(`--row-id `, `Row ID.`) .action(actionRunner(tablesDBDeleteRow)) diff --git a/lib/parser.js b/lib/parser.js index 53eb0ca..bd3de74 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -122,7 +122,7 @@ const parseError = (err) => { } catch { } - const version = '10.0.1'; + const version = '10.1.0'; const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``; const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud()}`; diff --git a/package.json b/package.json index fa65d93..d3ca8f9 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": "10.0.1", + "version": "10.1.0", "license": "BSD-3-Clause", "main": "index.js", "bin": { diff --git a/scoop/appwrite.config.json b/scoop/appwrite.config.json index 3c61060..e5abde9 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": "10.0.1", + "version": "10.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/10.0.1/appwrite-cli-win-x64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/10.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/10.0.1/appwrite-cli-win-arm64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/10.1.0/appwrite-cli-win-arm64.exe", "bin": [ [ "appwrite-cli-win-arm64.exe",