appwrite-cli 8.3.0 → 9.0.1

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 (520) hide show
  1. package/README.md +5 -5
  2. package/docs/examples/account/create-anonymous-session.md +1 -1
  3. package/docs/examples/account/create-email-password-session.md +3 -3
  4. package/docs/examples/account/create-email-token.md +3 -4
  5. package/docs/examples/account/create-jwt.md +1 -0
  6. package/docs/examples/account/create-magic-url-token.md +3 -0
  7. package/docs/examples/account/create-mfa-authenticator.md +2 -2
  8. package/docs/examples/account/create-mfa-challenge.md +2 -2
  9. package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
  10. package/docs/examples/account/create-o-auth-2-session.md +2 -0
  11. package/docs/examples/account/create-o-auth-2-token.md +2 -0
  12. package/docs/examples/account/create-phone-token.md +3 -3
  13. package/docs/examples/account/create-phone-verification.md +1 -1
  14. package/docs/examples/account/create-push-target.md +3 -4
  15. package/docs/examples/account/create-recovery.md +3 -3
  16. package/docs/examples/account/create-session.md +3 -3
  17. package/docs/examples/account/create-verification.md +2 -2
  18. package/docs/examples/account/create.md +3 -4
  19. package/docs/examples/account/delete-identity.md +2 -2
  20. package/docs/examples/account/delete-mfa-authenticator.md +2 -2
  21. package/docs/examples/account/delete-push-target.md +2 -2
  22. package/docs/examples/account/delete-session.md +2 -2
  23. package/docs/examples/account/delete-sessions.md +1 -1
  24. package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
  25. package/docs/examples/account/get-prefs.md +1 -1
  26. package/docs/examples/account/get-session.md +2 -2
  27. package/docs/examples/account/list-identities.md +1 -2
  28. package/docs/examples/account/list-logs.md +1 -2
  29. package/docs/examples/account/list-mfa-factors.md +1 -1
  30. package/docs/examples/account/list-sessions.md +1 -1
  31. package/docs/examples/account/update-email.md +3 -3
  32. package/docs/examples/account/update-magic-url-session.md +3 -0
  33. package/docs/examples/account/update-mfa-authenticator.md +3 -3
  34. package/docs/examples/account/update-mfa-challenge.md +3 -3
  35. package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
  36. package/docs/examples/account/update-mfa.md +2 -0
  37. package/docs/examples/account/update-name.md +2 -2
  38. package/docs/examples/account/update-password.md +2 -3
  39. package/docs/examples/account/update-phone-session.md +3 -3
  40. package/docs/examples/account/update-phone-verification.md +3 -3
  41. package/docs/examples/account/update-phone.md +3 -3
  42. package/docs/examples/account/update-prefs.md +2 -2
  43. package/docs/examples/account/update-push-target.md +3 -3
  44. package/docs/examples/account/update-recovery.md +4 -4
  45. package/docs/examples/account/update-session.md +2 -2
  46. package/docs/examples/account/update-status.md +1 -1
  47. package/docs/examples/account/update-verification.md +3 -3
  48. package/docs/examples/avatars/get-browser.md +2 -5
  49. package/docs/examples/avatars/get-credit-card.md +2 -5
  50. package/docs/examples/avatars/get-favicon.md +2 -2
  51. package/docs/examples/avatars/get-flag.md +2 -5
  52. package/docs/examples/avatars/get-image.md +2 -4
  53. package/docs/examples/avatars/get-initials.md +1 -5
  54. package/docs/examples/avatars/get-qr.md +2 -0
  55. package/docs/examples/console/get-resource.md +3 -3
  56. package/docs/examples/databases/create-boolean-attribute.md +5 -7
  57. package/docs/examples/databases/create-collection.md +4 -7
  58. package/docs/examples/databases/create-datetime-attribute.md +5 -7
  59. package/docs/examples/databases/create-document.md +5 -6
  60. package/docs/examples/databases/create-documents.md +4 -4
  61. package/docs/examples/databases/create-email-attribute.md +5 -7
  62. package/docs/examples/databases/create-enum-attribute.md +6 -8
  63. package/docs/examples/databases/create-float-attribute.md +5 -9
  64. package/docs/examples/databases/create-index.md +6 -8
  65. package/docs/examples/databases/create-integer-attribute.md +5 -9
  66. package/docs/examples/databases/create-ip-attribute.md +5 -7
  67. package/docs/examples/databases/create-relationship-attribute.md +5 -9
  68. package/docs/examples/databases/create-string-attribute.md +6 -9
  69. package/docs/examples/databases/create-url-attribute.md +5 -7
  70. package/docs/examples/databases/create.md +2 -3
  71. package/docs/examples/databases/decrement-document-attribute.md +5 -7
  72. package/docs/examples/databases/delete-attribute.md +4 -4
  73. package/docs/examples/databases/delete-collection.md +3 -3
  74. package/docs/examples/databases/delete-document.md +4 -4
  75. package/docs/examples/databases/delete-documents.md +3 -4
  76. package/docs/examples/databases/delete-index.md +4 -4
  77. package/docs/examples/databases/delete.md +1 -1
  78. package/docs/examples/databases/get-attribute.md +4 -4
  79. package/docs/examples/databases/get-collection-usage.md +3 -4
  80. package/docs/examples/databases/get-collection.md +3 -3
  81. package/docs/examples/databases/get-document.md +4 -5
  82. package/docs/examples/databases/get-index.md +4 -4
  83. package/docs/examples/databases/get-usage.md +2 -2
  84. package/docs/examples/databases/get.md +1 -1
  85. package/docs/examples/databases/increment-document-attribute.md +5 -7
  86. package/docs/examples/databases/list-attributes.md +3 -4
  87. package/docs/examples/databases/list-collection-logs.md +3 -4
  88. package/docs/examples/databases/list-collections.md +2 -4
  89. package/docs/examples/databases/list-document-logs.md +4 -5
  90. package/docs/examples/databases/list-documents.md +3 -4
  91. package/docs/examples/databases/list-indexes.md +3 -4
  92. package/docs/examples/databases/list-logs.md +2 -3
  93. package/docs/examples/databases/list-usage.md +1 -0
  94. package/docs/examples/databases/list.md +1 -3
  95. package/docs/examples/databases/update-boolean-attribute.md +6 -7
  96. package/docs/examples/databases/update-collection.md +4 -7
  97. package/docs/examples/databases/update-datetime-attribute.md +6 -7
  98. package/docs/examples/databases/update-document.md +4 -6
  99. package/docs/examples/databases/update-documents.md +3 -5
  100. package/docs/examples/databases/update-email-attribute.md +6 -7
  101. package/docs/examples/databases/update-enum-attribute.md +7 -8
  102. package/docs/examples/databases/update-float-attribute.md +6 -9
  103. package/docs/examples/databases/update-integer-attribute.md +6 -9
  104. package/docs/examples/databases/update-ip-attribute.md +6 -7
  105. package/docs/examples/databases/update-relationship-attribute.md +4 -6
  106. package/docs/examples/databases/update-string-attribute.md +6 -8
  107. package/docs/examples/databases/update-url-attribute.md +6 -7
  108. package/docs/examples/databases/update.md +2 -3
  109. package/docs/examples/databases/upsert-document.md +5 -6
  110. package/docs/examples/databases/upsert-documents.md +4 -4
  111. package/docs/examples/functions/create-deployment.md +4 -6
  112. package/docs/examples/functions/create-duplicate-deployment.md +3 -4
  113. package/docs/examples/functions/create-execution.md +2 -8
  114. package/docs/examples/functions/create-template-deployment.md +6 -7
  115. package/docs/examples/functions/create-variable.md +4 -5
  116. package/docs/examples/functions/create-vcs-deployment.md +4 -5
  117. package/docs/examples/functions/create.md +3 -18
  118. package/docs/examples/functions/delete-deployment.md +3 -3
  119. package/docs/examples/functions/delete-execution.md +3 -3
  120. package/docs/examples/functions/delete-variable.md +3 -3
  121. package/docs/examples/functions/delete.md +1 -1
  122. package/docs/examples/functions/get-deployment-download.md +3 -4
  123. package/docs/examples/functions/get-deployment.md +3 -3
  124. package/docs/examples/functions/get-execution.md +3 -3
  125. package/docs/examples/functions/get-template.md +2 -2
  126. package/docs/examples/functions/get-usage.md +2 -3
  127. package/docs/examples/functions/get-variable.md +3 -3
  128. package/docs/examples/functions/get.md +1 -1
  129. package/docs/examples/functions/list-deployments.md +2 -4
  130. package/docs/examples/functions/list-executions.md +2 -3
  131. package/docs/examples/functions/list-runtimes.md +1 -1
  132. package/docs/examples/functions/list-specifications.md +1 -1
  133. package/docs/examples/functions/list-templates.md +1 -5
  134. package/docs/examples/functions/list-usage.md +1 -2
  135. package/docs/examples/functions/list-variables.md +2 -2
  136. package/docs/examples/functions/list.md +1 -3
  137. package/docs/examples/functions/update-deployment-status.md +3 -3
  138. package/docs/examples/functions/update-function-deployment.md +3 -3
  139. package/docs/examples/functions/update-variable.md +4 -6
  140. package/docs/examples/functions/update.md +2 -18
  141. package/docs/examples/graphql/mutation.md +1 -1
  142. package/docs/examples/graphql/query.md +1 -1
  143. package/docs/examples/health/get-antivirus.md +1 -1
  144. package/docs/examples/health/get-cache.md +1 -1
  145. package/docs/examples/health/get-certificate.md +1 -2
  146. package/docs/examples/health/get-db.md +1 -0
  147. package/docs/examples/health/get-failed-jobs.md +2 -3
  148. package/docs/examples/health/get-pub-sub.md +1 -1
  149. package/docs/examples/health/get-queue-builds.md +1 -2
  150. package/docs/examples/health/get-queue-certificates.md +1 -2
  151. package/docs/examples/health/get-queue-databases.md +1 -3
  152. package/docs/examples/health/get-queue-deletes.md +1 -2
  153. package/docs/examples/health/get-queue-functions.md +1 -2
  154. package/docs/examples/health/get-queue-logs.md +1 -2
  155. package/docs/examples/health/get-queue-mails.md +1 -2
  156. package/docs/examples/health/get-queue-messaging.md +1 -2
  157. package/docs/examples/health/get-queue-migrations.md +1 -2
  158. package/docs/examples/health/get-queue-stats-resources.md +1 -2
  159. package/docs/examples/health/get-queue-usage.md +1 -2
  160. package/docs/examples/health/get-queue-webhooks.md +1 -2
  161. package/docs/examples/health/get-storage-local.md +1 -1
  162. package/docs/examples/health/get-storage.md +1 -1
  163. package/docs/examples/health/get-time.md +1 -1
  164. package/docs/examples/locale/list-codes.md +1 -1
  165. package/docs/examples/locale/list-continents.md +1 -1
  166. package/docs/examples/locale/list-countries-eu.md +1 -0
  167. package/docs/examples/locale/list-countries-phones.md +1 -1
  168. package/docs/examples/locale/list-countries.md +1 -1
  169. package/docs/examples/locale/list-currencies.md +1 -1
  170. package/docs/examples/locale/list-languages.md +1 -1
  171. package/docs/examples/messaging/create-apns-provider.md +3 -9
  172. package/docs/examples/messaging/create-email.md +4 -13
  173. package/docs/examples/messaging/create-fcm-provider.md +3 -5
  174. package/docs/examples/messaging/create-mailgun-provider.md +3 -11
  175. package/docs/examples/messaging/create-msg-91-provider.md +3 -0
  176. package/docs/examples/messaging/create-push.md +2 -20
  177. package/docs/examples/messaging/create-sendgrid-provider.md +3 -9
  178. package/docs/examples/messaging/create-sms.md +3 -8
  179. package/docs/examples/messaging/create-smtp-provider.md +4 -15
  180. package/docs/examples/messaging/create-subscriber.md +4 -4
  181. package/docs/examples/messaging/create-telesign-provider.md +3 -7
  182. package/docs/examples/messaging/create-textmagic-provider.md +3 -7
  183. package/docs/examples/messaging/create-topic.md +3 -4
  184. package/docs/examples/messaging/create-twilio-provider.md +3 -7
  185. package/docs/examples/messaging/create-vonage-provider.md +3 -7
  186. package/docs/examples/messaging/delete-provider.md +2 -2
  187. package/docs/examples/messaging/delete-subscriber.md +3 -3
  188. package/docs/examples/messaging/delete-topic.md +2 -2
  189. package/docs/examples/messaging/delete.md +1 -1
  190. package/docs/examples/messaging/get-message.md +2 -2
  191. package/docs/examples/messaging/get-provider.md +2 -2
  192. package/docs/examples/messaging/get-subscriber.md +3 -3
  193. package/docs/examples/messaging/get-topic.md +2 -2
  194. package/docs/examples/messaging/list-message-logs.md +2 -3
  195. package/docs/examples/messaging/list-messages.md +1 -3
  196. package/docs/examples/messaging/list-provider-logs.md +2 -3
  197. package/docs/examples/messaging/list-providers.md +1 -3
  198. package/docs/examples/messaging/list-subscriber-logs.md +2 -3
  199. package/docs/examples/messaging/list-subscribers.md +2 -4
  200. package/docs/examples/messaging/list-targets.md +2 -3
  201. package/docs/examples/messaging/list-topic-logs.md +2 -3
  202. package/docs/examples/messaging/list-topics.md +1 -3
  203. package/docs/examples/messaging/update-apns-provider.md +2 -9
  204. package/docs/examples/messaging/update-email.md +2 -13
  205. package/docs/examples/messaging/update-fcm-provider.md +2 -5
  206. package/docs/examples/messaging/update-mailgun-provider.md +2 -11
  207. package/docs/examples/messaging/update-msg-91-provider.md +2 -0
  208. package/docs/examples/messaging/update-push.md +2 -20
  209. package/docs/examples/messaging/update-sendgrid-provider.md +2 -9
  210. package/docs/examples/messaging/update-sms.md +2 -8
  211. package/docs/examples/messaging/update-smtp-provider.md +2 -15
  212. package/docs/examples/messaging/update-telesign-provider.md +2 -7
  213. package/docs/examples/messaging/update-textmagic-provider.md +2 -7
  214. package/docs/examples/messaging/update-topic.md +2 -4
  215. package/docs/examples/messaging/update-twilio-provider.md +2 -7
  216. package/docs/examples/messaging/update-vonage-provider.md +2 -7
  217. package/docs/examples/migrations/create-appwrite-migration.md +5 -5
  218. package/docs/examples/migrations/create-csv-migration.md +4 -4
  219. package/docs/examples/migrations/create-firebase-migration.md +3 -3
  220. package/docs/examples/migrations/create-n-host-migration.md +8 -9
  221. package/docs/examples/migrations/create-supabase-migration.md +7 -8
  222. package/docs/examples/migrations/delete.md +1 -1
  223. package/docs/examples/migrations/get-appwrite-report.md +5 -5
  224. package/docs/examples/migrations/get-firebase-report.md +3 -3
  225. package/docs/examples/migrations/get-n-host-report.md +8 -9
  226. package/docs/examples/migrations/get-supabase-report.md +7 -8
  227. package/docs/examples/migrations/get.md +1 -1
  228. package/docs/examples/migrations/list.md +1 -3
  229. package/docs/examples/migrations/retry.md +1 -1
  230. package/docs/examples/project/create-variable.md +3 -4
  231. package/docs/examples/project/delete-variable.md +2 -2
  232. package/docs/examples/project/get-usage.md +3 -4
  233. package/docs/examples/project/get-variable.md +2 -2
  234. package/docs/examples/project/list-variables.md +1 -1
  235. package/docs/examples/project/update-variable.md +3 -5
  236. package/docs/examples/projects/create-dev-key.md +4 -4
  237. package/docs/examples/projects/create-jwt.md +3 -0
  238. package/docs/examples/projects/create-key.md +4 -5
  239. package/docs/examples/projects/create-platform.md +4 -7
  240. package/docs/examples/projects/create-smtp-test.md +6 -11
  241. package/docs/examples/projects/create-webhook.md +6 -9
  242. package/docs/examples/projects/create.md +3 -13
  243. package/docs/examples/projects/delete-dev-key.md +3 -3
  244. package/docs/examples/projects/delete-email-template.md +4 -4
  245. package/docs/examples/projects/delete-key.md +3 -3
  246. package/docs/examples/projects/delete-platform.md +3 -3
  247. package/docs/examples/projects/delete-sms-template.md +4 -4
  248. package/docs/examples/projects/delete-webhook.md +3 -3
  249. package/docs/examples/projects/delete.md +1 -1
  250. package/docs/examples/projects/get-dev-key.md +3 -3
  251. package/docs/examples/projects/get-email-template.md +4 -4
  252. package/docs/examples/projects/get-key.md +3 -3
  253. package/docs/examples/projects/get-platform.md +3 -3
  254. package/docs/examples/projects/get-sms-template.md +4 -4
  255. package/docs/examples/projects/get-webhook.md +3 -3
  256. package/docs/examples/projects/get.md +1 -1
  257. package/docs/examples/projects/list-dev-keys.md +2 -3
  258. package/docs/examples/projects/list-keys.md +2 -2
  259. package/docs/examples/projects/list-platforms.md +2 -2
  260. package/docs/examples/projects/list-webhooks.md +2 -2
  261. package/docs/examples/projects/list.md +1 -3
  262. package/docs/examples/projects/update-api-status-all.md +3 -3
  263. package/docs/examples/projects/update-api-status.md +4 -4
  264. package/docs/examples/projects/update-auth-duration.md +3 -3
  265. package/docs/examples/projects/update-auth-limit.md +3 -3
  266. package/docs/examples/projects/update-auth-password-dictionary.md +3 -3
  267. package/docs/examples/projects/update-auth-password-history.md +3 -3
  268. package/docs/examples/projects/update-auth-sessions-limit.md +3 -3
  269. package/docs/examples/projects/update-auth-status.md +4 -4
  270. package/docs/examples/projects/update-dev-key.md +5 -5
  271. package/docs/examples/projects/update-email-template.md +6 -9
  272. package/docs/examples/projects/update-key.md +5 -6
  273. package/docs/examples/projects/update-memberships-privacy.md +5 -5
  274. package/docs/examples/projects/update-mock-numbers.md +3 -3
  275. package/docs/examples/projects/update-o-auth-2.md +3 -0
  276. package/docs/examples/projects/update-personal-data-check.md +3 -3
  277. package/docs/examples/projects/update-platform.md +4 -7
  278. package/docs/examples/projects/update-service-status-all.md +3 -3
  279. package/docs/examples/projects/update-service-status.md +4 -4
  280. package/docs/examples/projects/update-session-alerts.md +3 -3
  281. package/docs/examples/projects/update-session-invalidation.md +3 -0
  282. package/docs/examples/projects/update-sms-template.md +5 -5
  283. package/docs/examples/projects/update-smtp.md +3 -11
  284. package/docs/examples/projects/update-team.md +3 -3
  285. package/docs/examples/projects/update-webhook-signature.md +3 -3
  286. package/docs/examples/projects/update-webhook.md +7 -10
  287. package/docs/examples/projects/update.md +2 -11
  288. package/docs/examples/proxy/create-api-rule.md +2 -0
  289. package/docs/examples/proxy/create-function-rule.md +3 -4
  290. package/docs/examples/proxy/create-redirect-rule.md +6 -6
  291. package/docs/examples/proxy/create-site-rule.md +3 -4
  292. package/docs/examples/proxy/delete-rule.md +2 -2
  293. package/docs/examples/proxy/get-rule.md +2 -2
  294. package/docs/examples/proxy/list-rules.md +1 -3
  295. package/docs/examples/proxy/update-rule-verification.md +2 -2
  296. package/docs/examples/sites/create-deployment.md +4 -7
  297. package/docs/examples/sites/create-duplicate-deployment.md +3 -3
  298. package/docs/examples/sites/create-template-deployment.md +6 -7
  299. package/docs/examples/sites/create-variable.md +4 -5
  300. package/docs/examples/sites/create-vcs-deployment.md +4 -5
  301. package/docs/examples/sites/create.md +4 -18
  302. package/docs/examples/sites/delete-deployment.md +3 -3
  303. package/docs/examples/sites/delete-log.md +3 -3
  304. package/docs/examples/sites/delete-variable.md +3 -3
  305. package/docs/examples/sites/delete.md +1 -1
  306. package/docs/examples/sites/get-deployment-download.md +3 -4
  307. package/docs/examples/sites/get-deployment.md +3 -3
  308. package/docs/examples/sites/get-log.md +3 -3
  309. package/docs/examples/sites/get-template.md +2 -2
  310. package/docs/examples/sites/get-usage.md +2 -3
  311. package/docs/examples/sites/get-variable.md +3 -3
  312. package/docs/examples/sites/get.md +1 -1
  313. package/docs/examples/sites/list-deployments.md +2 -4
  314. package/docs/examples/sites/list-frameworks.md +1 -1
  315. package/docs/examples/sites/list-logs.md +2 -3
  316. package/docs/examples/sites/list-specifications.md +1 -1
  317. package/docs/examples/sites/list-templates.md +1 -5
  318. package/docs/examples/sites/list-usage.md +1 -2
  319. package/docs/examples/sites/list-variables.md +2 -2
  320. package/docs/examples/sites/list.md +1 -3
  321. package/docs/examples/sites/update-deployment-status.md +3 -3
  322. package/docs/examples/sites/update-site-deployment.md +3 -3
  323. package/docs/examples/sites/update-variable.md +4 -6
  324. package/docs/examples/sites/update.md +3 -18
  325. package/docs/examples/storage/create-bucket.md +3 -11
  326. package/docs/examples/storage/create-file.md +4 -5
  327. package/docs/examples/storage/delete-bucket.md +2 -2
  328. package/docs/examples/storage/delete-file.md +3 -3
  329. package/docs/examples/storage/get-bucket-usage.md +2 -3
  330. package/docs/examples/storage/get-bucket.md +2 -2
  331. package/docs/examples/storage/get-file-download.md +3 -4
  332. package/docs/examples/storage/get-file-preview.md +3 -15
  333. package/docs/examples/storage/get-file-view.md +3 -4
  334. package/docs/examples/storage/get-file.md +3 -3
  335. package/docs/examples/storage/get-usage.md +1 -2
  336. package/docs/examples/storage/list-buckets.md +1 -3
  337. package/docs/examples/storage/list-files.md +2 -4
  338. package/docs/examples/storage/update-bucket.md +3 -11
  339. package/docs/examples/storage/update-file.md +3 -5
  340. package/docs/examples/tablesdb/create-boolean-column.md +5 -0
  341. package/docs/examples/tablesdb/create-datetime-column.md +5 -0
  342. package/docs/examples/tablesdb/create-email-column.md +5 -0
  343. package/docs/examples/tablesdb/create-enum-column.md +6 -0
  344. package/docs/examples/tablesdb/create-float-column.md +5 -0
  345. package/docs/examples/tablesdb/create-index.md +6 -0
  346. package/docs/examples/tablesdb/create-integer-column.md +5 -0
  347. package/docs/examples/tablesdb/create-ip-column.md +5 -0
  348. package/docs/examples/tablesdb/create-relationship-column.md +5 -0
  349. package/docs/examples/tablesdb/create-row.md +5 -0
  350. package/docs/examples/tablesdb/create-rows.md +4 -0
  351. package/docs/examples/tablesdb/create-string-column.md +6 -0
  352. package/docs/examples/tablesdb/create-table.md +4 -0
  353. package/docs/examples/tablesdb/create-url-column.md +5 -0
  354. package/docs/examples/tablesdb/create.md +3 -0
  355. package/docs/examples/tablesdb/decrement-row-column.md +5 -0
  356. package/docs/examples/tablesdb/delete-column.md +4 -0
  357. package/docs/examples/tablesdb/delete-index.md +4 -0
  358. package/docs/examples/tablesdb/delete-row.md +4 -0
  359. package/docs/examples/tablesdb/delete-rows.md +3 -0
  360. package/docs/examples/tablesdb/delete-table.md +3 -0
  361. package/docs/examples/tablesdb/delete.md +2 -0
  362. package/docs/examples/tablesdb/get-column.md +4 -0
  363. package/docs/examples/tablesdb/get-index.md +4 -0
  364. package/docs/examples/tablesdb/get-row.md +4 -0
  365. package/docs/examples/tablesdb/get-table-usage.md +3 -0
  366. package/docs/examples/tablesdb/get-table.md +3 -0
  367. package/docs/examples/tablesdb/get-usage.md +2 -0
  368. package/docs/examples/tablesdb/get.md +2 -0
  369. package/docs/examples/tablesdb/increment-row-column.md +5 -0
  370. package/docs/examples/tablesdb/list-columns.md +3 -0
  371. package/docs/examples/tablesdb/list-indexes.md +3 -0
  372. package/docs/examples/tablesdb/list-row-logs.md +4 -0
  373. package/docs/examples/tablesdb/list-rows.md +3 -0
  374. package/docs/examples/tablesdb/list-table-logs.md +3 -0
  375. package/docs/examples/tablesdb/list-tables.md +2 -0
  376. package/docs/examples/tablesdb/list-usage.md +1 -0
  377. package/docs/examples/tablesdb/list.md +1 -0
  378. package/docs/examples/tablesdb/update-boolean-column.md +6 -0
  379. package/docs/examples/tablesdb/update-datetime-column.md +6 -0
  380. package/docs/examples/tablesdb/update-email-column.md +6 -0
  381. package/docs/examples/tablesdb/update-enum-column.md +7 -0
  382. package/docs/examples/tablesdb/update-float-column.md +6 -0
  383. package/docs/examples/tablesdb/update-integer-column.md +6 -0
  384. package/docs/examples/tablesdb/update-ip-column.md +6 -0
  385. package/docs/examples/tablesdb/update-relationship-column.md +4 -0
  386. package/docs/examples/tablesdb/update-row.md +4 -0
  387. package/docs/examples/tablesdb/update-rows.md +3 -0
  388. package/docs/examples/tablesdb/update-string-column.md +6 -0
  389. package/docs/examples/tablesdb/update-table.md +4 -0
  390. package/docs/examples/tablesdb/update-url-column.md +6 -0
  391. package/docs/examples/tablesdb/update.md +3 -0
  392. package/docs/examples/tablesdb/upsert-row.md +4 -0
  393. package/docs/examples/tablesdb/upsert-rows.md +4 -0
  394. package/docs/examples/teams/create-membership.md +3 -8
  395. package/docs/examples/teams/create.md +2 -3
  396. package/docs/examples/teams/delete-membership.md +3 -3
  397. package/docs/examples/teams/delete.md +1 -1
  398. package/docs/examples/teams/get-membership.md +3 -3
  399. package/docs/examples/teams/get-prefs.md +2 -2
  400. package/docs/examples/teams/get.md +1 -1
  401. package/docs/examples/teams/list-logs.md +2 -3
  402. package/docs/examples/teams/list-memberships.md +2 -4
  403. package/docs/examples/teams/list.md +1 -3
  404. package/docs/examples/teams/update-membership-status.md +5 -5
  405. package/docs/examples/teams/update-membership.md +4 -4
  406. package/docs/examples/teams/update-name.md +3 -3
  407. package/docs/examples/teams/update-prefs.md +3 -3
  408. package/docs/examples/tokens/create-file-token.md +3 -4
  409. package/docs/examples/tokens/delete.md +1 -1
  410. package/docs/examples/tokens/get.md +1 -1
  411. package/docs/examples/tokens/list.md +2 -3
  412. package/docs/examples/tokens/update.md +1 -2
  413. package/docs/examples/users/create-argon-2-user.md +4 -0
  414. package/docs/examples/users/create-bcrypt-user.md +4 -5
  415. package/docs/examples/users/create-jwt.md +2 -0
  416. package/docs/examples/users/create-md-5-user.md +4 -0
  417. package/docs/examples/users/create-mfa-recovery-codes.md +2 -2
  418. package/docs/examples/users/create-ph-pass-user.md +4 -0
  419. package/docs/examples/users/create-scrypt-modified-user.md +7 -8
  420. package/docs/examples/users/create-scrypt-user.md +9 -10
  421. package/docs/examples/users/create-session.md +2 -2
  422. package/docs/examples/users/create-sha-user.md +4 -0
  423. package/docs/examples/users/create-target.md +5 -7
  424. package/docs/examples/users/create-token.md +2 -4
  425. package/docs/examples/users/create.md +1 -5
  426. package/docs/examples/users/delete-identity.md +2 -2
  427. package/docs/examples/users/delete-mfa-authenticator.md +3 -3
  428. package/docs/examples/users/delete-session.md +3 -3
  429. package/docs/examples/users/delete-sessions.md +2 -2
  430. package/docs/examples/users/delete-target.md +3 -3
  431. package/docs/examples/users/delete.md +1 -1
  432. package/docs/examples/users/get-mfa-recovery-codes.md +2 -2
  433. package/docs/examples/users/get-prefs.md +2 -2
  434. package/docs/examples/users/get-target.md +3 -3
  435. package/docs/examples/users/get-usage.md +1 -2
  436. package/docs/examples/users/get.md +1 -1
  437. package/docs/examples/users/list-identities.md +1 -3
  438. package/docs/examples/users/list-logs.md +2 -3
  439. package/docs/examples/users/list-memberships.md +2 -4
  440. package/docs/examples/users/list-mfa-factors.md +2 -2
  441. package/docs/examples/users/list-sessions.md +2 -2
  442. package/docs/examples/users/list-targets.md +2 -3
  443. package/docs/examples/users/list.md +1 -3
  444. package/docs/examples/users/update-email-verification.md +3 -3
  445. package/docs/examples/users/update-email.md +3 -3
  446. package/docs/examples/users/update-labels.md +3 -3
  447. package/docs/examples/users/update-mfa-recovery-codes.md +2 -2
  448. package/docs/examples/users/update-mfa.md +3 -3
  449. package/docs/examples/users/update-name.md +3 -3
  450. package/docs/examples/users/update-password.md +3 -3
  451. package/docs/examples/users/update-phone-verification.md +3 -3
  452. package/docs/examples/users/update-phone.md +3 -3
  453. package/docs/examples/users/update-prefs.md +3 -3
  454. package/docs/examples/users/update-status.md +3 -3
  455. package/docs/examples/users/update-target.md +3 -6
  456. package/docs/examples/vcs/create-repository-detection.md +4 -5
  457. package/docs/examples/vcs/create-repository.md +4 -4
  458. package/docs/examples/vcs/delete-installation.md +2 -2
  459. package/docs/examples/vcs/get-installation.md +2 -2
  460. package/docs/examples/vcs/get-repository-contents.md +3 -5
  461. package/docs/examples/vcs/get-repository.md +3 -3
  462. package/docs/examples/vcs/list-installations.md +1 -3
  463. package/docs/examples/vcs/list-repositories.md +3 -4
  464. package/docs/examples/vcs/list-repository-branches.md +3 -3
  465. package/docs/examples/vcs/update-external-deployments.md +4 -4
  466. package/index.js +40 -0
  467. package/install.ps1 +2 -2
  468. package/install.sh +1 -1
  469. package/lib/client.js +3 -8
  470. package/lib/commands/account.js +55 -103
  471. package/lib/commands/avatars.js +1 -8
  472. package/lib/commands/console.js +1 -3
  473. package/lib/commands/databases.js +178 -233
  474. package/lib/commands/functions.js +3 -33
  475. package/lib/commands/graphql.js +1 -3
  476. package/lib/commands/health.js +1 -23
  477. package/lib/commands/init.js +1 -1
  478. package/lib/commands/locale.js +1 -9
  479. package/lib/commands/messaging.js +41 -87
  480. package/lib/commands/migrations.js +7 -15
  481. package/lib/commands/project.js +1 -7
  482. package/lib/commands/projects.js +77 -86
  483. package/lib/commands/proxy.js +1 -9
  484. package/lib/commands/pull.js +62 -1
  485. package/lib/commands/push.js +163 -8
  486. package/lib/commands/run.js +1 -1
  487. package/lib/commands/sites.js +3 -32
  488. package/lib/commands/storage.js +3 -18
  489. package/lib/commands/tables-db.js +2896 -0
  490. package/lib/commands/teams.js +1 -15
  491. package/lib/commands/tokens.js +1 -6
  492. package/lib/commands/update.js +218 -0
  493. package/lib/commands/users.js +32 -75
  494. package/lib/commands/vcs.js +1 -11
  495. package/lib/config.js +73 -0
  496. package/lib/parser.js +2 -1
  497. package/lib/questions.js +32 -7
  498. package/lib/utils.js +39 -2
  499. package/package.json +1 -1
  500. package/scoop/{appwrite.json → appwrite.config.json} +3 -3
  501. package/docs/examples/account/create-j-w-t.md +0 -1
  502. package/docs/examples/account/create-magic-u-r-l-token.md +0 -5
  503. package/docs/examples/account/create-o-auth2session.md +0 -5
  504. package/docs/examples/account/create-o-auth2token.md +0 -5
  505. package/docs/examples/account/update-m-f-a.md +0 -2
  506. package/docs/examples/account/update-magic-u-r-l-session.md +0 -3
  507. package/docs/examples/avatars/get-q-r.md +0 -5
  508. package/docs/examples/databases/get-database-usage.md +0 -3
  509. package/docs/examples/health/get-d-b.md +0 -1
  510. package/docs/examples/locale/list-countries-e-u.md +0 -1
  511. package/docs/examples/messaging/create-msg91provider.md +0 -7
  512. package/docs/examples/messaging/update-msg91provider.md +0 -7
  513. package/docs/examples/projects/create-j-w-t.md +0 -4
  514. package/docs/examples/projects/update-o-auth2.md +0 -6
  515. package/docs/examples/proxy/create-a-p-i-rule.md +0 -2
  516. package/docs/examples/users/create-argon2user.md +0 -5
  517. package/docs/examples/users/create-j-w-t.md +0 -4
  518. package/docs/examples/users/create-m-d5user.md +0 -5
  519. package/docs/examples/users/create-p-h-pass-user.md +0 -5
  520. package/docs/examples/users/create-s-h-a-user.md +0 -6
package/lib/parser.js CHANGED
@@ -122,7 +122,7 @@ const parseError = (err) => {
122
122
  } catch {
123
123
  }
124
124
 
125
- const version = '8.3.0';
125
+ const version = '9.0.1';
126
126
  const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``;
127
127
  const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud()}`;
128
128
 
@@ -216,6 +216,7 @@ const commandDescriptions = {
216
216
  "sites": `The sites command allows you to view, create and manage your Appwrite Sites.`,
217
217
  "storage": `The storage command allows you to manage your project files.`,
218
218
  "teams": `The teams command allows you to group users of your project to enable them to share read and write access to your project resources.`,
219
+ "update": `The update command allows you to update the Appwrite CLI to the latest version.`,
219
220
  "users": `The users command allows you to manage your project users.`,
220
221
  "client": `The client command allows you to configure your CLI`,
221
222
  "login": `The login command allows you to authenticate and manage a user account.`,
package/lib/questions.js CHANGED
@@ -255,10 +255,11 @@ const questionsPullResources = [
255
255
  choices: [
256
256
  { name: `Settings ${chalk.blackBright(`(Project)`)}`, value: 'settings' },
257
257
  { name: `Functions ${chalk.blackBright(`(Deployment)`)}`, value: 'functions' },
258
- { name: `Collections ${chalk.blackBright(`(Databases)`)}`, value: 'collections' },
258
+ { name: `Tables ${chalk.blackBright(`(TablesDB)`)}`, value: 'tables' },
259
259
  { name: `Buckets ${chalk.blackBright(`(Storage)`)}`, value: 'buckets' },
260
260
  { name: `Teams ${chalk.blackBright(`(Auth)`)}`, value: 'teams' },
261
- { name: `Topics ${chalk.blackBright(`(Messaging)`)}`, value: 'messages' }
261
+ { name: `Topics ${chalk.blackBright(`(Messaging)`)}`, value: 'messages' },
262
+ { name: `Collections ${chalk.blackBright(`(Database)`)}`, value: 'collections' }
262
263
  ]
263
264
  }
264
265
  ]
@@ -666,10 +667,11 @@ const questionsPushResources = [
666
667
  choices: [
667
668
  { name: `Settings ${chalk.blackBright(`(Project)`)}`, value: 'settings' },
668
669
  { name: `Functions ${chalk.blackBright(`(Deployment)`)}`, value: 'functions' },
669
- { name: `Collections ${chalk.blackBright(`(Databases)`)}`, value: 'collections' },
670
+ { name: `Tables ${chalk.blackBright(`(TablesDB)`)}`, value: 'tables' },
670
671
  { name: `Buckets ${chalk.blackBright(`(Storage)`)}`, value: 'buckets' },
671
672
  { name: `Teams ${chalk.blackBright(`(Auth)`)}`, value: 'teams' },
672
- { name: `Topics ${chalk.blackBright(`(Messaging)`)}`, value: 'messages' }
673
+ { name: `Topics ${chalk.blackBright(`(Messaging)`)}`, value: 'messages' },
674
+ { name: `Collections ${chalk.blackBright(`(Database)`)}`, value: 'collections' }
673
675
  ]
674
676
  }
675
677
  ];
@@ -682,10 +684,11 @@ const questionsInitResources = [
682
684
  choices: [
683
685
  { name: 'Function', value: 'function' },
684
686
  { name: 'Site', value: 'site' },
685
- { name: 'Collection', value: 'collection' },
687
+ { name: 'Table', value: 'table' },
686
688
  { name: 'Bucket', value: 'bucket' },
687
689
  { name: 'Team', value: 'team' },
688
- { name: 'Topic', value: 'message' }
690
+ { name: 'Topic', value: 'message' },
691
+ { name: 'Collection', value: 'collection' }
689
692
  ]
690
693
  }
691
694
  ];
@@ -753,6 +756,27 @@ const questionsPushCollections = [
753
756
  }
754
757
  ];
755
758
 
759
+ const questionsPushTables = [
760
+ {
761
+ type: "checkbox",
762
+ name: "tables",
763
+ message: "Which tables would you like to push?",
764
+ validate: (value) => validateRequired('table', value),
765
+ when: () => localConfig.getTables().length > 0,
766
+ choices: () => {
767
+ let tables = localConfig.getTables();
768
+ checkDeployConditions(localConfig)
769
+
770
+ return tables.map(table => {
771
+ return {
772
+ name: `${table.name} (${table['databaseId']} - ${table['$id']})`,
773
+ value: `${table['databaseId']}|${table['$id']}`
774
+ }
775
+ });
776
+ }
777
+ }
778
+ ];
779
+
756
780
  const questionPushChanges = [
757
781
  {
758
782
  type: "input",
@@ -1002,5 +1026,6 @@ module.exports = {
1002
1026
  questionsCreateTeam,
1003
1027
  questionPushChanges,
1004
1028
  questionPushChangesConfirmation,
1005
- questionsCreateSite
1029
+ questionsCreateSite,
1030
+ questionsPushTables
1006
1031
  };
package/lib/utils.js CHANGED
@@ -3,8 +3,43 @@ const path = require("path");
3
3
  const net = require("net");
4
4
  const childProcess = require('child_process');
5
5
  const chalk = require('chalk');
6
+ const { fetch } = require("undici");
6
7
  const { localConfig, globalConfig } = require("./config");
7
8
 
9
+ /**
10
+ * Get the latest version from npm registry
11
+ */
12
+ async function getLatestVersion() {
13
+ try {
14
+ const response = await fetch('https://registry.npmjs.org/appwrite-cli/latest');
15
+ if (!response.ok) {
16
+ throw new Error(`HTTP ${response.status}`);
17
+ }
18
+ const data = await response.json();
19
+ return data.version;
20
+ } catch (e) {
21
+ throw new Error(`Failed to fetch latest version: ${e.message}`);
22
+ }
23
+ }
24
+
25
+ /**
26
+ * Compare versions using semantic versioning
27
+ */
28
+ function compareVersions(current, latest) {
29
+ const currentParts = current.split('.').map(Number);
30
+ const latestParts = latest.split('.').map(Number);
31
+
32
+ for (let i = 0; i < Math.max(currentParts.length, latestParts.length); i++) {
33
+ const currentPart = currentParts[i] || 0;
34
+ const latestPart = latestParts[i] || 0;
35
+
36
+ if (latestPart > currentPart) return 1; // Latest is newer
37
+ if (latestPart < currentPart) return -1; // Current is newer
38
+ }
39
+
40
+ return 0; // Same version
41
+ }
42
+
8
43
  function getAllFiles(folder) {
9
44
  const files = [];
10
45
  for (const pathDir of fs.readdirSync(folder)) {
@@ -60,7 +95,7 @@ function systemHasCommand(command) {
60
95
 
61
96
  const checkDeployConditions = (localConfig) => {
62
97
  if (Object.keys(localConfig.data).length === 0) {
63
- throw new Error("No appwrite.json file found in the current directory. Please run this command again in the folder containing your appwrite.json file, or run 'appwrite init project' to link current directory to an Appwrite project.");
98
+ throw new Error("No appwrite.config.json file found in the current directory. Please run this command again in the folder containing your appwrite.config.json file, or run 'appwrite init project' to link current directory to an Appwrite project.");
64
99
  }
65
100
  }
66
101
 
@@ -285,5 +320,7 @@ module.exports = {
285
320
  systemHasCommand,
286
321
  checkDeployConditions,
287
322
  showConsoleLink,
288
- isCloud
323
+ isCloud,
324
+ getLatestVersion,
325
+ compareVersions
289
326
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "appwrite-cli",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "8.3.0",
5
+ "version": "9.0.1",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "index.js",
8
8
  "bin": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3
- "version": "8.3.0",
3
+ "version": "9.0.1",
4
4
  "description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
5
5
  "homepage": "https://github.com/appwrite/sdk-for-cli",
6
6
  "license": "BSD-3-Clause",
7
7
  "architecture": {
8
8
  "64bit": {
9
- "url": "https://github.com/appwrite/sdk-for-cli/releases/download/8.3.0/appwrite-cli-win-x64.exe",
9
+ "url": "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.1/appwrite-cli-win-x64.exe",
10
10
  "bin": [
11
11
  [
12
12
  "appwrite-cli-win-x64.exe",
@@ -15,7 +15,7 @@
15
15
  ]
16
16
  },
17
17
  "arm64": {
18
- "url": "https://github.com/appwrite/sdk-for-cli/releases/download/8.3.0/appwrite-cli-win-arm64.exe",
18
+ "url": "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.1/appwrite-cli-win-arm64.exe",
19
19
  "bin": [
20
20
  [
21
21
  "appwrite-cli-win-arm64.exe",
@@ -1 +0,0 @@
1
- appwrite account createJWT
@@ -1,5 +0,0 @@
1
- appwrite account createMagicURLToken \
2
- --userId <USER_ID> \
3
- --email email@example.com \
4
-
5
-
@@ -1,5 +0,0 @@
1
- appwrite account createOAuth2Session \
2
- --provider amazon \
3
-
4
-
5
-
@@ -1,5 +0,0 @@
1
- appwrite account createOAuth2Token \
2
- --provider amazon \
3
-
4
-
5
-
@@ -1,2 +0,0 @@
1
- appwrite account updateMFA \
2
- --mfa false
@@ -1,3 +0,0 @@
1
- appwrite account updateMagicURLSession \
2
- --userId <USER_ID> \
3
- --secret <SECRET>
@@ -1,5 +0,0 @@
1
- appwrite avatars getQR \
2
- --text <TEXT> \
3
-
4
-
5
-
@@ -1,3 +0,0 @@
1
- appwrite databases getDatabaseUsage \
2
- --databaseId <DATABASE_ID> \
3
-
@@ -1 +0,0 @@
1
- appwrite health getDB
@@ -1 +0,0 @@
1
- appwrite locale listCountriesEU
@@ -1,7 +0,0 @@
1
- appwrite messaging createMsg91Provider \
2
- --providerId <PROVIDER_ID> \
3
- --name <NAME> \
4
-
5
-
6
-
7
-
@@ -1,7 +0,0 @@
1
- appwrite messaging updateMsg91Provider \
2
- --providerId <PROVIDER_ID> \
3
-
4
-
5
-
6
-
7
-
@@ -1,4 +0,0 @@
1
- appwrite projects createJWT \
2
- --projectId <PROJECT_ID> \
3
- --scopes one two three \
4
-
@@ -1,6 +0,0 @@
1
- appwrite projects updateOAuth2 \
2
- --projectId <PROJECT_ID> \
3
- --provider amazon \
4
-
5
-
6
-
@@ -1,2 +0,0 @@
1
- appwrite proxy createAPIRule \
2
- --domain ''
@@ -1,5 +0,0 @@
1
- appwrite users createArgon2User \
2
- --userId <USER_ID> \
3
- --email email@example.com \
4
- --password password \
5
-
@@ -1,4 +0,0 @@
1
- appwrite users createJWT \
2
- --userId <USER_ID> \
3
-
4
-
@@ -1,5 +0,0 @@
1
- appwrite users createMD5User \
2
- --userId <USER_ID> \
3
- --email email@example.com \
4
- --password password \
5
-
@@ -1,5 +0,0 @@
1
- appwrite users createPHPassUser \
2
- --userId <USER_ID> \
3
- --email email@example.com \
4
- --password password \
5
-
@@ -1,6 +0,0 @@
1
- appwrite users createSHAUser \
2
- --userId <USER_ID> \
3
- --email email@example.com \
4
- --password password \
5
-
6
-