You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the installation completes, you can verify your install using
59
59
```
60
60
$ appwrite -v
61
-
0.18.1
61
+
0.18.2
62
62
```
63
63
64
64
## Getting Started
@@ -94,6 +94,12 @@ You can also fetch all the collections in your current project using
94
94
appwrite init collection
95
95
```
96
96
97
+
The CLI also comes with a convenient `--all` flag to perform both these steps at once.
98
+
99
+
```sh
100
+
appwrite init --all
101
+
```
102
+
97
103
*### Creating and deploying cloud functions
98
104
99
105
The CLI makes it extremely easy to create and deploy Appwrite's cloud functions. Initialise your new function using
@@ -139,6 +145,12 @@ Similarly, you can deploy all your collections to your Appwrite server using
139
145
appwrite deploy collections
140
146
```
141
147
148
+
The `deploy` command also comes with a convenient `--all` flag to deploy all your functions and collections at once.
149
+
150
+
```sh
151
+
appwrite deploy --all
152
+
```
153
+
142
154
> ### Note
143
155
> By default, requests to domains with self signed SSL certificates (or no certificates) are disabled. If you trust the domain, you can bypass the certificate validation using
Copy file name to clipboardExpand all lines: lib/commands/account.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -784,7 +784,7 @@ account
784
784
785
785
account
786
786
.command(`updatePhone`)
787
-
.description(`Update the currently logged in user's phone number. After updating the phone number, the phone verification status will be reset. A confirmation SMS is not sent automatically, however you can use the [POST /account/verification/phone](/docs/client/account#accountCreatePhoneVerification) endpoint to send a confirmation SMS.`)
787
+
.description(`Update currently logged in user account phone number. After changing phone number, the user confirmation status will get reset. A new confirmation SMS is not sent automatically however you can use the phone confirmation endpoint again to send the confirmation SMS.`)
788
788
.requiredOption(`--number <number>`,`Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
789
789
.requiredOption(`--password <password>`,`User password. Must be at least 8 chars.`)
790
790
.action(actionRunner(accountUpdatePhone))
@@ -856,22 +856,22 @@ account
856
856
account
857
857
.command(`createOAuth2Session`)
858
858
.description(`Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL's back to your app when login is completed. If there is already an active session, the new session will be attached to the logged-in account. If there are no active sessions, the server will attempt to look for a user with the same email address as the email received from the OAuth2 provider and attach the new session to the existing user. If no matching user is found - the server will create a new user.. `)
.option(`--success <success>`,`URL to redirect back to your app after a successful login attempt. 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.`)
861
861
.option(`--failure <failure>`,`URL to redirect back to your app after a failed login attempt. 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.`)
862
862
.option(`--scopes <scopes...>`,`A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.`)
863
863
.action(actionRunner(accountCreateOAuth2Session))
864
864
865
865
account
866
866
.command(`createPhoneSession`)
867
-
.description(`Sends the user an SMS with a secret key for creating a session. Use the returned user ID and secret and submit a request to the [PUT /account/sessions/phone](/docs/client/account#accountUpdatePhoneSession) endpoint to complete the login process. The secret sent to the user's phone is valid for 15 minutes.`)
867
+
.description(`Sends the user a SMS with a secret key for creating a session. Use the returned user ID and the secret to submit a request to the [PUT /account/sessions/phone](/docs/client/account#accountUpdatePhoneSession) endpoint to complete the login process. The secret sent to the user's phone is valid for 15 minutes.`)
868
868
.requiredOption(`--userId <userId>`,`Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. 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.`)
869
869
.requiredOption(`--number <number>`,`Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
870
870
.action(actionRunner(accountCreatePhoneSession))
871
871
872
872
account
873
873
.command(`updatePhoneSession`)
874
-
.description(`Use this endpoint to complete creating a session with SMS. Use the **userId** from the [createPhoneSession](/docs/client/account#accountCreatePhoneSession) endpoint and the **secret** received via SMS to successfully update and confirm the phone session.`)
874
+
.description(`Use this endpoint to complete creating the session with the Magic URL. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST /account/sessions/magic-url](/docs/client/account#accountCreateMagicURLSession) endpoint. 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.`)
.description(`Use this endpoint to send a verification SMS to the currently logged in user. This endpoint is meant for use after updating a user's phone number using the [accountUpdatePhone](/docs/client/account#accountUpdatePhone) endpoint. Learn more about how to [complete the verification process](/docs/client/account#accountUpdatePhoneVerification). The verification code sent to the user's phone number is valid for 15 minutes.`)
917
+
.description(`Use this endpoint to send a verification message to your user's phone number to confirm they are the valid owners of that address. The provided secret should allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](/docs/client/account#accountUpdatePhoneVerification). The verification link sent to the user's phone number is valid for 15 minutes.`)
0 commit comments