appwrite-cli 6.2.2 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +8 -7
  2. package/docs/examples/console/get-resource.md +3 -0
  3. package/docs/examples/databases/create-documents.md +4 -0
  4. package/docs/examples/databases/create-index.md +1 -0
  5. package/docs/examples/databases/delete-documents.md +4 -0
  6. package/docs/examples/databases/update-documents.md +5 -0
  7. package/docs/examples/databases/update-float-attribute.md +2 -2
  8. package/docs/examples/databases/update-integer-attribute.md +2 -2
  9. package/docs/examples/databases/upsert-document.md +6 -0
  10. package/docs/examples/databases/upsert-documents.md +4 -0
  11. package/docs/examples/functions/{create-build.md → create-duplicate-deployment.md} +1 -1
  12. package/docs/examples/functions/create-template-deployment.md +7 -0
  13. package/docs/examples/functions/create-variable.md +2 -1
  14. package/docs/examples/functions/create-vcs-deployment.md +5 -0
  15. package/docs/examples/functions/create.md +0 -4
  16. package/docs/examples/functions/get-deployment-download.md +2 -1
  17. package/docs/examples/functions/get-usage.md +1 -0
  18. package/docs/examples/functions/list-executions.md +0 -1
  19. package/docs/examples/functions/list-usage.md +2 -0
  20. package/docs/examples/functions/{update-deployment-build.md → update-deployment-status.md} +1 -1
  21. package/docs/examples/functions/{update-deployment.md → update-function-deployment.md} +1 -1
  22. package/docs/examples/functions/update-variable.md +1 -0
  23. package/docs/examples/health/get-queue-stats-resources.md +2 -0
  24. package/docs/examples/migrations/create-csv-migration.md +4 -0
  25. package/docs/examples/project/create-variable.md +2 -1
  26. package/docs/examples/project/update-variable.md +1 -0
  27. package/docs/examples/projects/create-dev-key.md +4 -0
  28. package/docs/examples/projects/delete-dev-key.md +3 -0
  29. package/docs/examples/projects/get-dev-key.md +3 -0
  30. package/docs/examples/projects/list-dev-keys.md +3 -0
  31. package/docs/examples/projects/update-dev-key.md +5 -0
  32. package/docs/examples/proxy/create-a-p-i-rule.md +2 -0
  33. package/docs/examples/proxy/create-function-rule.md +4 -0
  34. package/docs/examples/proxy/create-redirect-rule.md +4 -0
  35. package/docs/examples/proxy/create-site-rule.md +4 -0
  36. package/docs/examples/sites/create-deployment.md +7 -0
  37. package/docs/examples/sites/create-duplicate-deployment.md +3 -0
  38. package/docs/examples/sites/create-template-deployment.md +7 -0
  39. package/docs/examples/sites/create-variable.md +5 -0
  40. package/docs/examples/sites/create-vcs-deployment.md +5 -0
  41. package/docs/examples/sites/create.md +19 -0
  42. package/docs/examples/sites/delete-deployment.md +3 -0
  43. package/docs/examples/sites/delete-log.md +3 -0
  44. package/docs/examples/sites/delete-variable.md +3 -0
  45. package/docs/examples/sites/delete.md +2 -0
  46. package/docs/examples/sites/get-deployment-download.md +4 -0
  47. package/docs/examples/sites/get-deployment.md +3 -0
  48. package/docs/examples/sites/get-log.md +3 -0
  49. package/docs/examples/sites/get-template.md +2 -0
  50. package/docs/examples/sites/get-usage.md +3 -0
  51. package/docs/examples/sites/get-variable.md +3 -0
  52. package/docs/examples/sites/get.md +2 -0
  53. package/docs/examples/sites/list-deployments.md +4 -0
  54. package/docs/examples/sites/list-frameworks.md +1 -0
  55. package/docs/examples/sites/list-logs.md +3 -0
  56. package/docs/examples/sites/list-specifications.md +1 -0
  57. package/docs/examples/sites/list-templates.md +5 -0
  58. package/docs/examples/sites/list-usage.md +2 -0
  59. package/docs/examples/sites/list-variables.md +2 -0
  60. package/docs/examples/sites/list.md +3 -0
  61. package/docs/examples/sites/update-deployment-status.md +3 -0
  62. package/docs/examples/sites/update-site-deployment.md +3 -0
  63. package/docs/examples/sites/update-variable.md +6 -0
  64. package/docs/examples/sites/update.md +19 -0
  65. package/docs/examples/storage/get-file-download.md +2 -1
  66. package/docs/examples/storage/get-file-preview.md +1 -0
  67. package/docs/examples/storage/get-file-view.md +2 -1
  68. package/docs/examples/tokens/create-file-token.md +4 -0
  69. package/docs/examples/tokens/delete.md +2 -0
  70. package/docs/examples/tokens/get.md +2 -0
  71. package/docs/examples/tokens/list.md +4 -0
  72. package/docs/examples/tokens/update.md +3 -0
  73. package/docs/examples/users/list-memberships.md +3 -1
  74. package/docs/examples/vcs/create-repository-detection.md +1 -0
  75. package/docs/examples/vcs/list-repositories.md +1 -0
  76. package/index.js +4 -0
  77. package/install.ps1 +2 -2
  78. package/install.sh +1 -1
  79. package/lib/client.js +12 -5
  80. package/lib/commands/account.js +7 -17
  81. package/lib/commands/avatars.js +9 -16
  82. package/lib/commands/console.js +50 -1
  83. package/lib/commands/databases.js +294 -62
  84. package/lib/commands/functions.js +244 -146
  85. package/lib/commands/generic.js +1 -1
  86. package/lib/commands/health.js +15 -73
  87. package/lib/commands/init.js +191 -0
  88. package/lib/commands/locale.js +0 -8
  89. package/lib/commands/messaging.js +38 -51
  90. package/lib/commands/migrations.js +56 -11
  91. package/lib/commands/project.js +12 -5
  92. package/lib/commands/projects.js +246 -27
  93. package/lib/commands/proxy.js +160 -19
  94. package/lib/commands/pull.js +124 -1
  95. package/lib/commands/push.js +338 -5
  96. package/lib/commands/sites.js +1663 -0
  97. package/lib/commands/storage.js +28 -22
  98. package/lib/commands/teams.js +2 -8
  99. package/lib/commands/tokens.js +261 -0
  100. package/lib/commands/users.js +15 -17
  101. package/lib/commands/vcs.js +60 -53
  102. package/lib/config.js +50 -0
  103. package/lib/parser.js +2 -1
  104. package/lib/questions.js +110 -1
  105. package/lib/utils.js +7 -1
  106. package/package.json +1 -1
  107. package/scoop/appwrite.json +3 -3
  108. package/docs/examples/functions/get-function-usage.md +0 -3
  109. package/docs/examples/health/get-queue-usage-dump.md +0 -2
  110. package/docs/examples/health/get-queue.md +0 -1
  111. package/docs/examples/proxy/create-rule.md +0 -4
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Appwrite Command Line SDK
2
2
 
3
3
  ![License](https://img.shields.io/github/license/appwrite/sdk-for-cli.svg?style=flat-square)
4
- ![Version](https://img.shields.io/badge/api%20version-1.6.1-blue.svg?style=flat-square)
4
+ ![Version](https://img.shields.io/badge/api%20version-1.7.4-blue.svg?style=flat-square)
5
5
  [![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
6
6
  [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
7
7
  [![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
8
8
 
9
- **This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/releases).**
9
+ **This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/releases).**
10
10
 
11
11
  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)
12
12
 
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
29
29
 
30
30
  ```sh
31
31
  $ appwrite -v
32
- 6.2.2
32
+ 7.0.0
33
33
  ```
34
34
 
35
35
  ### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
60
60
  Once the installation completes, you can verify your install using
61
61
  ```
62
62
  $ appwrite -v
63
- 6.2.2
63
+ 7.0.0
64
64
  ```
65
65
 
66
66
  ## Getting Started
@@ -124,7 +124,7 @@ My Awesome Function
124
124
  You can now deploy this function using
125
125
 
126
126
  ```sh
127
- $ appwrite deploy function
127
+ $ appwrite push function
128
128
 
129
129
  ? Which functions would you like to deploy? My Awesome Function (61d1a4c81dfcd95bc834)
130
130
  ℹ Info Deploying function My Awesome Function ( 61d1a4c81dfcd95bc834 )
@@ -138,7 +138,7 @@ Your function has now been deployed on your Appwrite server! As soon as the buil
138
138
  Similarly, you can deploy all your collections to your Appwrite server using
139
139
 
140
140
  ```sh
141
- appwrite deploy collections
141
+ appwrite push collections
142
142
  ```
143
143
 
144
144
  > ### Note
@@ -163,7 +163,7 @@ $ appwrite users list
163
163
 
164
164
  To create a document you can use the following command
165
165
  ```sh
166
- $ appwrite database createDocument --collectionId <ID> --documentId 'unique()' --data '{ "Name": "Iron Man" }' --permissions 'read("any")' 'read("team:abc")'
166
+ $ 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")'
167
167
  ```
168
168
 
169
169
  ### Some Gotchas
@@ -207,6 +207,7 @@ The Appwrite CLI can also work in a CI environment. The initialisation of the CL
207
207
  appwrite client --endpoint http://localhost/v1 --projectId <PROJECT_ID> --key <API KEY>
208
208
  ```
209
209
 
210
+
210
211
  ## Contribution
211
212
 
212
213
  This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.
@@ -0,0 +1,3 @@
1
+ appwrite console getResource \
2
+ --value <VALUE> \
3
+ --type rules
@@ -0,0 +1,4 @@
1
+ appwrite databases createDocuments \
2
+ --databaseId <DATABASE_ID> \
3
+ --collectionId <COLLECTION_ID> \
4
+ --documents one two three
@@ -5,3 +5,4 @@ appwrite databases createIndex \
5
5
  --type key \
6
6
  --attributes one two three \
7
7
 
8
+
@@ -0,0 +1,4 @@
1
+ appwrite databases deleteDocuments \
2
+ --databaseId <DATABASE_ID> \
3
+ --collectionId <COLLECTION_ID> \
4
+
@@ -0,0 +1,5 @@
1
+ appwrite databases updateDocuments \
2
+ --databaseId <DATABASE_ID> \
3
+ --collectionId <COLLECTION_ID> \
4
+
5
+
@@ -3,7 +3,7 @@ appwrite databases updateFloatAttribute \
3
3
  --collectionId <COLLECTION_ID> \
4
4
  --key '' \
5
5
  --required false \
6
- --min null \
7
- --max null \
8
6
  --default null \
9
7
 
8
+
9
+
@@ -3,7 +3,7 @@ appwrite databases updateIntegerAttribute \
3
3
  --collectionId <COLLECTION_ID> \
4
4
  --key '' \
5
5
  --required false \
6
- --min null \
7
- --max null \
8
6
  --default null \
9
7
 
8
+
9
+
@@ -0,0 +1,6 @@
1
+ appwrite databases upsertDocument \
2
+ --databaseId <DATABASE_ID> \
3
+ --collectionId <COLLECTION_ID> \
4
+ --documentId <DOCUMENT_ID> \
5
+ --data '{ "key": "value" }' \
6
+
@@ -0,0 +1,4 @@
1
+ appwrite databases upsertDocuments \
2
+ --databaseId <DATABASE_ID> \
3
+ --collectionId <COLLECTION_ID> \
4
+ --documents one two three
@@ -1,4 +1,4 @@
1
- appwrite functions createBuild \
1
+ appwrite functions createDuplicateDeployment \
2
2
  --functionId <FUNCTION_ID> \
3
3
  --deploymentId <DEPLOYMENT_ID> \
4
4
 
@@ -0,0 +1,7 @@
1
+ appwrite functions createTemplateDeployment \
2
+ --functionId <FUNCTION_ID> \
3
+ --repository <REPOSITORY> \
4
+ --owner <OWNER> \
5
+ --rootDirectory <ROOT_DIRECTORY> \
6
+ --version <VERSION> \
7
+
@@ -1,4 +1,5 @@
1
1
  appwrite functions createVariable \
2
2
  --functionId <FUNCTION_ID> \
3
3
  --key <KEY> \
4
- --value <VALUE>
4
+ --value <VALUE> \
5
+
@@ -0,0 +1,5 @@
1
+ appwrite functions createVcsDeployment \
2
+ --functionId <FUNCTION_ID> \
3
+ --type branch \
4
+ --reference <REFERENCE> \
5
+
@@ -17,7 +17,3 @@ appwrite functions create \
17
17
 
18
18
 
19
19
 
20
-
21
-
22
-
23
-
@@ -1,3 +1,4 @@
1
1
  appwrite functions getDeploymentDownload \
2
2
  --functionId <FUNCTION_ID> \
3
- --deploymentId <DEPLOYMENT_ID>
3
+ --deploymentId <DEPLOYMENT_ID> \
4
+
@@ -1,2 +1,3 @@
1
1
  appwrite functions getUsage \
2
+ --functionId <FUNCTION_ID> \
2
3
 
@@ -1,4 +1,3 @@
1
1
  appwrite functions listExecutions \
2
2
  --functionId <FUNCTION_ID> \
3
3
 
4
-
@@ -0,0 +1,2 @@
1
+ appwrite functions listUsage \
2
+
@@ -1,3 +1,3 @@
1
- appwrite functions updateDeploymentBuild \
1
+ appwrite functions updateDeploymentStatus \
2
2
  --functionId <FUNCTION_ID> \
3
3
  --deploymentId <DEPLOYMENT_ID>
@@ -1,3 +1,3 @@
1
- appwrite functions updateDeployment \
1
+ appwrite functions updateFunctionDeployment \
2
2
  --functionId <FUNCTION_ID> \
3
3
  --deploymentId <DEPLOYMENT_ID>
@@ -3,3 +3,4 @@ appwrite functions updateVariable \
3
3
  --variableId <VARIABLE_ID> \
4
4
  --key <KEY> \
5
5
 
6
+
@@ -0,0 +1,2 @@
1
+ appwrite health getQueueStatsResources \
2
+
@@ -0,0 +1,4 @@
1
+ appwrite migrations createCsvMigration \
2
+ --bucketId <BUCKET_ID> \
3
+ --fileId <FILE_ID> \
4
+ --resourceId [ID1:ID2]
@@ -1,3 +1,4 @@
1
1
  appwrite project createVariable \
2
2
  --key <KEY> \
3
- --value <VALUE>
3
+ --value <VALUE> \
4
+
@@ -2,3 +2,4 @@ appwrite project updateVariable \
2
2
  --variableId <VARIABLE_ID> \
3
3
  --key <KEY> \
4
4
 
5
+
@@ -0,0 +1,4 @@
1
+ appwrite projects createDevKey \
2
+ --projectId <PROJECT_ID> \
3
+ --name <NAME> \
4
+ --expire ''
@@ -0,0 +1,3 @@
1
+ appwrite projects deleteDevKey \
2
+ --projectId <PROJECT_ID> \
3
+ --keyId <KEY_ID>
@@ -0,0 +1,3 @@
1
+ appwrite projects getDevKey \
2
+ --projectId <PROJECT_ID> \
3
+ --keyId <KEY_ID>
@@ -0,0 +1,3 @@
1
+ appwrite projects listDevKeys \
2
+ --projectId <PROJECT_ID> \
3
+
@@ -0,0 +1,5 @@
1
+ appwrite projects updateDevKey \
2
+ --projectId <PROJECT_ID> \
3
+ --keyId <KEY_ID> \
4
+ --name <NAME> \
5
+ --expire ''
@@ -0,0 +1,2 @@
1
+ appwrite proxy createAPIRule \
2
+ --domain ''
@@ -0,0 +1,4 @@
1
+ appwrite proxy createFunctionRule \
2
+ --domain '' \
3
+ --functionId <FUNCTION_ID> \
4
+
@@ -0,0 +1,4 @@
1
+ appwrite proxy createRedirectRule \
2
+ --domain '' \
3
+ --url https://example.com \
4
+ --statusCode 301
@@ -0,0 +1,4 @@
1
+ appwrite proxy createSiteRule \
2
+ --domain '' \
3
+ --siteId <SITE_ID> \
4
+
@@ -0,0 +1,7 @@
1
+ appwrite sites createDeployment \
2
+ --siteId <SITE_ID> \
3
+ --code 'path/to/file.png' \
4
+ --activate false \
5
+
6
+
7
+
@@ -0,0 +1,3 @@
1
+ appwrite sites createDuplicateDeployment \
2
+ --siteId <SITE_ID> \
3
+ --deploymentId <DEPLOYMENT_ID>
@@ -0,0 +1,7 @@
1
+ appwrite sites createTemplateDeployment \
2
+ --siteId <SITE_ID> \
3
+ --repository <REPOSITORY> \
4
+ --owner <OWNER> \
5
+ --rootDirectory <ROOT_DIRECTORY> \
6
+ --version <VERSION> \
7
+
@@ -0,0 +1,5 @@
1
+ appwrite sites createVariable \
2
+ --siteId <SITE_ID> \
3
+ --key <KEY> \
4
+ --value <VALUE> \
5
+
@@ -0,0 +1,5 @@
1
+ appwrite sites createVcsDeployment \
2
+ --siteId <SITE_ID> \
3
+ --type branch \
4
+ --reference <REFERENCE> \
5
+
@@ -0,0 +1,19 @@
1
+ appwrite sites create \
2
+ --siteId <SITE_ID> \
3
+ --name <NAME> \
4
+ --framework analog \
5
+ --buildRuntime node-14.5 \
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
@@ -0,0 +1,3 @@
1
+ appwrite sites deleteDeployment \
2
+ --siteId <SITE_ID> \
3
+ --deploymentId <DEPLOYMENT_ID>
@@ -0,0 +1,3 @@
1
+ appwrite sites deleteLog \
2
+ --siteId <SITE_ID> \
3
+ --logId <LOG_ID>
@@ -0,0 +1,3 @@
1
+ appwrite sites deleteVariable \
2
+ --siteId <SITE_ID> \
3
+ --variableId <VARIABLE_ID>
@@ -0,0 +1,2 @@
1
+ appwrite sites delete \
2
+ --siteId <SITE_ID>
@@ -0,0 +1,4 @@
1
+ appwrite sites getDeploymentDownload \
2
+ --siteId <SITE_ID> \
3
+ --deploymentId <DEPLOYMENT_ID> \
4
+
@@ -0,0 +1,3 @@
1
+ appwrite sites getDeployment \
2
+ --siteId <SITE_ID> \
3
+ --deploymentId <DEPLOYMENT_ID>
@@ -0,0 +1,3 @@
1
+ appwrite sites getLog \
2
+ --siteId <SITE_ID> \
3
+ --logId <LOG_ID>
@@ -0,0 +1,2 @@
1
+ appwrite sites getTemplate \
2
+ --templateId <TEMPLATE_ID>
@@ -0,0 +1,3 @@
1
+ appwrite sites getUsage \
2
+ --siteId <SITE_ID> \
3
+
@@ -0,0 +1,3 @@
1
+ appwrite sites getVariable \
2
+ --siteId <SITE_ID> \
3
+ --variableId <VARIABLE_ID>
@@ -0,0 +1,2 @@
1
+ appwrite sites get \
2
+ --siteId <SITE_ID>
@@ -0,0 +1,4 @@
1
+ appwrite sites listDeployments \
2
+ --siteId <SITE_ID> \
3
+
4
+
@@ -0,0 +1 @@
1
+ appwrite sites listFrameworks
@@ -0,0 +1,3 @@
1
+ appwrite sites listLogs \
2
+ --siteId <SITE_ID> \
3
+
@@ -0,0 +1 @@
1
+ appwrite sites listSpecifications
@@ -0,0 +1,5 @@
1
+ appwrite sites listTemplates \
2
+
3
+
4
+
5
+
@@ -0,0 +1,2 @@
1
+ appwrite sites listUsage \
2
+
@@ -0,0 +1,2 @@
1
+ appwrite sites listVariables \
2
+ --siteId <SITE_ID>
@@ -0,0 +1,3 @@
1
+ appwrite sites list \
2
+
3
+
@@ -0,0 +1,3 @@
1
+ appwrite sites updateDeploymentStatus \
2
+ --siteId <SITE_ID> \
3
+ --deploymentId <DEPLOYMENT_ID>
@@ -0,0 +1,3 @@
1
+ appwrite sites updateSiteDeployment \
2
+ --siteId <SITE_ID> \
3
+ --deploymentId <DEPLOYMENT_ID>
@@ -0,0 +1,6 @@
1
+ appwrite sites updateVariable \
2
+ --siteId <SITE_ID> \
3
+ --variableId <VARIABLE_ID> \
4
+ --key <KEY> \
5
+
6
+
@@ -0,0 +1,19 @@
1
+ appwrite sites update \
2
+ --siteId <SITE_ID> \
3
+ --name <NAME> \
4
+ --framework analog \
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
@@ -1,3 +1,4 @@
1
1
  appwrite storage getFileDownload \
2
2
  --bucketId <BUCKET_ID> \
3
- --fileId <FILE_ID>
3
+ --fileId <FILE_ID> \
4
+
@@ -12,3 +12,4 @@ appwrite storage getFilePreview \
12
12
 
13
13
 
14
14
 
15
+
@@ -1,3 +1,4 @@
1
1
  appwrite storage getFileView \
2
2
  --bucketId <BUCKET_ID> \
3
- --fileId <FILE_ID>
3
+ --fileId <FILE_ID> \
4
+
@@ -0,0 +1,4 @@
1
+ appwrite tokens createFileToken \
2
+ --bucketId <BUCKET_ID> \
3
+ --fileId <FILE_ID> \
4
+
@@ -0,0 +1,2 @@
1
+ appwrite tokens delete \
2
+ --tokenId <TOKEN_ID>
@@ -0,0 +1,2 @@
1
+ appwrite tokens get \
2
+ --tokenId <TOKEN_ID>
@@ -0,0 +1,4 @@
1
+ appwrite tokens list \
2
+ --bucketId <BUCKET_ID> \
3
+ --fileId <FILE_ID> \
4
+
@@ -0,0 +1,3 @@
1
+ appwrite tokens update \
2
+ --tokenId <TOKEN_ID> \
3
+
@@ -1,2 +1,4 @@
1
1
  appwrite users listMemberships \
2
- --userId <USER_ID>
2
+ --userId <USER_ID> \
3
+
4
+
@@ -1,4 +1,5 @@
1
1
  appwrite vcs createRepositoryDetection \
2
2
  --installationId <INSTALLATION_ID> \
3
3
  --providerRepositoryId <PROVIDER_REPOSITORY_ID> \
4
+ --type runtime \
4
5
 
@@ -1,3 +1,4 @@
1
1
  appwrite vcs listRepositories \
2
2
  --installationId <INSTALLATION_ID> \
3
+ --type runtime \
3
4
 
package/index.js CHANGED
@@ -30,8 +30,10 @@ const { migrations } = require("./lib/commands/migrations");
30
30
  const { project } = require("./lib/commands/project");
31
31
  const { projects } = require("./lib/commands/projects");
32
32
  const { proxy } = require("./lib/commands/proxy");
33
+ const { sites } = require("./lib/commands/sites");
33
34
  const { storage } = require("./lib/commands/storage");
34
35
  const { teams } = require("./lib/commands/teams");
36
+ const { tokens } = require("./lib/commands/tokens");
35
37
  const { users } = require("./lib/commands/users");
36
38
  const { vcs } = require("./lib/commands/vcs");
37
39
 
@@ -95,8 +97,10 @@ program
95
97
  .addCommand(project)
96
98
  .addCommand(projects)
97
99
  .addCommand(proxy)
100
+ .addCommand(sites)
98
101
  .addCommand(storage)
99
102
  .addCommand(teams)
103
+ .addCommand(tokens)
100
104
  .addCommand(users)
101
105
  .addCommand(vcs)
102
106
  .addCommand(client)
package/install.ps1 CHANGED
@@ -13,8 +13,8 @@
13
13
  # You can use "View source" of this page to see the full script.
14
14
 
15
15
  # REPO
16
- $GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.2/appwrite-cli-win-x64.exe"
17
- $GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.2/appwrite-cli-win-arm64.exe"
16
+ $GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/7.0.0/appwrite-cli-win-x64.exe"
17
+ $GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/7.0.0/appwrite-cli-win-arm64.exe"
18
18
 
19
19
  $APPWRITE_BINARY_NAME = "appwrite.exe"
20
20
 
package/install.sh CHANGED
@@ -97,7 +97,7 @@ printSuccess() {
97
97
  downloadBinary() {
98
98
  echo "[2/4] Downloading executable for $OS ($ARCH) ..."
99
99
 
100
- GITHUB_LATEST_VERSION="6.2.2"
100
+ GITHUB_LATEST_VERSION="7.0.0"
101
101
  GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
102
102
  GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
103
103