From 7aee91fa3f03fbcf62d5ea701271cb309e7de7bc Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 2 Sep 2021 13:08:52 +0200 Subject: [PATCH] implement realtime feature --- README.md | 4 +- app/client.php | 4 +- app/teams.php | 8 +-- app/users.php | 63 +++++++++++++++++++ docs/examples/account/create-recovery.md | 4 +- docs/examples/account/create-verification.md | 3 +- docs/examples/account/delete-session.md | 3 +- docs/examples/account/delete-sessions.md | 2 +- docs/examples/account/delete.md | 2 +- docs/examples/account/get-logs.md | 2 +- docs/examples/account/get-prefs.md | 2 +- docs/examples/account/get-session.md | 3 +- docs/examples/account/get-sessions.md | 2 +- docs/examples/account/get.md | 2 +- docs/examples/account/update-email.md | 4 +- docs/examples/account/update-name.md | 3 +- docs/examples/account/update-password.md | 4 +- docs/examples/account/update-prefs.md | 3 +- docs/examples/account/update-recovery.md | 6 +- docs/examples/account/update-verification.md | 4 +- docs/examples/avatars/get-browser.md | 6 +- docs/examples/avatars/get-credit-card.md | 6 +- docs/examples/avatars/get-favicon.md | 3 +- docs/examples/avatars/get-flag.md | 6 +- docs/examples/avatars/get-image.md | 5 +- docs/examples/avatars/get-initials.md | 7 ++- docs/examples/avatars/get-q-r.md | 6 +- docs/examples/database/create-collection.md | 6 +- docs/examples/database/create-document.md | 9 ++- docs/examples/database/delete-collection.md | 3 +- docs/examples/database/delete-document.md | 4 +- docs/examples/database/get-collection.md | 3 +- docs/examples/database/get-document.md | 4 +- docs/examples/database/list-collections.md | 6 +- docs/examples/database/list-documents.md | 10 ++- docs/examples/database/update-collection.md | 7 ++- docs/examples/database/update-document.md | 7 ++- docs/examples/functions/create-execution.md | 4 +- docs/examples/functions/create-tag.md | 5 +- docs/examples/functions/create.md | 9 ++- docs/examples/functions/delete-tag.md | 4 +- docs/examples/functions/delete.md | 3 +- docs/examples/functions/get-execution.md | 4 +- docs/examples/functions/get-tag.md | 4 +- docs/examples/functions/get.md | 3 +- docs/examples/functions/list-executions.md | 7 ++- docs/examples/functions/list-tags.md | 7 ++- docs/examples/functions/list.md | 6 +- docs/examples/functions/update-tag.md | 4 +- docs/examples/functions/update.md | 9 ++- docs/examples/health/get-anti-virus.md | 2 +- docs/examples/health/get-cache.md | 2 +- docs/examples/health/get-d-b.md | 2 +- .../examples/health/get-queue-certificates.md | 2 +- docs/examples/health/get-queue-functions.md | 2 +- docs/examples/health/get-queue-logs.md | 2 +- docs/examples/health/get-queue-tasks.md | 2 +- docs/examples/health/get-queue-usage.md | 2 +- docs/examples/health/get-queue-webhooks.md | 2 +- docs/examples/health/get-storage-local.md | 2 +- docs/examples/health/get-time.md | 2 +- docs/examples/health/get.md | 2 +- docs/examples/locale/get-continents.md | 2 +- docs/examples/locale/get-countries-e-u.md | 2 +- docs/examples/locale/get-countries-phones.md | 2 +- docs/examples/locale/get-countries.md | 2 +- docs/examples/locale/get-currencies.md | 2 +- docs/examples/locale/get-languages.md | 2 +- docs/examples/locale/get.md | 2 +- docs/examples/storage/create-file.md | 5 +- docs/examples/storage/delete-file.md | 3 +- docs/examples/storage/get-file-download.md | 3 +- docs/examples/storage/get-file-preview.md | 14 ++++- docs/examples/storage/get-file-view.md | 3 +- docs/examples/storage/get-file.md | 3 +- docs/examples/storage/list-files.md | 6 +- docs/examples/storage/update-file.md | 5 +- docs/examples/teams/create-membership.md | 7 ++- docs/examples/teams/create.md | 4 +- docs/examples/teams/delete-membership.md | 4 +- docs/examples/teams/delete.md | 3 +- docs/examples/teams/get-memberships.md | 7 ++- docs/examples/teams/get.md | 3 +- docs/examples/teams/list.md | 6 +- .../examples/teams/update-membership-roles.md | 5 +- .../teams/update-membership-status.md | 6 +- docs/examples/teams/update.md | 4 +- docs/examples/users/create.md | 5 +- docs/examples/users/delete-session.md | 4 +- docs/examples/users/delete-sessions.md | 3 +- docs/examples/users/delete.md | 3 +- docs/examples/users/get-logs.md | 3 +- docs/examples/users/get-prefs.md | 3 +- docs/examples/users/get-sessions.md | 3 +- docs/examples/users/get.md | 3 +- docs/examples/users/list.md | 6 +- docs/examples/users/update-email.md | 3 + docs/examples/users/update-name.md | 3 + docs/examples/users/update-password.md | 3 + docs/examples/users/update-prefs.md | 4 +- docs/examples/users/update-status.md | 4 +- docs/examples/users/update-verification.md | 4 +- install.ps1 | 4 +- install.sh | 2 +- src/Client.php | 4 +- 105 files changed, 380 insertions(+), 108 deletions(-) create mode 100644 docs/examples/users/update-email.md create mode 100644 docs/examples/users/update-name.md create mode 100644 docs/examples/users/update-password.md diff --git a/README.md b/README.md index a7612a8..0982716 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Appwrite Command Line SDK ![License](https://img.shields.io/github/license/appwrite/sdk-for-cli.svg?style=flat-square) -![Version](https://img.shields.io/badge/api%20version-0.9.0-blue.svg?style=flat-square) +![Version](https://img.shields.io/badge/api%20version-0.10.0-blue.svg?style=flat-square) [![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator) [![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io) [![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord) -**This SDK is compatible with Appwrite server version 0.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/releases).** +**This SDK is compatible with Appwrite server version 0.10.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/releases).** Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Command Line SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs) diff --git a/app/client.php b/app/client.php index a20792b..fdc8b9c 100644 --- a/app/client.php +++ b/app/client.php @@ -109,8 +109,8 @@ $cli ->task('version') ->action(function() { - Console::log('CLI Version : 0.11.0'); - Console::log('Server Version : 0.9.0'); + Console::log('CLI Version : 0.12.0'); + Console::log('Server Version : 0.10.0'); }); diff --git a/app/teams.php b/app/teams.php index 663bfc4..6a5606f 100644 --- a/app/teams.php +++ b/app/teams.php @@ -173,9 +173,9 @@ $cli ->task('createMembership') - ->label('description', "Use this endpoint to invite a new member to join your team. An email with a link to join the team will be sent to the new member email address if the member doesn't exist in the project it will be created automatically. + ->label('description', "Use this endpoint to invite a new member to join your team. If initiated from Client SDK, an email with a link to join the team will be sent to the new member's email address if the member doesn't exist in the project it will be created automatically. If initiated from server side SDKs, new member will automatically be added to the team. -Use the 'URL' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](/docs/client/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. +Use the 'URL' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](/docs/client/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. While calling from side SDKs the redirect url can be empty string. Please note that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.\n\n") ->param('teamId', '' , new Wildcard() , 'Team unique ID.', false) @@ -290,9 +290,9 @@ "update" => "Update a team by its unique ID. Only team owners have write access for this resource.", "delete" => "Delete a team by its unique ID. Only team owners have write access for this resource.", "getMemberships" => "Get a team members by the team unique ID. All team members have read access for this list of resources.", - "createMembership" => "Use this endpoint to invite a new member to join your team. An email with a link to join the team will be sent to the new member email address if the member doesn't exist in the project it will be created automatically. + "createMembership" => "Use this endpoint to invite a new member to join your team. If initiated from Client SDK, an email with a link to join the team will be sent to the new member's email address if the member doesn't exist in the project it will be created automatically. If initiated from server side SDKs, new member will automatically be added to the team. -Use the 'URL' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](/docs/client/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. +Use the 'URL' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](/docs/client/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team. While calling from side SDKs the redirect url can be empty string. Please note that in order to avoid a [Redirect Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URL's are the once from domains you have set when added your platforms in the console interface.", "updateMembershipRoles" => "", diff --git a/app/users.php b/app/users.php index e7cd8e4..a42f76f 100644 --- a/app/users.php +++ b/app/users.php @@ -125,6 +125,26 @@ $parser->parseResponse($response); }); +$cli + ->task('updateEmail') + ->label('description', "Update the user email by its unique ID.\n\n") + ->param('userId', '' , new Wildcard() , 'User unique ID.', false) + ->param('email', '' , new Wildcard() , 'User email.', false) + ->action(function ( $userId, $email ) use ($parser) { + /** @var string $userId */ + /** @var string $email */ + + $client = new Client(); + $path = str_replace(['{userId}'], [$userId], '/users/{userId}/email'); + $params = []; + /** Body Params */ + $params['email'] = $email; + $response = $client->call(Client::METHOD_PATCH, $path, [ + 'content-type' => 'application/json', + ], $params); + $parser->parseResponse($response); + }); + $cli ->task('getLogs') ->label('description', "Get a user activity logs list by its unique ID.\n\n") @@ -141,6 +161,46 @@ $parser->parseResponse($response); }); +$cli + ->task('updateName') + ->label('description', "Update the user name by its unique ID.\n\n") + ->param('userId', '' , new Wildcard() , 'User unique ID.', false) + ->param('name', '' , new Wildcard() , 'User name. Max length: 128 chars.', false) + ->action(function ( $userId, $name ) use ($parser) { + /** @var string $userId */ + /** @var string $name */ + + $client = new Client(); + $path = str_replace(['{userId}'], [$userId], '/users/{userId}/name'); + $params = []; + /** Body Params */ + $params['name'] = $name; + $response = $client->call(Client::METHOD_PATCH, $path, [ + 'content-type' => 'application/json', + ], $params); + $parser->parseResponse($response); + }); + +$cli + ->task('updatePassword') + ->label('description', "Update the user password by its unique ID.\n\n") + ->param('userId', '' , new Wildcard() , 'User unique ID.', false) + ->param('password', '' , new Wildcard() , 'New user password. Must be between 6 to 32 chars.', false) + ->action(function ( $userId, $password ) use ($parser) { + /** @var string $userId */ + /** @var string $password */ + + $client = new Client(); + $path = str_replace(['{userId}'], [$userId], '/users/{userId}/password'); + $params = []; + /** Body Params */ + $params['password'] = $password; + $response = $client->call(Client::METHOD_PATCH, $path, [ + 'content-type' => 'application/json', + ], $params); + $parser->parseResponse($response); + }); + $cli ->task('getPrefs') ->label('description', "Get the user preferences by its unique ID.\n\n") @@ -286,7 +346,10 @@ "create" => "Create a new user.", "get" => "Get a user by its unique ID.", "delete" => "Delete a user by its unique ID.", + "updateEmail" => "Update the user email by its unique ID.", "getLogs" => "Get a user activity logs list by its unique ID.", + "updateName" => "Update the user name by its unique ID.", + "updatePassword" => "Update the user password by its unique ID.", "getPrefs" => "Get the user preferences by its unique ID.", "updatePrefs" => "Update the user preferences by its unique ID. You can pass only the specific settings you wish to update.", "getSessions" => "Get the user sessions list by its unique ID.", diff --git a/docs/examples/account/create-recovery.md b/docs/examples/account/create-recovery.md index c241c27..f35a433 100644 --- a/docs/examples/account/create-recovery.md +++ b/docs/examples/account/create-recovery.md @@ -1 +1,3 @@ -appwrite account createRecovery --email="email@example.com" --url="https://example.com" \ No newline at end of file +appwrite account createRecovery \ + --email="email@example.com" \ + --url="https://example.com" diff --git a/docs/examples/account/create-verification.md b/docs/examples/account/create-verification.md index 2533119..d3c8955 100644 --- a/docs/examples/account/create-verification.md +++ b/docs/examples/account/create-verification.md @@ -1 +1,2 @@ -appwrite account createVerification --url="https://example.com" \ No newline at end of file +appwrite account createVerification \ + --url="https://example.com" diff --git a/docs/examples/account/delete-session.md b/docs/examples/account/delete-session.md index a992f34..f615bbb 100644 --- a/docs/examples/account/delete-session.md +++ b/docs/examples/account/delete-session.md @@ -1 +1,2 @@ -appwrite account deleteSession --sessionId="[SESSION_ID]" \ No newline at end of file +appwrite account deleteSession \ + --sessionId="[SESSION_ID]" diff --git a/docs/examples/account/delete-sessions.md b/docs/examples/account/delete-sessions.md index f7b1645..dd11877 100644 --- a/docs/examples/account/delete-sessions.md +++ b/docs/examples/account/delete-sessions.md @@ -1 +1 @@ -appwrite account deleteSessions \ No newline at end of file +appwrite account deleteSessions diff --git a/docs/examples/account/delete.md b/docs/examples/account/delete.md index 833cccd..dac412f 100644 --- a/docs/examples/account/delete.md +++ b/docs/examples/account/delete.md @@ -1 +1 @@ -appwrite account delete \ No newline at end of file +appwrite account delete diff --git a/docs/examples/account/get-logs.md b/docs/examples/account/get-logs.md index 4edd9a9..e50c3ca 100644 --- a/docs/examples/account/get-logs.md +++ b/docs/examples/account/get-logs.md @@ -1 +1 @@ -appwrite account getLogs \ No newline at end of file +appwrite account getLogs diff --git a/docs/examples/account/get-prefs.md b/docs/examples/account/get-prefs.md index d59515a..6569925 100644 --- a/docs/examples/account/get-prefs.md +++ b/docs/examples/account/get-prefs.md @@ -1 +1 @@ -appwrite account getPrefs \ No newline at end of file +appwrite account getPrefs diff --git a/docs/examples/account/get-session.md b/docs/examples/account/get-session.md index 2326cd8..0b5a4f2 100644 --- a/docs/examples/account/get-session.md +++ b/docs/examples/account/get-session.md @@ -1 +1,2 @@ -appwrite account getSession --sessionId="[SESSION_ID]" \ No newline at end of file +appwrite account getSession \ + --sessionId="[SESSION_ID]" diff --git a/docs/examples/account/get-sessions.md b/docs/examples/account/get-sessions.md index f75c3eb..cdf2d2b 100644 --- a/docs/examples/account/get-sessions.md +++ b/docs/examples/account/get-sessions.md @@ -1 +1 @@ -appwrite account getSessions \ No newline at end of file +appwrite account getSessions diff --git a/docs/examples/account/get.md b/docs/examples/account/get.md index 12cdfd9..c8b46e3 100644 --- a/docs/examples/account/get.md +++ b/docs/examples/account/get.md @@ -1 +1 @@ -appwrite account get \ No newline at end of file +appwrite account get diff --git a/docs/examples/account/update-email.md b/docs/examples/account/update-email.md index f3cfb31..9c27324 100644 --- a/docs/examples/account/update-email.md +++ b/docs/examples/account/update-email.md @@ -1 +1,3 @@ -appwrite account updateEmail --email="email@example.com" --password="password" \ No newline at end of file +appwrite account updateEmail \ + --email="email@example.com" \ + --password="password" diff --git a/docs/examples/account/update-name.md b/docs/examples/account/update-name.md index 4887590..64890ae 100644 --- a/docs/examples/account/update-name.md +++ b/docs/examples/account/update-name.md @@ -1 +1,2 @@ -appwrite account updateName --name="[NAME]" \ No newline at end of file +appwrite account updateName \ + --name="[NAME]" diff --git a/docs/examples/account/update-password.md b/docs/examples/account/update-password.md index 53f36a0..51ebdd4 100644 --- a/docs/examples/account/update-password.md +++ b/docs/examples/account/update-password.md @@ -1 +1,3 @@ -appwrite account updatePassword --password="password" --oldPassword="password" \ No newline at end of file +appwrite account updatePassword \ + --password="password" \ + --oldPassword="password" diff --git a/docs/examples/account/update-prefs.md b/docs/examples/account/update-prefs.md index 58a8718..acc0e8e 100644 --- a/docs/examples/account/update-prefs.md +++ b/docs/examples/account/update-prefs.md @@ -1 +1,2 @@ -appwrite account updatePrefs --prefs="{}" \ No newline at end of file +appwrite account updatePrefs \ + --prefs="{}" diff --git a/docs/examples/account/update-recovery.md b/docs/examples/account/update-recovery.md index 0226ea7..04f09b9 100644 --- a/docs/examples/account/update-recovery.md +++ b/docs/examples/account/update-recovery.md @@ -1 +1,5 @@ -appwrite account updateRecovery --userId="[USER_ID]" --secret="[SECRET]" --password="password" --passwordAgain="password" \ No newline at end of file +appwrite account updateRecovery \ + --userId="[USER_ID]" \ + --secret="[SECRET]" \ + --password="password" \ + --passwordAgain="password" diff --git a/docs/examples/account/update-verification.md b/docs/examples/account/update-verification.md index 2d84267..2315619 100644 --- a/docs/examples/account/update-verification.md +++ b/docs/examples/account/update-verification.md @@ -1 +1,3 @@ -appwrite account updateVerification --userId="[USER_ID]" --secret="[SECRET]" \ No newline at end of file +appwrite account updateVerification \ + --userId="[USER_ID]" \ + --secret="[SECRET]" diff --git a/docs/examples/avatars/get-browser.md b/docs/examples/avatars/get-browser.md index 8582e55..d2d0f28 100644 --- a/docs/examples/avatars/get-browser.md +++ b/docs/examples/avatars/get-browser.md @@ -1 +1,5 @@ -appwrite avatars getBrowser --code="aa" --width="0" --height="0" --quality="0" \ No newline at end of file +appwrite avatars getBrowser \ + --code="aa" \ + --width="0" \ + --height="0" \ + --quality="0" diff --git a/docs/examples/avatars/get-credit-card.md b/docs/examples/avatars/get-credit-card.md index 3a7ae5b..a8e6cbd 100644 --- a/docs/examples/avatars/get-credit-card.md +++ b/docs/examples/avatars/get-credit-card.md @@ -1 +1,5 @@ -appwrite avatars getCreditCard --code="amex" --width="0" --height="0" --quality="0" \ No newline at end of file +appwrite avatars getCreditCard \ + --code="amex" \ + --width="0" \ + --height="0" \ + --quality="0" diff --git a/docs/examples/avatars/get-favicon.md b/docs/examples/avatars/get-favicon.md index 76a0b80..8cafa71 100644 --- a/docs/examples/avatars/get-favicon.md +++ b/docs/examples/avatars/get-favicon.md @@ -1 +1,2 @@ -appwrite avatars getFavicon --url="https://example.com" \ No newline at end of file +appwrite avatars getFavicon \ + --url="https://example.com" diff --git a/docs/examples/avatars/get-flag.md b/docs/examples/avatars/get-flag.md index fb3e0c7..44c69ae 100644 --- a/docs/examples/avatars/get-flag.md +++ b/docs/examples/avatars/get-flag.md @@ -1 +1,5 @@ -appwrite avatars getFlag --code="af" --width="0" --height="0" --quality="0" \ No newline at end of file +appwrite avatars getFlag \ + --code="af" \ + --width="0" \ + --height="0" \ + --quality="0" diff --git a/docs/examples/avatars/get-image.md b/docs/examples/avatars/get-image.md index 6e5df2d..2c7485e 100644 --- a/docs/examples/avatars/get-image.md +++ b/docs/examples/avatars/get-image.md @@ -1 +1,4 @@ -appwrite avatars getImage --url="https://example.com" --width="0" --height="0" \ No newline at end of file +appwrite avatars getImage \ + --url="https://example.com" \ + --width="0" \ + --height="0" diff --git a/docs/examples/avatars/get-initials.md b/docs/examples/avatars/get-initials.md index 33e115d..8370da3 100644 --- a/docs/examples/avatars/get-initials.md +++ b/docs/examples/avatars/get-initials.md @@ -1 +1,6 @@ -appwrite avatars getInitials --name="[NAME]" --width="0" --height="0" --color="" --background="" \ No newline at end of file +appwrite avatars getInitials \ + --name="[NAME]" \ + --width="0" \ + --height="0" \ + --color="" \ + --background="" diff --git a/docs/examples/avatars/get-q-r.md b/docs/examples/avatars/get-q-r.md index 4a611af..b9215dc 100644 --- a/docs/examples/avatars/get-q-r.md +++ b/docs/examples/avatars/get-q-r.md @@ -1 +1,5 @@ -appwrite avatars getQR --text="[TEXT]" --size="0" --margin="0" --download="" \ No newline at end of file +appwrite avatars getQR \ + --text="[TEXT]" \ + --size="0" \ + --margin="0" \ + --download="" diff --git a/docs/examples/database/create-collection.md b/docs/examples/database/create-collection.md index 0812e05..fd4504b 100644 --- a/docs/examples/database/create-collection.md +++ b/docs/examples/database/create-collection.md @@ -1 +1,5 @@ -appwrite database createCollection --name="[NAME]" --read="" --write="" --rules="" \ No newline at end of file +appwrite database createCollection \ + --name="[NAME]" \ + --read="" \ + --write="" \ + --rules="" diff --git a/docs/examples/database/create-document.md b/docs/examples/database/create-document.md index 038fd02..5f22d4a 100644 --- a/docs/examples/database/create-document.md +++ b/docs/examples/database/create-document.md @@ -1 +1,8 @@ -appwrite database createDocument --collectionId="[COLLECTION_ID]" --data="{}" --read="" --write="" --parentDocument="[PARENT_DOCUMENT]" --parentProperty="" --parentPropertyType="assign" \ No newline at end of file +appwrite database createDocument \ + --collectionId="[COLLECTION_ID]" \ + --data="{}" \ + --read="" \ + --write="" \ + --parentDocument="[PARENT_DOCUMENT]" \ + --parentProperty="" \ + --parentPropertyType="assign" diff --git a/docs/examples/database/delete-collection.md b/docs/examples/database/delete-collection.md index 80b86c9..3c36349 100644 --- a/docs/examples/database/delete-collection.md +++ b/docs/examples/database/delete-collection.md @@ -1 +1,2 @@ -appwrite database deleteCollection --collectionId="[COLLECTION_ID]" \ No newline at end of file +appwrite database deleteCollection \ + --collectionId="[COLLECTION_ID]" diff --git a/docs/examples/database/delete-document.md b/docs/examples/database/delete-document.md index eea04ee..24b8518 100644 --- a/docs/examples/database/delete-document.md +++ b/docs/examples/database/delete-document.md @@ -1 +1,3 @@ -appwrite database deleteDocument --collectionId="[COLLECTION_ID]" --documentId="[DOCUMENT_ID]" \ No newline at end of file +appwrite database deleteDocument \ + --collectionId="[COLLECTION_ID]" \ + --documentId="[DOCUMENT_ID]" diff --git a/docs/examples/database/get-collection.md b/docs/examples/database/get-collection.md index 4998df1..e7a1569 100644 --- a/docs/examples/database/get-collection.md +++ b/docs/examples/database/get-collection.md @@ -1 +1,2 @@ -appwrite database getCollection --collectionId="[COLLECTION_ID]" \ No newline at end of file +appwrite database getCollection \ + --collectionId="[COLLECTION_ID]" diff --git a/docs/examples/database/get-document.md b/docs/examples/database/get-document.md index c123992..32431ff 100644 --- a/docs/examples/database/get-document.md +++ b/docs/examples/database/get-document.md @@ -1 +1,3 @@ -appwrite database getDocument --collectionId="[COLLECTION_ID]" --documentId="[DOCUMENT_ID]" \ No newline at end of file +appwrite database getDocument \ + --collectionId="[COLLECTION_ID]" \ + --documentId="[DOCUMENT_ID]" diff --git a/docs/examples/database/list-collections.md b/docs/examples/database/list-collections.md index 4e0c1fe..b5cbb99 100644 --- a/docs/examples/database/list-collections.md +++ b/docs/examples/database/list-collections.md @@ -1 +1,5 @@ -appwrite database listCollections --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file +appwrite database listCollections \ + --search="[SEARCH]" \ + --limit="0" \ + --offset="0" \ + --orderType="ASC" diff --git a/docs/examples/database/list-documents.md b/docs/examples/database/list-documents.md index 716d312..6114821 100644 --- a/docs/examples/database/list-documents.md +++ b/docs/examples/database/list-documents.md @@ -1 +1,9 @@ -appwrite database listDocuments --collectionId="[COLLECTION_ID]" --filters="" --limit="0" --offset="0" --orderField="[ORDER_FIELD]" --orderType="DESC" --orderCast="int" --search="[SEARCH]" \ No newline at end of file +appwrite database listDocuments \ + --collectionId="[COLLECTION_ID]" \ + --filters="" \ + --limit="0" \ + --offset="0" \ + --orderField="[ORDER_FIELD]" \ + --orderType="DESC" \ + --orderCast="int" \ + --search="[SEARCH]" diff --git a/docs/examples/database/update-collection.md b/docs/examples/database/update-collection.md index 30ce193..510c4a5 100644 --- a/docs/examples/database/update-collection.md +++ b/docs/examples/database/update-collection.md @@ -1 +1,6 @@ -appwrite database updateCollection --collectionId="[COLLECTION_ID]" --name="[NAME]" --read="" --write="" --rules="" \ No newline at end of file +appwrite database updateCollection \ + --collectionId="[COLLECTION_ID]" \ + --name="[NAME]" \ + --read="" \ + --write="" \ + --rules="" diff --git a/docs/examples/database/update-document.md b/docs/examples/database/update-document.md index 2ddf035..f449d09 100644 --- a/docs/examples/database/update-document.md +++ b/docs/examples/database/update-document.md @@ -1 +1,6 @@ -appwrite database updateDocument --collectionId="[COLLECTION_ID]" --documentId="[DOCUMENT_ID]" --data="{}" --read="" --write="" \ No newline at end of file +appwrite database updateDocument \ + --collectionId="[COLLECTION_ID]" \ + --documentId="[DOCUMENT_ID]" \ + --data="{}" \ + --read="" \ + --write="" diff --git a/docs/examples/functions/create-execution.md b/docs/examples/functions/create-execution.md index 83bd8dd..d13262d 100644 --- a/docs/examples/functions/create-execution.md +++ b/docs/examples/functions/create-execution.md @@ -1 +1,3 @@ -appwrite functions createExecution --functionId="[FUNCTION_ID]" --data="[DATA]" \ No newline at end of file +appwrite functions createExecution \ + --functionId="[FUNCTION_ID]" \ + --data="[DATA]" diff --git a/docs/examples/functions/create-tag.md b/docs/examples/functions/create-tag.md index 142101d..4bd309c 100644 --- a/docs/examples/functions/create-tag.md +++ b/docs/examples/functions/create-tag.md @@ -1 +1,4 @@ -appwrite functions createTag --functionId="[FUNCTION_ID]" --command="[COMMAND]" --code="" \ No newline at end of file +appwrite functions createTag \ + --functionId="[FUNCTION_ID]" \ + --command="[COMMAND]" \ + --code="" diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index eb9fd4e..e8cd43e 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -1 +1,8 @@ -appwrite functions create --name="[NAME]" --execute="" --runtime="java-11.0" --vars="{}" --events="" --schedule="" --timeout="1" \ No newline at end of file +appwrite functions create \ + --name="[NAME]" \ + --execute="" \ + --runtime="dotnet-5.0" \ + --vars="{}" \ + --events="" \ + --schedule="" \ + --timeout="1" diff --git a/docs/examples/functions/delete-tag.md b/docs/examples/functions/delete-tag.md index e5d26de..c4bca03 100644 --- a/docs/examples/functions/delete-tag.md +++ b/docs/examples/functions/delete-tag.md @@ -1 +1,3 @@ -appwrite functions deleteTag --functionId="[FUNCTION_ID]" --tagId="[TAG_ID]" \ No newline at end of file +appwrite functions deleteTag \ + --functionId="[FUNCTION_ID]" \ + --tagId="[TAG_ID]" diff --git a/docs/examples/functions/delete.md b/docs/examples/functions/delete.md index dc98427..f05bb7d 100644 --- a/docs/examples/functions/delete.md +++ b/docs/examples/functions/delete.md @@ -1 +1,2 @@ -appwrite functions delete --functionId="[FUNCTION_ID]" \ No newline at end of file +appwrite functions delete \ + --functionId="[FUNCTION_ID]" diff --git a/docs/examples/functions/get-execution.md b/docs/examples/functions/get-execution.md index a1abfee..33b149b 100644 --- a/docs/examples/functions/get-execution.md +++ b/docs/examples/functions/get-execution.md @@ -1 +1,3 @@ -appwrite functions getExecution --functionId="[FUNCTION_ID]" --executionId="[EXECUTION_ID]" \ No newline at end of file +appwrite functions getExecution \ + --functionId="[FUNCTION_ID]" \ + --executionId="[EXECUTION_ID]" diff --git a/docs/examples/functions/get-tag.md b/docs/examples/functions/get-tag.md index 8d99bf1..769d709 100644 --- a/docs/examples/functions/get-tag.md +++ b/docs/examples/functions/get-tag.md @@ -1 +1,3 @@ -appwrite functions getTag --functionId="[FUNCTION_ID]" --tagId="[TAG_ID]" \ No newline at end of file +appwrite functions getTag \ + --functionId="[FUNCTION_ID]" \ + --tagId="[TAG_ID]" diff --git a/docs/examples/functions/get.md b/docs/examples/functions/get.md index bf1374a..44bb0f0 100644 --- a/docs/examples/functions/get.md +++ b/docs/examples/functions/get.md @@ -1 +1,2 @@ -appwrite functions get --functionId="[FUNCTION_ID]" \ No newline at end of file +appwrite functions get \ + --functionId="[FUNCTION_ID]" diff --git a/docs/examples/functions/list-executions.md b/docs/examples/functions/list-executions.md index 0894620..addc289 100644 --- a/docs/examples/functions/list-executions.md +++ b/docs/examples/functions/list-executions.md @@ -1 +1,6 @@ -appwrite functions listExecutions --functionId="[FUNCTION_ID]" --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file +appwrite functions listExecutions \ + --functionId="[FUNCTION_ID]" \ + --search="[SEARCH]" \ + --limit="0" \ + --offset="0" \ + --orderType="ASC" diff --git a/docs/examples/functions/list-tags.md b/docs/examples/functions/list-tags.md index 7dde13b..773b83a 100644 --- a/docs/examples/functions/list-tags.md +++ b/docs/examples/functions/list-tags.md @@ -1 +1,6 @@ -appwrite functions listTags --functionId="[FUNCTION_ID]" --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file +appwrite functions listTags \ + --functionId="[FUNCTION_ID]" \ + --search="[SEARCH]" \ + --limit="0" \ + --offset="0" \ + --orderType="ASC" diff --git a/docs/examples/functions/list.md b/docs/examples/functions/list.md index 57db25b..23db398 100644 --- a/docs/examples/functions/list.md +++ b/docs/examples/functions/list.md @@ -1 +1,5 @@ -appwrite functions list --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file +appwrite functions list \ + --search="[SEARCH]" \ + --limit="0" \ + --offset="0" \ + --orderType="ASC" diff --git a/docs/examples/functions/update-tag.md b/docs/examples/functions/update-tag.md index 98cf2cb..246b6f3 100644 --- a/docs/examples/functions/update-tag.md +++ b/docs/examples/functions/update-tag.md @@ -1 +1,3 @@ -appwrite functions updateTag --functionId="[FUNCTION_ID]" --tag="[TAG]" \ No newline at end of file +appwrite functions updateTag \ + --functionId="[FUNCTION_ID]" \ + --tag="[TAG]" diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index ee574f0..b59d2de 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -1 +1,8 @@ -appwrite functions update --functionId="[FUNCTION_ID]" --name="[NAME]" --execute="" --vars="{}" --events="" --schedule="" --timeout="1" \ No newline at end of file +appwrite functions update \ + --functionId="[FUNCTION_ID]" \ + --name="[NAME]" \ + --execute="" \ + --vars="{}" \ + --events="" \ + --schedule="" \ + --timeout="1" diff --git a/docs/examples/health/get-anti-virus.md b/docs/examples/health/get-anti-virus.md index 909fce4..744e8b3 100644 --- a/docs/examples/health/get-anti-virus.md +++ b/docs/examples/health/get-anti-virus.md @@ -1 +1 @@ -appwrite health getAntiVirus \ No newline at end of file +appwrite health getAntiVirus diff --git a/docs/examples/health/get-cache.md b/docs/examples/health/get-cache.md index 01da772..ad1111c 100644 --- a/docs/examples/health/get-cache.md +++ b/docs/examples/health/get-cache.md @@ -1 +1 @@ -appwrite health getCache \ No newline at end of file +appwrite health getCache diff --git a/docs/examples/health/get-d-b.md b/docs/examples/health/get-d-b.md index 1d9f0b8..b0ea2d3 100644 --- a/docs/examples/health/get-d-b.md +++ b/docs/examples/health/get-d-b.md @@ -1 +1 @@ -appwrite health getDB \ No newline at end of file +appwrite health getDB diff --git a/docs/examples/health/get-queue-certificates.md b/docs/examples/health/get-queue-certificates.md index 5a7e78d..7cae239 100644 --- a/docs/examples/health/get-queue-certificates.md +++ b/docs/examples/health/get-queue-certificates.md @@ -1 +1 @@ -appwrite health getQueueCertificates \ No newline at end of file +appwrite health getQueueCertificates diff --git a/docs/examples/health/get-queue-functions.md b/docs/examples/health/get-queue-functions.md index 899afe2..9edfdda 100644 --- a/docs/examples/health/get-queue-functions.md +++ b/docs/examples/health/get-queue-functions.md @@ -1 +1 @@ -appwrite health getQueueFunctions \ No newline at end of file +appwrite health getQueueFunctions diff --git a/docs/examples/health/get-queue-logs.md b/docs/examples/health/get-queue-logs.md index 3a9475b..9a09749 100644 --- a/docs/examples/health/get-queue-logs.md +++ b/docs/examples/health/get-queue-logs.md @@ -1 +1 @@ -appwrite health getQueueLogs \ No newline at end of file +appwrite health getQueueLogs diff --git a/docs/examples/health/get-queue-tasks.md b/docs/examples/health/get-queue-tasks.md index 7014052..47bf2a3 100644 --- a/docs/examples/health/get-queue-tasks.md +++ b/docs/examples/health/get-queue-tasks.md @@ -1 +1 @@ -appwrite health getQueueTasks \ No newline at end of file +appwrite health getQueueTasks diff --git a/docs/examples/health/get-queue-usage.md b/docs/examples/health/get-queue-usage.md index 0ae52fd..668eb76 100644 --- a/docs/examples/health/get-queue-usage.md +++ b/docs/examples/health/get-queue-usage.md @@ -1 +1 @@ -appwrite health getQueueUsage \ No newline at end of file +appwrite health getQueueUsage diff --git a/docs/examples/health/get-queue-webhooks.md b/docs/examples/health/get-queue-webhooks.md index 3778c07..f38eaa4 100644 --- a/docs/examples/health/get-queue-webhooks.md +++ b/docs/examples/health/get-queue-webhooks.md @@ -1 +1 @@ -appwrite health getQueueWebhooks \ No newline at end of file +appwrite health getQueueWebhooks diff --git a/docs/examples/health/get-storage-local.md b/docs/examples/health/get-storage-local.md index 6afeb24..b5df39f 100644 --- a/docs/examples/health/get-storage-local.md +++ b/docs/examples/health/get-storage-local.md @@ -1 +1 @@ -appwrite health getStorageLocal \ No newline at end of file +appwrite health getStorageLocal diff --git a/docs/examples/health/get-time.md b/docs/examples/health/get-time.md index dc3ddf9..067e5da 100644 --- a/docs/examples/health/get-time.md +++ b/docs/examples/health/get-time.md @@ -1 +1 @@ -appwrite health getTime \ No newline at end of file +appwrite health getTime diff --git a/docs/examples/health/get.md b/docs/examples/health/get.md index 3893cdc..94c08e5 100644 --- a/docs/examples/health/get.md +++ b/docs/examples/health/get.md @@ -1 +1 @@ -appwrite health get \ No newline at end of file +appwrite health get diff --git a/docs/examples/locale/get-continents.md b/docs/examples/locale/get-continents.md index e5d5f04..ff7f1ae 100644 --- a/docs/examples/locale/get-continents.md +++ b/docs/examples/locale/get-continents.md @@ -1 +1 @@ -appwrite locale getContinents \ No newline at end of file +appwrite locale getContinents diff --git a/docs/examples/locale/get-countries-e-u.md b/docs/examples/locale/get-countries-e-u.md index 0ad5887..8ecd92f 100644 --- a/docs/examples/locale/get-countries-e-u.md +++ b/docs/examples/locale/get-countries-e-u.md @@ -1 +1 @@ -appwrite locale getCountriesEU \ No newline at end of file +appwrite locale getCountriesEU diff --git a/docs/examples/locale/get-countries-phones.md b/docs/examples/locale/get-countries-phones.md index 5129fc1..6be8410 100644 --- a/docs/examples/locale/get-countries-phones.md +++ b/docs/examples/locale/get-countries-phones.md @@ -1 +1 @@ -appwrite locale getCountriesPhones \ No newline at end of file +appwrite locale getCountriesPhones diff --git a/docs/examples/locale/get-countries.md b/docs/examples/locale/get-countries.md index 57d3364..f2a4a4d 100644 --- a/docs/examples/locale/get-countries.md +++ b/docs/examples/locale/get-countries.md @@ -1 +1 @@ -appwrite locale getCountries \ No newline at end of file +appwrite locale getCountries diff --git a/docs/examples/locale/get-currencies.md b/docs/examples/locale/get-currencies.md index 77626e4..b43f11f 100644 --- a/docs/examples/locale/get-currencies.md +++ b/docs/examples/locale/get-currencies.md @@ -1 +1 @@ -appwrite locale getCurrencies \ No newline at end of file +appwrite locale getCurrencies diff --git a/docs/examples/locale/get-languages.md b/docs/examples/locale/get-languages.md index 763d986..86ab713 100644 --- a/docs/examples/locale/get-languages.md +++ b/docs/examples/locale/get-languages.md @@ -1 +1 @@ -appwrite locale getLanguages \ No newline at end of file +appwrite locale getLanguages diff --git a/docs/examples/locale/get.md b/docs/examples/locale/get.md index ece703a..2002a06 100644 --- a/docs/examples/locale/get.md +++ b/docs/examples/locale/get.md @@ -1 +1 @@ -appwrite locale get \ No newline at end of file +appwrite locale get diff --git a/docs/examples/storage/create-file.md b/docs/examples/storage/create-file.md index c17f8ff..e68e802 100644 --- a/docs/examples/storage/create-file.md +++ b/docs/examples/storage/create-file.md @@ -1 +1,4 @@ -appwrite storage createFile --file="" --read="" --write="" \ No newline at end of file +appwrite storage createFile \ + --file="" \ + --read="" \ + --write="" diff --git a/docs/examples/storage/delete-file.md b/docs/examples/storage/delete-file.md index c283465..ecc8eba 100644 --- a/docs/examples/storage/delete-file.md +++ b/docs/examples/storage/delete-file.md @@ -1 +1,2 @@ -appwrite storage deleteFile --fileId="[FILE_ID]" \ No newline at end of file +appwrite storage deleteFile \ + --fileId="[FILE_ID]" diff --git a/docs/examples/storage/get-file-download.md b/docs/examples/storage/get-file-download.md index d12c1a5..230eb55 100644 --- a/docs/examples/storage/get-file-download.md +++ b/docs/examples/storage/get-file-download.md @@ -1 +1,2 @@ -appwrite storage getFileDownload --fileId="[FILE_ID]" \ No newline at end of file +appwrite storage getFileDownload \ + --fileId="[FILE_ID]" diff --git a/docs/examples/storage/get-file-preview.md b/docs/examples/storage/get-file-preview.md index ebbccd7..d87763b 100644 --- a/docs/examples/storage/get-file-preview.md +++ b/docs/examples/storage/get-file-preview.md @@ -1 +1,13 @@ -appwrite storage getFilePreview --fileId="[FILE_ID]" --width="0" --height="0" --gravity="center" --quality="0" --borderWidth="0" --borderColor="" --borderRadius="0" --opacity="0" --rotation="0" --background="" --output="jpg" \ No newline at end of file +appwrite storage getFilePreview \ + --fileId="[FILE_ID]" \ + --width="0" \ + --height="0" \ + --gravity="center" \ + --quality="0" \ + --borderWidth="0" \ + --borderColor="" \ + --borderRadius="0" \ + --opacity="0" \ + --rotation="0" \ + --background="" \ + --output="jpg" diff --git a/docs/examples/storage/get-file-view.md b/docs/examples/storage/get-file-view.md index 0e6ad00..f12850a 100644 --- a/docs/examples/storage/get-file-view.md +++ b/docs/examples/storage/get-file-view.md @@ -1 +1,2 @@ -appwrite storage getFileView --fileId="[FILE_ID]" \ No newline at end of file +appwrite storage getFileView \ + --fileId="[FILE_ID]" diff --git a/docs/examples/storage/get-file.md b/docs/examples/storage/get-file.md index aa77084..6861d99 100644 --- a/docs/examples/storage/get-file.md +++ b/docs/examples/storage/get-file.md @@ -1 +1,2 @@ -appwrite storage getFile --fileId="[FILE_ID]" \ No newline at end of file +appwrite storage getFile \ + --fileId="[FILE_ID]" diff --git a/docs/examples/storage/list-files.md b/docs/examples/storage/list-files.md index 414f11c..67df528 100644 --- a/docs/examples/storage/list-files.md +++ b/docs/examples/storage/list-files.md @@ -1 +1,5 @@ -appwrite storage listFiles --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file +appwrite storage listFiles \ + --search="[SEARCH]" \ + --limit="0" \ + --offset="0" \ + --orderType="ASC" diff --git a/docs/examples/storage/update-file.md b/docs/examples/storage/update-file.md index 76c2f81..185df74 100644 --- a/docs/examples/storage/update-file.md +++ b/docs/examples/storage/update-file.md @@ -1 +1,4 @@ -appwrite storage updateFile --fileId="[FILE_ID]" --read="" --write="" \ No newline at end of file +appwrite storage updateFile \ + --fileId="[FILE_ID]" \ + --read="" \ + --write="" diff --git a/docs/examples/teams/create-membership.md b/docs/examples/teams/create-membership.md index 9237e1b..1e05cf8 100644 --- a/docs/examples/teams/create-membership.md +++ b/docs/examples/teams/create-membership.md @@ -1 +1,6 @@ -appwrite teams createMembership --teamId="[TEAM_ID]" --email="email@example.com" --roles="" --url="https://example.com" --name="[NAME]" \ No newline at end of file +appwrite teams createMembership \ + --teamId="[TEAM_ID]" \ + --email="email@example.com" \ + --roles="" \ + --url="https://example.com" \ + --name="[NAME]" diff --git a/docs/examples/teams/create.md b/docs/examples/teams/create.md index b110aa3..59dd9a1 100644 --- a/docs/examples/teams/create.md +++ b/docs/examples/teams/create.md @@ -1 +1,3 @@ -appwrite teams create --name="[NAME]" --roles="" \ No newline at end of file +appwrite teams create \ + --name="[NAME]" \ + --roles="" diff --git a/docs/examples/teams/delete-membership.md b/docs/examples/teams/delete-membership.md index 8181ff1..f3b36a6 100644 --- a/docs/examples/teams/delete-membership.md +++ b/docs/examples/teams/delete-membership.md @@ -1 +1,3 @@ -appwrite teams deleteMembership --teamId="[TEAM_ID]" --membershipId="[MEMBERSHIP_ID]" \ No newline at end of file +appwrite teams deleteMembership \ + --teamId="[TEAM_ID]" \ + --membershipId="[MEMBERSHIP_ID]" diff --git a/docs/examples/teams/delete.md b/docs/examples/teams/delete.md index 5c0ba25..14a5388 100644 --- a/docs/examples/teams/delete.md +++ b/docs/examples/teams/delete.md @@ -1 +1,2 @@ -appwrite teams delete --teamId="[TEAM_ID]" \ No newline at end of file +appwrite teams delete \ + --teamId="[TEAM_ID]" diff --git a/docs/examples/teams/get-memberships.md b/docs/examples/teams/get-memberships.md index 06e464f..dafe834 100644 --- a/docs/examples/teams/get-memberships.md +++ b/docs/examples/teams/get-memberships.md @@ -1 +1,6 @@ -appwrite teams getMemberships --teamId="[TEAM_ID]" --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file +appwrite teams getMemberships \ + --teamId="[TEAM_ID]" \ + --search="[SEARCH]" \ + --limit="0" \ + --offset="0" \ + --orderType="ASC" diff --git a/docs/examples/teams/get.md b/docs/examples/teams/get.md index 76f43d8..6de2aa8 100644 --- a/docs/examples/teams/get.md +++ b/docs/examples/teams/get.md @@ -1 +1,2 @@ -appwrite teams get --teamId="[TEAM_ID]" \ No newline at end of file +appwrite teams get \ + --teamId="[TEAM_ID]" diff --git a/docs/examples/teams/list.md b/docs/examples/teams/list.md index c6feea1..c6c5090 100644 --- a/docs/examples/teams/list.md +++ b/docs/examples/teams/list.md @@ -1 +1,5 @@ -appwrite teams list --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file +appwrite teams list \ + --search="[SEARCH]" \ + --limit="0" \ + --offset="0" \ + --orderType="ASC" diff --git a/docs/examples/teams/update-membership-roles.md b/docs/examples/teams/update-membership-roles.md index 9bce996..2b19a15 100644 --- a/docs/examples/teams/update-membership-roles.md +++ b/docs/examples/teams/update-membership-roles.md @@ -1 +1,4 @@ -appwrite teams updateMembershipRoles --teamId="[TEAM_ID]" --membershipId="[MEMBERSHIP_ID]" --roles="" \ No newline at end of file +appwrite teams updateMembershipRoles \ + --teamId="[TEAM_ID]" \ + --membershipId="[MEMBERSHIP_ID]" \ + --roles="" diff --git a/docs/examples/teams/update-membership-status.md b/docs/examples/teams/update-membership-status.md index b03234b..1da1a74 100644 --- a/docs/examples/teams/update-membership-status.md +++ b/docs/examples/teams/update-membership-status.md @@ -1 +1,5 @@ -appwrite teams updateMembershipStatus --teamId="[TEAM_ID]" --membershipId="[MEMBERSHIP_ID]" --userId="[USER_ID]" --secret="[SECRET]" \ No newline at end of file +appwrite teams updateMembershipStatus \ + --teamId="[TEAM_ID]" \ + --membershipId="[MEMBERSHIP_ID]" \ + --userId="[USER_ID]" \ + --secret="[SECRET]" diff --git a/docs/examples/teams/update.md b/docs/examples/teams/update.md index 5b09b37..3e37907 100644 --- a/docs/examples/teams/update.md +++ b/docs/examples/teams/update.md @@ -1 +1,3 @@ -appwrite teams update --teamId="[TEAM_ID]" --name="[NAME]" \ No newline at end of file +appwrite teams update \ + --teamId="[TEAM_ID]" \ + --name="[NAME]" diff --git a/docs/examples/users/create.md b/docs/examples/users/create.md index e74f1a6..428f5d8 100644 --- a/docs/examples/users/create.md +++ b/docs/examples/users/create.md @@ -1 +1,4 @@ -appwrite users create --email="email@example.com" --password="password" --name="[NAME]" \ No newline at end of file +appwrite users create \ + --email="email@example.com" \ + --password="password" \ + --name="[NAME]" diff --git a/docs/examples/users/delete-session.md b/docs/examples/users/delete-session.md index 6351dd5..e46fb20 100644 --- a/docs/examples/users/delete-session.md +++ b/docs/examples/users/delete-session.md @@ -1 +1,3 @@ -appwrite users deleteSession --userId="[USER_ID]" --sessionId="[SESSION_ID]" \ No newline at end of file +appwrite users deleteSession \ + --userId="[USER_ID]" \ + --sessionId="[SESSION_ID]" diff --git a/docs/examples/users/delete-sessions.md b/docs/examples/users/delete-sessions.md index 8a4b294..c9db0c5 100644 --- a/docs/examples/users/delete-sessions.md +++ b/docs/examples/users/delete-sessions.md @@ -1 +1,2 @@ -appwrite users deleteSessions --userId="[USER_ID]" \ No newline at end of file +appwrite users deleteSessions \ + --userId="[USER_ID]" diff --git a/docs/examples/users/delete.md b/docs/examples/users/delete.md index ff703d9..22b5b16 100644 --- a/docs/examples/users/delete.md +++ b/docs/examples/users/delete.md @@ -1 +1,2 @@ -appwrite users delete --userId="[USER_ID]" \ No newline at end of file +appwrite users delete \ + --userId="[USER_ID]" diff --git a/docs/examples/users/get-logs.md b/docs/examples/users/get-logs.md index 51a419e..c2e1f30 100644 --- a/docs/examples/users/get-logs.md +++ b/docs/examples/users/get-logs.md @@ -1 +1,2 @@ -appwrite users getLogs --userId="[USER_ID]" \ No newline at end of file +appwrite users getLogs \ + --userId="[USER_ID]" diff --git a/docs/examples/users/get-prefs.md b/docs/examples/users/get-prefs.md index 2dcfc3f..7dbfc03 100644 --- a/docs/examples/users/get-prefs.md +++ b/docs/examples/users/get-prefs.md @@ -1 +1,2 @@ -appwrite users getPrefs --userId="[USER_ID]" \ No newline at end of file +appwrite users getPrefs \ + --userId="[USER_ID]" diff --git a/docs/examples/users/get-sessions.md b/docs/examples/users/get-sessions.md index b2ca904..0172a17 100644 --- a/docs/examples/users/get-sessions.md +++ b/docs/examples/users/get-sessions.md @@ -1 +1,2 @@ -appwrite users getSessions --userId="[USER_ID]" \ No newline at end of file +appwrite users getSessions \ + --userId="[USER_ID]" diff --git a/docs/examples/users/get.md b/docs/examples/users/get.md index 7a2ae34..895fd37 100644 --- a/docs/examples/users/get.md +++ b/docs/examples/users/get.md @@ -1 +1,2 @@ -appwrite users get --userId="[USER_ID]" \ No newline at end of file +appwrite users get \ + --userId="[USER_ID]" diff --git a/docs/examples/users/list.md b/docs/examples/users/list.md index 0274387..a8d95ce 100644 --- a/docs/examples/users/list.md +++ b/docs/examples/users/list.md @@ -1 +1,5 @@ -appwrite users list --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file +appwrite users list \ + --search="[SEARCH]" \ + --limit="0" \ + --offset="0" \ + --orderType="ASC" diff --git a/docs/examples/users/update-email.md b/docs/examples/users/update-email.md new file mode 100644 index 0000000..ab0b778 --- /dev/null +++ b/docs/examples/users/update-email.md @@ -0,0 +1,3 @@ +appwrite users updateEmail \ + --userId="[USER_ID]" \ + --email="email@example.com" diff --git a/docs/examples/users/update-name.md b/docs/examples/users/update-name.md new file mode 100644 index 0000000..69da4d5 --- /dev/null +++ b/docs/examples/users/update-name.md @@ -0,0 +1,3 @@ +appwrite users updateName \ + --userId="[USER_ID]" \ + --name="[NAME]" diff --git a/docs/examples/users/update-password.md b/docs/examples/users/update-password.md new file mode 100644 index 0000000..05dc02d --- /dev/null +++ b/docs/examples/users/update-password.md @@ -0,0 +1,3 @@ +appwrite users updatePassword \ + --userId="[USER_ID]" \ + --password="password" diff --git a/docs/examples/users/update-prefs.md b/docs/examples/users/update-prefs.md index bafac2e..b80ae2c 100644 --- a/docs/examples/users/update-prefs.md +++ b/docs/examples/users/update-prefs.md @@ -1 +1,3 @@ -appwrite users updatePrefs --userId="[USER_ID]" --prefs="{}" \ No newline at end of file +appwrite users updatePrefs \ + --userId="[USER_ID]" \ + --prefs="{}" diff --git a/docs/examples/users/update-status.md b/docs/examples/users/update-status.md index 5ab9841..d2cd0c5 100644 --- a/docs/examples/users/update-status.md +++ b/docs/examples/users/update-status.md @@ -1 +1,3 @@ -appwrite users updateStatus --userId="[USER_ID]" --status="1" \ No newline at end of file +appwrite users updateStatus \ + --userId="[USER_ID]" \ + --status="1" diff --git a/docs/examples/users/update-verification.md b/docs/examples/users/update-verification.md index d0d2f6c..569f440 100644 --- a/docs/examples/users/update-verification.md +++ b/docs/examples/users/update-verification.md @@ -1 +1,3 @@ -appwrite users updateVerification --userId="[USER_ID]" --emailVerification="" \ No newline at end of file +appwrite users updateVerification \ + --userId="[USER_ID]" \ + --emailVerification="" diff --git a/install.ps1 b/install.ps1 index 1c02248..9337039 100644 --- a/install.ps1 +++ b/install.ps1 @@ -25,7 +25,7 @@ $APPWRITE_EXECUTABLE_FILEPATH = Join-Path -Path $APPWRITE_INSTALL_DIR -ChildPath $APPWRITE_CLI_IMAGE_NAME = "appwrite/cli" # Appwrite CLI image version -$APPWRITE_CLI_IMAGE_VERSION = "0.11.0" +$APPWRITE_CLI_IMAGE_VERSION = "0.12.0" $APPWRITE_EXECUTABLE_CONTENT = @" `$allowList = 'version', 'help', 'init', 'client' , 'account', 'avatars', 'database', 'functions', 'health', 'locale', 'storage', 'teams', 'users' @@ -38,7 +38,7 @@ if ( -not (`$allowList -contains `$args[0])) { exit 1 } -docker run -i --rm --volume appwrite-cli:/usr/local/code/app/.preferences/ --volume `$pwd``:/usr/local/code/files:rw $APPWRITE_CLI_IMAGE_NAME`:$APPWRITE_CLI_IMAGE_VERSION (`$args | % {[uri]::EscapeUriString(`$_)}) +docker run -i --rm --volume appwrite-cli:/usr/local/code/app/.preferences/ --volume `$pwd``:/usr/local/code/files:rw --network host $APPWRITE_CLI_IMAGE_NAME`:$APPWRITE_CLI_IMAGE_VERSION (`$args | % {[uri]::EscapeUriString(`$_)}) "@ $USER_PATH_ENV_VAR = [Environment]::GetEnvironmentVariable("PATH", "User") diff --git a/install.sh b/install.sh index 48c4850..5603d38 100644 --- a/install.sh +++ b/install.sh @@ -30,7 +30,7 @@ APPWRITE_TEMP_NAME=temp APPWRITE_CLI_IMAGE_NAME=appwrite/cli # Appwrite CLI image version -APPWRITE_CLI_IMAGE_VERSION=0.11.0 +APPWRITE_CLI_IMAGE_VERSION=0.12.0 # sudo is required to copy executable to APPWRITE_INSTALL_DIR for linux USE_SUDO="false" diff --git a/src/Client.php b/src/Client.php index f2ffa4a..d581b22 100644 --- a/src/Client.php +++ b/src/Client.php @@ -29,8 +29,8 @@ class Client */ protected $headers = [ 'content-type' => '', - 'x-sdk-version' => 'appwrite:cli:0.11.0', - 'X-Appwrite-Response-Format' => '0.9.0' ]; + 'x-sdk-version' => 'appwrite:cli:0.12.0', + 'X-Appwrite-Response-Format' => '0.10.0' ]; /** * Default User Preferences