appwrite-cli 8.2.2 → 9.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.
- package/CHANGELOG.md +12 -0
- package/README.md +5 -5
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-email-password-session.md +3 -3
- package/docs/examples/account/create-email-token.md +3 -4
- package/docs/examples/account/create-jwt.md +1 -0
- package/docs/examples/account/create-magic-url-token.md +3 -0
- package/docs/examples/account/create-mfa-authenticator.md +2 -2
- package/docs/examples/account/create-mfa-challenge.md +2 -2
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-o-auth-2-session.md +2 -0
- package/docs/examples/account/create-o-auth-2-token.md +2 -0
- package/docs/examples/account/create-phone-token.md +3 -3
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +3 -4
- package/docs/examples/account/create-recovery.md +3 -3
- package/docs/examples/account/create-session.md +3 -3
- package/docs/examples/account/create-verification.md +2 -2
- package/docs/examples/account/create.md +3 -4
- package/docs/examples/account/delete-identity.md +2 -2
- package/docs/examples/account/delete-mfa-authenticator.md +2 -2
- package/docs/examples/account/delete-push-target.md +2 -2
- package/docs/examples/account/delete-session.md +2 -2
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +2 -2
- package/docs/examples/account/list-identities.md +1 -2
- package/docs/examples/account/list-logs.md +1 -2
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-email.md +3 -3
- package/docs/examples/account/update-magic-url-session.md +3 -0
- package/docs/examples/account/update-mfa-authenticator.md +3 -3
- package/docs/examples/account/update-mfa-challenge.md +3 -3
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-mfa.md +2 -0
- package/docs/examples/account/update-name.md +2 -2
- package/docs/examples/account/update-password.md +2 -3
- package/docs/examples/account/update-phone-session.md +3 -3
- package/docs/examples/account/update-phone-verification.md +3 -3
- package/docs/examples/account/update-phone.md +3 -3
- package/docs/examples/account/update-prefs.md +2 -2
- package/docs/examples/account/update-push-target.md +3 -3
- package/docs/examples/account/update-recovery.md +4 -4
- package/docs/examples/account/update-session.md +2 -2
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +3 -3
- package/docs/examples/avatars/get-browser.md +2 -5
- package/docs/examples/avatars/get-credit-card.md +2 -5
- package/docs/examples/avatars/get-favicon.md +2 -2
- package/docs/examples/avatars/get-flag.md +2 -5
- package/docs/examples/avatars/get-image.md +2 -4
- package/docs/examples/avatars/get-initials.md +1 -5
- package/docs/examples/avatars/get-qr.md +2 -0
- package/docs/examples/console/get-resource.md +3 -3
- package/docs/examples/databases/create-boolean-attribute.md +5 -7
- package/docs/examples/databases/create-collection.md +4 -7
- package/docs/examples/databases/create-datetime-attribute.md +5 -7
- package/docs/examples/databases/create-document.md +5 -6
- package/docs/examples/databases/create-documents.md +4 -4
- package/docs/examples/databases/create-email-attribute.md +5 -7
- package/docs/examples/databases/create-enum-attribute.md +6 -8
- package/docs/examples/databases/create-float-attribute.md +5 -9
- package/docs/examples/databases/create-index.md +6 -8
- package/docs/examples/databases/create-integer-attribute.md +5 -9
- package/docs/examples/databases/create-ip-attribute.md +5 -7
- package/docs/examples/databases/create-relationship-attribute.md +5 -9
- package/docs/examples/databases/create-string-attribute.md +6 -9
- package/docs/examples/databases/create-url-attribute.md +5 -7
- package/docs/examples/databases/create.md +2 -3
- package/docs/examples/databases/decrement-document-attribute.md +5 -0
- package/docs/examples/databases/delete-attribute.md +4 -4
- package/docs/examples/databases/delete-collection.md +3 -3
- package/docs/examples/databases/delete-document.md +4 -4
- package/docs/examples/databases/delete-documents.md +3 -4
- package/docs/examples/databases/delete-index.md +4 -4
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +4 -4
- package/docs/examples/databases/get-collection-usage.md +3 -4
- package/docs/examples/databases/get-collection.md +3 -3
- package/docs/examples/databases/get-document.md +4 -5
- package/docs/examples/databases/get-index.md +4 -4
- package/docs/examples/databases/get-usage.md +2 -2
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/increment-document-attribute.md +5 -0
- package/docs/examples/databases/list-attributes.md +3 -4
- package/docs/examples/databases/list-collection-logs.md +3 -4
- package/docs/examples/databases/list-collections.md +2 -4
- package/docs/examples/databases/list-document-logs.md +4 -5
- package/docs/examples/databases/list-documents.md +3 -4
- package/docs/examples/databases/list-indexes.md +3 -4
- package/docs/examples/databases/list-logs.md +2 -3
- package/docs/examples/databases/list-usage.md +1 -0
- package/docs/examples/databases/list.md +1 -3
- package/docs/examples/databases/update-boolean-attribute.md +6 -7
- package/docs/examples/databases/update-collection.md +4 -7
- package/docs/examples/databases/update-datetime-attribute.md +6 -7
- package/docs/examples/databases/update-document.md +4 -6
- package/docs/examples/databases/update-documents.md +3 -5
- package/docs/examples/databases/update-email-attribute.md +6 -7
- package/docs/examples/databases/update-enum-attribute.md +7 -8
- package/docs/examples/databases/update-float-attribute.md +6 -9
- package/docs/examples/databases/update-integer-attribute.md +6 -9
- package/docs/examples/databases/update-ip-attribute.md +6 -7
- package/docs/examples/databases/update-relationship-attribute.md +4 -6
- package/docs/examples/databases/update-string-attribute.md +6 -8
- package/docs/examples/databases/update-url-attribute.md +6 -7
- package/docs/examples/databases/update.md +2 -3
- package/docs/examples/databases/upsert-document.md +5 -6
- package/docs/examples/databases/upsert-documents.md +4 -4
- package/docs/examples/functions/create-deployment.md +4 -6
- package/docs/examples/functions/create-duplicate-deployment.md +3 -4
- package/docs/examples/functions/create-execution.md +2 -8
- package/docs/examples/functions/create-template-deployment.md +6 -7
- package/docs/examples/functions/create-variable.md +4 -5
- package/docs/examples/functions/create-vcs-deployment.md +4 -5
- package/docs/examples/functions/create.md +3 -18
- package/docs/examples/functions/delete-deployment.md +3 -3
- package/docs/examples/functions/delete-execution.md +3 -3
- package/docs/examples/functions/delete-variable.md +3 -3
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/get-deployment-download.md +3 -4
- package/docs/examples/functions/get-deployment.md +3 -3
- package/docs/examples/functions/get-execution.md +3 -3
- package/docs/examples/functions/get-template.md +2 -2
- package/docs/examples/functions/get-usage.md +2 -3
- package/docs/examples/functions/get-variable.md +3 -3
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +2 -4
- package/docs/examples/functions/list-executions.md +2 -3
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-specifications.md +1 -1
- package/docs/examples/functions/list-templates.md +1 -5
- package/docs/examples/functions/list-usage.md +1 -2
- package/docs/examples/functions/list-variables.md +2 -2
- package/docs/examples/functions/list.md +1 -3
- package/docs/examples/functions/update-deployment-status.md +3 -3
- package/docs/examples/functions/update-function-deployment.md +3 -3
- package/docs/examples/functions/update-variable.md +4 -6
- package/docs/examples/functions/update.md +2 -18
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-certificate.md +1 -2
- package/docs/examples/health/get-db.md +1 -0
- package/docs/examples/health/get-failed-jobs.md +2 -3
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -2
- package/docs/examples/health/get-queue-certificates.md +1 -2
- package/docs/examples/health/get-queue-databases.md +1 -3
- package/docs/examples/health/get-queue-deletes.md +1 -2
- package/docs/examples/health/get-queue-functions.md +1 -2
- package/docs/examples/health/get-queue-logs.md +1 -2
- package/docs/examples/health/get-queue-mails.md +1 -2
- package/docs/examples/health/get-queue-messaging.md +1 -2
- package/docs/examples/health/get-queue-migrations.md +1 -2
- package/docs/examples/health/get-queue-stats-resources.md +1 -2
- package/docs/examples/health/get-queue-usage.md +1 -2
- package/docs/examples/health/get-queue-webhooks.md +1 -2
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-storage.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-eu.md +1 -0
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-apns-provider.md +3 -9
- package/docs/examples/messaging/create-email.md +4 -13
- package/docs/examples/messaging/create-fcm-provider.md +3 -5
- package/docs/examples/messaging/create-mailgun-provider.md +3 -11
- package/docs/examples/messaging/create-msg-91-provider.md +3 -0
- package/docs/examples/messaging/create-push.md +2 -20
- package/docs/examples/messaging/create-sendgrid-provider.md +3 -9
- package/docs/examples/messaging/create-sms.md +3 -8
- package/docs/examples/messaging/create-smtp-provider.md +4 -15
- package/docs/examples/messaging/create-subscriber.md +4 -4
- package/docs/examples/messaging/create-telesign-provider.md +3 -7
- package/docs/examples/messaging/create-textmagic-provider.md +3 -7
- package/docs/examples/messaging/create-topic.md +3 -4
- package/docs/examples/messaging/create-twilio-provider.md +3 -7
- package/docs/examples/messaging/create-vonage-provider.md +3 -7
- package/docs/examples/messaging/delete-provider.md +2 -2
- package/docs/examples/messaging/delete-subscriber.md +3 -3
- package/docs/examples/messaging/delete-topic.md +2 -2
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +2 -2
- package/docs/examples/messaging/get-provider.md +2 -2
- package/docs/examples/messaging/get-subscriber.md +3 -3
- package/docs/examples/messaging/get-topic.md +2 -2
- package/docs/examples/messaging/list-message-logs.md +2 -3
- package/docs/examples/messaging/list-messages.md +1 -3
- package/docs/examples/messaging/list-provider-logs.md +2 -3
- package/docs/examples/messaging/list-providers.md +1 -3
- package/docs/examples/messaging/list-subscriber-logs.md +2 -3
- package/docs/examples/messaging/list-subscribers.md +2 -4
- package/docs/examples/messaging/list-targets.md +2 -3
- package/docs/examples/messaging/list-topic-logs.md +2 -3
- package/docs/examples/messaging/list-topics.md +1 -3
- package/docs/examples/messaging/update-apns-provider.md +2 -9
- package/docs/examples/messaging/update-email.md +2 -13
- package/docs/examples/messaging/update-fcm-provider.md +2 -5
- package/docs/examples/messaging/update-mailgun-provider.md +2 -11
- package/docs/examples/messaging/update-msg-91-provider.md +2 -0
- package/docs/examples/messaging/update-push.md +2 -20
- package/docs/examples/messaging/update-sendgrid-provider.md +2 -9
- package/docs/examples/messaging/update-sms.md +2 -8
- package/docs/examples/messaging/update-smtp-provider.md +2 -15
- package/docs/examples/messaging/update-telesign-provider.md +2 -7
- package/docs/examples/messaging/update-textmagic-provider.md +2 -7
- package/docs/examples/messaging/update-topic.md +2 -4
- package/docs/examples/messaging/update-twilio-provider.md +2 -7
- package/docs/examples/messaging/update-vonage-provider.md +2 -7
- package/docs/examples/migrations/create-appwrite-migration.md +5 -5
- package/docs/examples/migrations/create-csv-migration.md +4 -4
- package/docs/examples/migrations/create-firebase-migration.md +3 -3
- package/docs/examples/migrations/create-n-host-migration.md +8 -9
- package/docs/examples/migrations/create-supabase-migration.md +7 -8
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +5 -5
- package/docs/examples/migrations/get-firebase-report.md +3 -3
- package/docs/examples/migrations/get-n-host-report.md +8 -9
- package/docs/examples/migrations/get-supabase-report.md +7 -8
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list.md +1 -3
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/project/create-variable.md +3 -4
- package/docs/examples/project/delete-variable.md +2 -2
- package/docs/examples/project/get-usage.md +3 -4
- package/docs/examples/project/get-variable.md +2 -2
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +3 -5
- package/docs/examples/projects/create-dev-key.md +4 -4
- package/docs/examples/projects/create-jwt.md +3 -0
- package/docs/examples/projects/create-key.md +4 -5
- package/docs/examples/projects/create-platform.md +4 -7
- package/docs/examples/projects/create-smtp-test.md +6 -11
- package/docs/examples/projects/create-webhook.md +6 -9
- package/docs/examples/projects/create.md +3 -13
- package/docs/examples/projects/delete-dev-key.md +3 -3
- package/docs/examples/projects/delete-email-template.md +4 -4
- package/docs/examples/projects/delete-key.md +3 -3
- package/docs/examples/projects/delete-platform.md +3 -3
- package/docs/examples/projects/delete-sms-template.md +4 -4
- package/docs/examples/projects/delete-webhook.md +3 -3
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-dev-key.md +3 -3
- package/docs/examples/projects/get-email-template.md +4 -4
- package/docs/examples/projects/get-key.md +3 -3
- package/docs/examples/projects/get-platform.md +3 -3
- package/docs/examples/projects/get-sms-template.md +4 -4
- package/docs/examples/projects/get-webhook.md +3 -3
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-dev-keys.md +2 -3
- package/docs/examples/projects/list-keys.md +2 -2
- package/docs/examples/projects/list-platforms.md +2 -2
- package/docs/examples/projects/list-webhooks.md +2 -2
- package/docs/examples/projects/list.md +1 -3
- package/docs/examples/projects/update-api-status-all.md +3 -3
- package/docs/examples/projects/update-api-status.md +4 -4
- package/docs/examples/projects/update-auth-duration.md +3 -3
- package/docs/examples/projects/update-auth-limit.md +3 -3
- package/docs/examples/projects/update-auth-password-dictionary.md +3 -3
- package/docs/examples/projects/update-auth-password-history.md +3 -3
- package/docs/examples/projects/update-auth-sessions-limit.md +3 -3
- package/docs/examples/projects/update-auth-status.md +4 -4
- package/docs/examples/projects/update-dev-key.md +5 -5
- package/docs/examples/projects/update-email-template.md +6 -9
- package/docs/examples/projects/update-key.md +5 -6
- package/docs/examples/projects/update-memberships-privacy.md +5 -5
- package/docs/examples/projects/update-mock-numbers.md +3 -3
- package/docs/examples/projects/update-o-auth-2.md +3 -0
- package/docs/examples/projects/update-personal-data-check.md +3 -3
- package/docs/examples/projects/update-platform.md +4 -7
- package/docs/examples/projects/update-service-status-all.md +3 -3
- package/docs/examples/projects/update-service-status.md +4 -4
- package/docs/examples/projects/update-session-alerts.md +3 -3
- package/docs/examples/projects/update-session-invalidation.md +3 -0
- package/docs/examples/projects/update-sms-template.md +5 -5
- package/docs/examples/projects/update-smtp.md +3 -11
- package/docs/examples/projects/update-team.md +3 -3
- package/docs/examples/projects/update-webhook-signature.md +3 -3
- package/docs/examples/projects/update-webhook.md +7 -10
- package/docs/examples/projects/update.md +2 -11
- package/docs/examples/proxy/create-api-rule.md +2 -0
- package/docs/examples/proxy/create-function-rule.md +3 -4
- package/docs/examples/proxy/create-redirect-rule.md +6 -6
- package/docs/examples/proxy/create-site-rule.md +3 -4
- package/docs/examples/proxy/delete-rule.md +2 -2
- package/docs/examples/proxy/get-rule.md +2 -2
- package/docs/examples/proxy/list-rules.md +1 -3
- package/docs/examples/proxy/update-rule-verification.md +2 -2
- package/docs/examples/sites/create-deployment.md +4 -7
- package/docs/examples/sites/create-duplicate-deployment.md +3 -3
- package/docs/examples/sites/create-template-deployment.md +6 -7
- package/docs/examples/sites/create-variable.md +4 -5
- package/docs/examples/sites/create-vcs-deployment.md +4 -5
- package/docs/examples/sites/create.md +4 -18
- package/docs/examples/sites/delete-deployment.md +3 -3
- package/docs/examples/sites/delete-log.md +3 -3
- package/docs/examples/sites/delete-variable.md +3 -3
- package/docs/examples/sites/delete.md +1 -1
- package/docs/examples/sites/get-deployment-download.md +3 -4
- package/docs/examples/sites/get-deployment.md +3 -3
- package/docs/examples/sites/get-log.md +3 -3
- package/docs/examples/sites/get-template.md +2 -2
- package/docs/examples/sites/get-usage.md +2 -3
- package/docs/examples/sites/get-variable.md +3 -3
- package/docs/examples/sites/get.md +1 -1
- package/docs/examples/sites/list-deployments.md +2 -4
- package/docs/examples/sites/list-frameworks.md +1 -1
- package/docs/examples/sites/list-logs.md +2 -3
- package/docs/examples/sites/list-specifications.md +1 -1
- package/docs/examples/sites/list-templates.md +1 -5
- package/docs/examples/sites/list-usage.md +1 -2
- package/docs/examples/sites/list-variables.md +2 -2
- package/docs/examples/sites/list.md +1 -3
- package/docs/examples/sites/update-deployment-status.md +3 -3
- package/docs/examples/sites/update-site-deployment.md +3 -3
- package/docs/examples/sites/update-variable.md +4 -6
- package/docs/examples/sites/update.md +3 -18
- package/docs/examples/storage/create-bucket.md +3 -11
- package/docs/examples/storage/create-file.md +4 -5
- package/docs/examples/storage/delete-bucket.md +2 -2
- package/docs/examples/storage/delete-file.md +3 -3
- package/docs/examples/storage/get-bucket-usage.md +2 -3
- package/docs/examples/storage/get-bucket.md +2 -2
- package/docs/examples/storage/get-file-download.md +3 -4
- package/docs/examples/storage/get-file-preview.md +3 -15
- package/docs/examples/storage/get-file-view.md +3 -4
- package/docs/examples/storage/get-file.md +3 -3
- package/docs/examples/storage/get-usage.md +1 -2
- package/docs/examples/storage/list-buckets.md +1 -3
- package/docs/examples/storage/list-files.md +2 -4
- package/docs/examples/storage/update-bucket.md +3 -11
- package/docs/examples/storage/update-file.md +3 -5
- package/docs/examples/tablesdb/create-boolean-column.md +5 -0
- package/docs/examples/tablesdb/create-datetime-column.md +5 -0
- package/docs/examples/tablesdb/create-email-column.md +5 -0
- package/docs/examples/tablesdb/create-enum-column.md +6 -0
- package/docs/examples/tablesdb/create-float-column.md +5 -0
- package/docs/examples/tablesdb/create-index.md +6 -0
- package/docs/examples/tablesdb/create-integer-column.md +5 -0
- package/docs/examples/tablesdb/create-ip-column.md +5 -0
- package/docs/examples/tablesdb/create-relationship-column.md +5 -0
- package/docs/examples/tablesdb/create-row.md +5 -0
- package/docs/examples/tablesdb/create-rows.md +4 -0
- package/docs/examples/tablesdb/create-string-column.md +6 -0
- package/docs/examples/tablesdb/create-table.md +4 -0
- package/docs/examples/tablesdb/create-url-column.md +5 -0
- package/docs/examples/tablesdb/create.md +3 -0
- package/docs/examples/tablesdb/decrement-row-column.md +5 -0
- package/docs/examples/tablesdb/delete-column.md +4 -0
- package/docs/examples/tablesdb/delete-index.md +4 -0
- package/docs/examples/tablesdb/delete-row.md +4 -0
- package/docs/examples/tablesdb/delete-rows.md +3 -0
- package/docs/examples/tablesdb/delete-table.md +3 -0
- package/docs/examples/tablesdb/delete.md +2 -0
- package/docs/examples/tablesdb/get-column.md +4 -0
- package/docs/examples/tablesdb/get-index.md +4 -0
- package/docs/examples/tablesdb/get-row.md +4 -0
- package/docs/examples/tablesdb/get-table-usage.md +3 -0
- package/docs/examples/tablesdb/get-table.md +3 -0
- package/docs/examples/tablesdb/get-usage.md +2 -0
- package/docs/examples/tablesdb/get.md +2 -0
- package/docs/examples/tablesdb/increment-row-column.md +5 -0
- package/docs/examples/tablesdb/list-columns.md +3 -0
- package/docs/examples/tablesdb/list-indexes.md +3 -0
- package/docs/examples/tablesdb/list-row-logs.md +4 -0
- package/docs/examples/tablesdb/list-rows.md +3 -0
- package/docs/examples/tablesdb/list-table-logs.md +3 -0
- package/docs/examples/tablesdb/list-tables.md +2 -0
- package/docs/examples/tablesdb/list-usage.md +1 -0
- package/docs/examples/tablesdb/list.md +1 -0
- package/docs/examples/tablesdb/update-boolean-column.md +6 -0
- package/docs/examples/tablesdb/update-datetime-column.md +6 -0
- package/docs/examples/tablesdb/update-email-column.md +6 -0
- package/docs/examples/tablesdb/update-enum-column.md +7 -0
- package/docs/examples/tablesdb/update-float-column.md +6 -0
- package/docs/examples/tablesdb/update-integer-column.md +6 -0
- package/docs/examples/tablesdb/update-ip-column.md +6 -0
- package/docs/examples/tablesdb/update-relationship-column.md +4 -0
- package/docs/examples/tablesdb/update-row.md +4 -0
- package/docs/examples/tablesdb/update-rows.md +3 -0
- package/docs/examples/tablesdb/update-string-column.md +6 -0
- package/docs/examples/tablesdb/update-table.md +4 -0
- package/docs/examples/tablesdb/update-url-column.md +6 -0
- package/docs/examples/tablesdb/update.md +3 -0
- package/docs/examples/tablesdb/upsert-row.md +4 -0
- package/docs/examples/tablesdb/upsert-rows.md +4 -0
- package/docs/examples/teams/create-membership.md +3 -8
- package/docs/examples/teams/create.md +2 -3
- package/docs/examples/teams/delete-membership.md +3 -3
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +3 -3
- package/docs/examples/teams/get-prefs.md +2 -2
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +2 -3
- package/docs/examples/teams/list-memberships.md +2 -4
- package/docs/examples/teams/list.md +1 -3
- package/docs/examples/teams/update-membership-status.md +5 -5
- package/docs/examples/teams/update-membership.md +4 -4
- package/docs/examples/teams/update-name.md +3 -3
- package/docs/examples/teams/update-prefs.md +3 -3
- package/docs/examples/tokens/create-file-token.md +3 -4
- package/docs/examples/tokens/delete.md +1 -1
- package/docs/examples/tokens/get.md +1 -1
- package/docs/examples/tokens/list.md +2 -3
- package/docs/examples/tokens/update.md +1 -2
- package/docs/examples/users/create-argon-2-user.md +4 -0
- package/docs/examples/users/create-bcrypt-user.md +4 -5
- package/docs/examples/users/create-jwt.md +2 -0
- package/docs/examples/users/create-md-5-user.md +4 -0
- package/docs/examples/users/create-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/create-ph-pass-user.md +4 -0
- package/docs/examples/users/create-scrypt-modified-user.md +7 -8
- package/docs/examples/users/create-scrypt-user.md +9 -10
- package/docs/examples/users/create-session.md +2 -2
- package/docs/examples/users/create-sha-user.md +4 -0
- package/docs/examples/users/create-target.md +5 -7
- package/docs/examples/users/create-token.md +2 -4
- package/docs/examples/users/create.md +1 -5
- package/docs/examples/users/delete-identity.md +2 -2
- package/docs/examples/users/delete-mfa-authenticator.md +3 -3
- package/docs/examples/users/delete-session.md +3 -3
- package/docs/examples/users/delete-sessions.md +2 -2
- package/docs/examples/users/delete-target.md +3 -3
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/get-prefs.md +2 -2
- package/docs/examples/users/get-target.md +3 -3
- package/docs/examples/users/get-usage.md +1 -2
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -3
- package/docs/examples/users/list-logs.md +2 -3
- package/docs/examples/users/list-memberships.md +2 -4
- package/docs/examples/users/list-mfa-factors.md +2 -2
- package/docs/examples/users/list-sessions.md +2 -2
- package/docs/examples/users/list-targets.md +2 -3
- package/docs/examples/users/list.md +1 -3
- package/docs/examples/users/update-email-verification.md +3 -3
- package/docs/examples/users/update-email.md +3 -3
- package/docs/examples/users/update-labels.md +3 -3
- package/docs/examples/users/update-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/update-mfa.md +3 -3
- package/docs/examples/users/update-name.md +3 -3
- package/docs/examples/users/update-password.md +3 -3
- package/docs/examples/users/update-phone-verification.md +3 -3
- package/docs/examples/users/update-phone.md +3 -3
- package/docs/examples/users/update-prefs.md +3 -3
- package/docs/examples/users/update-status.md +3 -3
- package/docs/examples/users/update-target.md +3 -6
- package/docs/examples/vcs/create-repository-detection.md +4 -5
- package/docs/examples/vcs/create-repository.md +4 -4
- package/docs/examples/vcs/delete-installation.md +2 -2
- package/docs/examples/vcs/get-installation.md +2 -2
- package/docs/examples/vcs/get-repository-contents.md +3 -5
- package/docs/examples/vcs/get-repository.md +3 -3
- package/docs/examples/vcs/list-installations.md +1 -3
- package/docs/examples/vcs/list-repositories.md +3 -4
- package/docs/examples/vcs/list-repository-branches.md +3 -3
- package/docs/examples/vcs/update-external-deployments.md +4 -4
- package/index.js +40 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +3 -8
- package/lib/commands/account.js +55 -103
- package/lib/commands/avatars.js +1 -8
- package/lib/commands/console.js +1 -3
- package/lib/commands/databases.js +279 -226
- package/lib/commands/functions.js +3 -33
- package/lib/commands/graphql.js +1 -3
- package/lib/commands/health.js +1 -23
- package/lib/commands/init.js +1 -1
- package/lib/commands/locale.js +1 -9
- package/lib/commands/messaging.js +41 -87
- package/lib/commands/migrations.js +7 -15
- package/lib/commands/project.js +1 -7
- package/lib/commands/projects.js +77 -86
- package/lib/commands/proxy.js +1 -9
- package/lib/commands/pull.js +62 -1
- package/lib/commands/push.js +163 -8
- package/lib/commands/run.js +1 -1
- package/lib/commands/sites.js +3 -32
- package/lib/commands/storage.js +3 -18
- package/lib/commands/tables-db.js +2896 -0
- package/lib/commands/teams.js +1 -15
- package/lib/commands/tokens.js +1 -6
- package/lib/commands/types.js +7 -9
- package/lib/commands/update.js +218 -0
- package/lib/commands/users.js +34 -77
- package/lib/commands/vcs.js +2 -12
- package/lib/config.js +99 -14
- package/lib/parser.js +2 -1
- package/lib/questions.js +32 -7
- package/lib/type-generation/languages/dart.js +13 -13
- package/lib/type-generation/languages/java.js +13 -13
- package/lib/type-generation/languages/javascript.js +14 -14
- package/lib/type-generation/languages/kotlin.js +11 -10
- package/lib/type-generation/languages/php.js +15 -14
- package/lib/type-generation/languages/swift.js +13 -13
- package/lib/type-generation/languages/typescript.js +8 -8
- package/lib/utils.js +39 -2
- package/package.json +1 -1
- package/scoop/{appwrite.json → appwrite.config.json} +3 -3
- package/docs/examples/account/create-j-w-t.md +0 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +0 -5
- package/docs/examples/account/create-o-auth2session.md +0 -5
- package/docs/examples/account/create-o-auth2token.md +0 -5
- package/docs/examples/account/update-m-f-a.md +0 -2
- package/docs/examples/account/update-magic-u-r-l-session.md +0 -3
- package/docs/examples/avatars/get-q-r.md +0 -5
- package/docs/examples/databases/get-database-usage.md +0 -3
- package/docs/examples/health/get-d-b.md +0 -1
- package/docs/examples/locale/list-countries-e-u.md +0 -1
- package/docs/examples/messaging/create-msg91provider.md +0 -7
- package/docs/examples/messaging/update-msg91provider.md +0 -7
- package/docs/examples/projects/create-j-w-t.md +0 -4
- package/docs/examples/projects/update-o-auth2.md +0 -6
- package/docs/examples/proxy/create-a-p-i-rule.md +0 -2
- package/docs/examples/users/create-argon2user.md +0 -5
- package/docs/examples/users/create-j-w-t.md +0 -4
- package/docs/examples/users/create-m-d5user.md +0 -5
- package/docs/examples/users/create-p-h-pass-user.md +0 -5
- package/docs/examples/users/create-s-h-a-user.md +0 -6
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
appwrite users create-scrypt-user \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--email email@example.com \
|
|
4
|
+
--password password \
|
|
5
|
+
--password-salt <PASSWORD_SALT> \
|
|
6
|
+
--password-cpu null \
|
|
7
|
+
--password-memory null \
|
|
8
|
+
--password-parallel null \
|
|
9
|
+
--password-length null
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users create-session \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
appwrite users create-target \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--target-id <TARGET_ID> \
|
|
4
|
+
--provider-type email \
|
|
5
|
+
--identifier <IDENTIFIER>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users delete-identity \
|
|
2
|
+
--identity-id <IDENTITY_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users delete-mfa-authenticator \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--type totp
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users delete-session \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--session-id <SESSION_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users delete-sessions \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users delete-target \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--target-id <TARGET_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users delete \
|
|
2
|
-
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users get-mfa-recovery-codes \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users get-prefs \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users get-target \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--target-id <TARGET_ID>
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users get-usage
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users get \
|
|
2
|
-
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users list-logs \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users list-mfa-factors \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users list-sessions \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users list-targets \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-email-verification \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--email-verification false
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-email \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--email email@example.com
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-labels \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--labels one two three
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
1
|
+
appwrite users update-mfa-recovery-codes \
|
|
2
|
+
--user-id <USER_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-mfa \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--mfa false
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-name \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--name <NAME>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-password \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--password ''
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-phone-verification \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--phone-verification false
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-phone \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--number +12065550100
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-prefs \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--prefs '{ "key": "value" }'
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite users
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite users update-status \
|
|
2
|
+
--user-id <USER_ID> \
|
|
3
|
+
--status false
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
appwrite vcs
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
appwrite vcs create-repository-detection \
|
|
2
|
+
--installation-id <INSTALLATION_ID> \
|
|
3
|
+
--provider-repository-id <PROVIDER_REPOSITORY_ID> \
|
|
4
|
+
--type runtime
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
appwrite vcs
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
appwrite vcs create-repository \
|
|
2
|
+
--installation-id <INSTALLATION_ID> \
|
|
3
|
+
--name <NAME> \
|
|
4
|
+
--private false
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite vcs
|
|
2
|
-
|
|
1
|
+
appwrite vcs delete-installation \
|
|
2
|
+
--installation-id <INSTALLATION_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
appwrite vcs
|
|
2
|
-
|
|
1
|
+
appwrite vcs get-installation \
|
|
2
|
+
--installation-id <INSTALLATION_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite vcs
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite vcs get-repository \
|
|
2
|
+
--installation-id <INSTALLATION_ID> \
|
|
3
|
+
--provider-repository-id <PROVIDER_REPOSITORY_ID>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
appwrite vcs
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
appwrite vcs list-repositories \
|
|
2
|
+
--installation-id <INSTALLATION_ID> \
|
|
3
|
+
--type runtime
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appwrite vcs
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
appwrite vcs list-repository-branches \
|
|
2
|
+
--installation-id <INSTALLATION_ID> \
|
|
3
|
+
--provider-repository-id <PROVIDER_REPOSITORY_ID>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
appwrite vcs
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
appwrite vcs update-external-deployments \
|
|
2
|
+
--installation-id <INSTALLATION_ID> \
|
|
3
|
+
--repository-id <REPOSITORY_ID> \
|
|
4
|
+
--provider-pull-request-id <PROVIDER_PULL_REQUEST_ID>
|
package/index.js
CHANGED
|
@@ -10,6 +10,7 @@ const chalk = require("chalk");
|
|
|
10
10
|
const { version } = require("./package.json");
|
|
11
11
|
const { commandDescriptions, cliConfig } = require("./lib/parser");
|
|
12
12
|
const { client } = require("./lib/commands/generic");
|
|
13
|
+
const { getLatestVersion, compareVersions } = require("./lib/utils");
|
|
13
14
|
const inquirer = require("inquirer");
|
|
14
15
|
const { login, logout, whoami, migrate, register } = require("./lib/commands/generic");
|
|
15
16
|
const { init } = require("./lib/commands/init");
|
|
@@ -17,6 +18,7 @@ const { types } = require("./lib/commands/types");
|
|
|
17
18
|
const { pull } = require("./lib/commands/pull");
|
|
18
19
|
const { run } = require("./lib/commands/run");
|
|
19
20
|
const { push, deploy } = require("./lib/commands/push");
|
|
21
|
+
const { update } = require("./lib/commands/update");
|
|
20
22
|
const { account } = require("./lib/commands/account");
|
|
21
23
|
const { avatars } = require("./lib/commands/avatars");
|
|
22
24
|
const { console } = require("./lib/commands/console");
|
|
@@ -32,6 +34,7 @@ const { projects } = require("./lib/commands/projects");
|
|
|
32
34
|
const { proxy } = require("./lib/commands/proxy");
|
|
33
35
|
const { sites } = require("./lib/commands/sites");
|
|
34
36
|
const { storage } = require("./lib/commands/storage");
|
|
37
|
+
const { tablesDB } = require("./lib/commands/tables-db");
|
|
35
38
|
const { teams } = require("./lib/commands/teams");
|
|
36
39
|
const { tokens } = require("./lib/commands/tokens");
|
|
37
40
|
const { users } = require("./lib/commands/users");
|
|
@@ -39,6 +42,41 @@ const { vcs } = require("./lib/commands/vcs");
|
|
|
39
42
|
|
|
40
43
|
inquirer.registerPrompt('search-list', require('inquirer-search-list'));
|
|
41
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Check for updates and show version information
|
|
47
|
+
*/
|
|
48
|
+
async function checkVersion() {
|
|
49
|
+
process.stdout.write(chalk.bold(`appwrite version ${version}`) + '\n');
|
|
50
|
+
|
|
51
|
+
try {
|
|
52
|
+
const latestVersion = await getLatestVersion();
|
|
53
|
+
const comparison = compareVersions(version, latestVersion);
|
|
54
|
+
|
|
55
|
+
if (comparison > 0) {
|
|
56
|
+
// Current version is older than latest
|
|
57
|
+
process.stdout.write(chalk.yellow(`\n⚠️ A newer version is available: ${chalk.bold(latestVersion)}`) + '\n');
|
|
58
|
+
process.stdout.write(chalk.cyan(`💡 Run '${chalk.bold('appwrite update')}' to update to the latest version.`) + '\n');
|
|
59
|
+
} else if (comparison === 0) {
|
|
60
|
+
process.stdout.write(chalk.green('\n✅ You are running the latest version!') + '\n');
|
|
61
|
+
} else {
|
|
62
|
+
// Current version is newer than latest (pre-release/dev)
|
|
63
|
+
process.stdout.write(chalk.blue('\n🚀 You are running a pre-release or development version.') + '\n');
|
|
64
|
+
}
|
|
65
|
+
} catch (error) {
|
|
66
|
+
// Silently fail version check, just show current version
|
|
67
|
+
process.stdout.write(chalk.gray('\n(Unable to check for updates)') + '\n');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Intercept version flag before Commander.js processes it
|
|
72
|
+
if (process.argv.includes('-v') || process.argv.includes('--version')) {
|
|
73
|
+
(async () => {
|
|
74
|
+
await checkVersion();
|
|
75
|
+
process.exit(0);
|
|
76
|
+
})();
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
|
|
42
80
|
program
|
|
43
81
|
.description(commandDescriptions['main'])
|
|
44
82
|
.configureHelp({
|
|
@@ -83,6 +121,7 @@ program
|
|
|
83
121
|
.addCommand(types)
|
|
84
122
|
.addCommand(deploy)
|
|
85
123
|
.addCommand(run)
|
|
124
|
+
.addCommand(update)
|
|
86
125
|
.addCommand(logout)
|
|
87
126
|
.addCommand(account)
|
|
88
127
|
.addCommand(avatars)
|
|
@@ -99,6 +138,7 @@ program
|
|
|
99
138
|
.addCommand(proxy)
|
|
100
139
|
.addCommand(sites)
|
|
101
140
|
.addCommand(storage)
|
|
141
|
+
.addCommand(tablesdb)
|
|
102
142
|
.addCommand(teams)
|
|
103
143
|
.addCommand(tokens)
|
|
104
144
|
.addCommand(users)
|
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/
|
|
17
|
-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/
|
|
16
|
+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/9.0.0/appwrite-cli-win-x64.exe"
|
|
17
|
+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/9.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="
|
|
100
|
+
GITHUB_LATEST_VERSION="9.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
|
|
package/lib/client.js
CHANGED
|
@@ -16,9 +16,9 @@ class Client {
|
|
|
16
16
|
'x-sdk-name': 'Command Line',
|
|
17
17
|
'x-sdk-platform': 'console',
|
|
18
18
|
'x-sdk-language': 'cli',
|
|
19
|
-
'x-sdk-version': '
|
|
20
|
-
'user-agent' : `AppwriteCLI/
|
|
21
|
-
'X-Appwrite-Response-Format' : '1.
|
|
19
|
+
'x-sdk-version': '9.0.0',
|
|
20
|
+
'user-agent' : `AppwriteCLI/9.0.0 (${os.type()} ${os.version()}; ${os.arch()})`,
|
|
21
|
+
'X-Appwrite-Response-Format' : '1.8.0',
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -186,11 +186,6 @@ class Client {
|
|
|
186
186
|
},
|
|
187
187
|
}),
|
|
188
188
|
});
|
|
189
|
-
|
|
190
|
-
const warnings = response.headers.get('x-appwrite-warning');
|
|
191
|
-
if (warnings) {
|
|
192
|
-
warnings.split(';').forEach((warning) => console.warn(warning));
|
|
193
|
-
}
|
|
194
189
|
} catch (error) {
|
|
195
190
|
throw new AppwriteException(error.message);
|
|
196
191
|
}
|