appwrite-cli 19.1.0 → 20.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 (39) hide show
  1. package/README.md +63 -3
  2. package/dist/bundle-win-arm64.mjs +5786 -2209
  3. package/dist/cli.cjs +5828 -2251
  4. package/dist/index.cjs +3831 -1100
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +3831 -1100
  8. package/dist/lib/commands/config.d.ts +26 -12
  9. package/dist/lib/commands/config.d.ts.map +1 -1
  10. package/dist/lib/commands/init.d.ts.map +1 -1
  11. package/dist/lib/commands/pull.d.ts +4 -0
  12. package/dist/lib/commands/pull.d.ts.map +1 -1
  13. package/dist/lib/commands/push.d.ts.map +1 -1
  14. package/dist/lib/commands/run.d.ts.map +1 -1
  15. package/dist/lib/commands/schema.d.ts +3 -1
  16. package/dist/lib/commands/schema.d.ts.map +1 -1
  17. package/dist/lib/commands/services/account.d.ts.map +1 -1
  18. package/dist/lib/commands/services/databases.d.ts.map +1 -1
  19. package/dist/lib/commands/services/functions.d.ts.map +1 -1
  20. package/dist/lib/commands/services/graphql.d.ts.map +1 -1
  21. package/dist/lib/commands/services/messaging.d.ts.map +1 -1
  22. package/dist/lib/commands/services/projects.d.ts.map +1 -1
  23. package/dist/lib/commands/services/tables-db.d.ts.map +1 -1
  24. package/dist/lib/commands/services/teams.d.ts.map +1 -1
  25. package/dist/lib/commands/services/users.d.ts.map +1 -1
  26. package/dist/lib/commands/update.d.ts.map +1 -1
  27. package/dist/lib/completions.d.ts +5 -0
  28. package/dist/lib/completions.d.ts.map +1 -0
  29. package/dist/lib/config.d.ts +15 -1
  30. package/dist/lib/config.d.ts.map +1 -1
  31. package/dist/lib/constants.d.ts +3 -3
  32. package/dist/lib/constants.d.ts.map +1 -1
  33. package/dist/lib/emulation/docker.d.ts.map +1 -1
  34. package/dist/lib/emulation/utils.d.ts.map +1 -1
  35. package/dist/lib/parser.d.ts +1 -0
  36. package/dist/lib/parser.d.ts.map +1 -1
  37. package/dist/lib/utils.d.ts +8 -3
  38. package/dist/lib/utils.d.ts.map +1 -1
  39. package/package.json +2 -2
package/README.md CHANGED
@@ -1,7 +1,7 @@
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.9.2-blue.svg?style=flat-square)
4
+ ![Version](https://img.shields.io/badge/api%20version-1.9.3-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)
@@ -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
- 19.1.0
32
+ 20.0.0
33
33
  ```
34
34
 
35
35
  ### Install using prebuilt binaries
@@ -49,6 +49,27 @@ $ brew install appwrite/appwrite/appwrite
49
49
 
50
50
  Homebrew pulls the formula from the [`appwrite/homebrew-appwrite`](https://github.com/appwrite/homebrew-appwrite) tap and downloads the native binary for your platform.
51
51
 
52
+ ### Shell completion
53
+
54
+ Install completion for your current shell:
55
+
56
+ ```bash
57
+ appwrite completion install
58
+ ```
59
+
60
+ You can also generate or install completion scripts manually:
61
+
62
+ ```bash
63
+ # zsh
64
+ appwrite completion install zsh
65
+ # bash
66
+ appwrite completion install bash
67
+ # fish
68
+ appwrite completion install fish
69
+ ```
70
+
71
+ For zsh, ensure `~/.zfunc` is in your `fpath` and `compinit` is loaded from your shell config.
72
+
52
73
  ### Windows
53
74
  Via Powershell
54
75
  ```powershell
@@ -62,7 +83,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
62
83
  Once the installation completes, you can verify your install using
63
84
  ```
64
85
  $ appwrite -v
65
- 19.1.0
86
+ 20.0.0
66
87
  ```
67
88
 
68
89
  ## Getting Started
@@ -210,6 +231,45 @@ appwrite client --endpoint http://localhost/v1 --projectId <PROJECT_ID> --key <A
210
231
  ```
211
232
 
212
233
 
234
+ ## Project configuration
235
+
236
+ The CLI reads project resources from `appwrite.config.json`. Large resource arrays can be split into smaller JSON files with `includes`:
237
+
238
+ ```json
239
+ {
240
+ "projectId": "my-project",
241
+ "includes": {
242
+ "functions": "./appwrite/functions.json",
243
+ "sites": "./appwrite/sites.json",
244
+ "databases": "./appwrite/databases.json",
245
+ "collections": "./appwrite/collections.json",
246
+ "tablesDB": "./appwrite/tables-db.json",
247
+ "tables": "./appwrite/tables.json",
248
+ "buckets": "./appwrite/buckets.json",
249
+ "teams": "./appwrite/teams.json",
250
+ "webhooks": "./appwrite/webhooks.json",
251
+ "topics": "./appwrite/topics.json",
252
+ "messages": "./appwrite/messages.json"
253
+ }
254
+ }
255
+ ```
256
+
257
+ Each included file contains only the array for that resource. Include paths are resolved relative to `appwrite.config.json`, and resource-local paths inside an included file are resolved relative to that included file:
258
+
259
+ ```json
260
+ [
261
+ {
262
+ "$id": "api",
263
+ "name": "API",
264
+ "runtime": "node-22",
265
+ "path": "functions/api",
266
+ "entrypoint": "src/main.ts"
267
+ }
268
+ ]
269
+ ```
270
+
271
+ JSON pointer fragments such as `./resources.json#/functions` are not supported.
272
+
213
273
  ## Contribution
214
274
 
215
275
  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.