mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Merge pull request #9122 from gurjeetsinghvirdee/152-sdk-cli-command-update
Fix outdated CLI commands in documentation
This commit is contained in:
commit
34d587d7c5
1 changed files with 4 additions and 4 deletions
|
|
@ -59,7 +59,7 @@ My Awesome Function
|
|||
You can now deploy this function using
|
||||
|
||||
```sh
|
||||
$ appwrite deploy function
|
||||
$ appwrite push function
|
||||
|
||||
? Which functions would you like to deploy? My Awesome Function (61d1a4c81dfcd95bc834)
|
||||
ℹ Info Deploying function My Awesome Function ( 61d1a4c81dfcd95bc834 )
|
||||
|
|
@ -73,7 +73,7 @@ Your function has now been deployed on your Appwrite server! As soon as the buil
|
|||
Similarly, you can deploy all your collections to your Appwrite server using
|
||||
|
||||
```sh
|
||||
appwrite deploy collections
|
||||
appwrite push collections
|
||||
```
|
||||
|
||||
> ### Note
|
||||
|
|
@ -98,7 +98,7 @@ $ appwrite users list
|
|||
|
||||
To create a document you can use the following command
|
||||
```sh
|
||||
$ appwrite database createDocument --collectionId <ID> --documentId 'unique()' --data '{ "Name": "Iron Man" }' --permissions 'read("any")' 'read("team:abc")'
|
||||
$ appwrite databases create-document --database-id <DATABASE_ID> --collection-id <COLLECTION_ID> --document-id "unique()" --data '{"name": "Walter O Brein"}' --permissions 'read("any")' 'read("team:abc")'
|
||||
```
|
||||
|
||||
### Some Gotchas
|
||||
|
|
@ -140,4 +140,4 @@ The Appwrite CLI can also work in a CI environment. The initialisation of the CL
|
|||
|
||||
```sh
|
||||
appwrite client --endpoint http://localhost/v1 --projectId <PROJECT_ID> --key <API KEY>
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue