appwrite-cli 13.1.0 → 13.2.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.
- package/CHANGELOG.md +15 -1
- package/README.md +2 -2
- package/dist/bundle-win-arm64.mjs +2775 -1279
- package/dist/cli.cjs +2775 -1279
- package/dist/index.js +1576 -346
- package/dist/lib/commands/config-validations.d.ts +3 -1
- package/dist/lib/commands/config-validations.d.ts.map +1 -1
- package/dist/lib/commands/generators/typescript/databases.d.ts.map +1 -1
- package/dist/lib/commands/generic.d.ts.map +1 -1
- package/dist/lib/commands/init.d.ts.map +1 -1
- package/dist/lib/commands/pull.d.ts.map +1 -1
- package/dist/lib/commands/push.d.ts.map +1 -1
- package/dist/lib/commands/run.d.ts.map +1 -1
- package/dist/lib/commands/services/account.d.ts.map +1 -1
- package/dist/lib/commands/services/console.d.ts.map +1 -1
- package/dist/lib/commands/services/databases.d.ts.map +1 -1
- package/dist/lib/commands/services/functions.d.ts.map +1 -1
- package/dist/lib/commands/services/health.d.ts.map +1 -1
- package/dist/lib/commands/services/messaging.d.ts.map +1 -1
- package/dist/lib/commands/services/project.d.ts.map +1 -1
- package/dist/lib/commands/services/projects.d.ts.map +1 -1
- package/dist/lib/commands/services/proxy.d.ts.map +1 -1
- package/dist/lib/commands/services/sites.d.ts.map +1 -1
- package/dist/lib/commands/services/storage.d.ts.map +1 -1
- package/dist/lib/commands/services/tables-db.d.ts.map +1 -1
- package/dist/lib/commands/services/users.d.ts.map +1 -1
- package/dist/lib/commands/services/vcs.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/emulation/utils.d.ts +2 -1
- package/dist/lib/emulation/utils.d.ts.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/docs/examples/account/create-anonymous-session.md +2 -0
- package/docs/examples/account/create-email-password-session.md +2 -0
- package/docs/examples/account/create-email-token.md +2 -0
- package/docs/examples/account/create-email-verification.md +2 -0
- package/docs/examples/account/create-jwt.md +2 -0
- package/docs/examples/account/create-magic-url-token.md +2 -0
- package/docs/examples/account/create-mfa-authenticator.md +2 -0
- package/docs/examples/account/create-mfa-challenge.md +2 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +2 -0
- 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 +2 -0
- package/docs/examples/account/create-phone-verification.md +2 -0
- package/docs/examples/account/create-push-target.md +2 -0
- package/docs/examples/account/create-recovery.md +2 -0
- package/docs/examples/account/create-session.md +2 -0
- package/docs/examples/account/create-verification.md +2 -0
- package/docs/examples/account/create.md +2 -0
- package/docs/examples/account/delete-identity.md +2 -0
- package/docs/examples/account/delete-mfa-authenticator.md +2 -0
- package/docs/examples/account/delete-push-target.md +2 -0
- package/docs/examples/account/delete-session.md +2 -0
- package/docs/examples/account/delete-sessions.md +2 -0
- package/docs/examples/account/delete.md +2 -0
- package/docs/examples/account/get-mfa-recovery-codes.md +2 -0
- package/docs/examples/account/get-prefs.md +2 -0
- package/docs/examples/account/get-session.md +2 -0
- package/docs/examples/account/get.md +2 -0
- package/docs/examples/account/list-identities.md +2 -0
- package/docs/examples/account/list-logs.md +2 -0
- package/docs/examples/account/list-mfa-factors.md +2 -0
- package/docs/examples/account/list-sessions.md +2 -0
- package/docs/examples/account/update-email-verification.md +2 -0
- package/docs/examples/account/update-email.md +2 -0
- package/docs/examples/account/update-magic-url-session.md +2 -0
- package/docs/examples/account/update-mfa-authenticator.md +2 -0
- package/docs/examples/account/update-mfa-challenge.md +2 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +2 -0
- package/docs/examples/account/update-mfa.md +2 -0
- package/docs/examples/account/update-name.md +2 -0
- package/docs/examples/account/update-password.md +2 -0
- package/docs/examples/account/update-phone-session.md +2 -0
- package/docs/examples/account/update-phone-verification.md +2 -0
- package/docs/examples/account/update-phone.md +2 -0
- package/docs/examples/account/update-prefs.md +2 -0
- package/docs/examples/account/update-push-target.md +2 -0
- package/docs/examples/account/update-recovery.md +2 -0
- package/docs/examples/account/update-session.md +2 -0
- package/docs/examples/account/update-status.md +2 -0
- package/docs/examples/account/update-verification.md +2 -0
- package/docs/examples/console/get-resource.md +2 -0
- package/docs/examples/console/variables.md +2 -0
- package/docs/examples/databases/create-boolean-attribute.md +2 -0
- package/docs/examples/databases/create-collection.md +2 -0
- package/docs/examples/databases/create-datetime-attribute.md +2 -0
- package/docs/examples/databases/create-document.md +2 -0
- package/docs/examples/databases/create-documents.md +2 -0
- package/docs/examples/databases/create-email-attribute.md +2 -0
- package/docs/examples/databases/create-enum-attribute.md +2 -0
- package/docs/examples/databases/create-float-attribute.md +2 -0
- package/docs/examples/databases/create-index.md +2 -0
- package/docs/examples/databases/create-integer-attribute.md +2 -0
- package/docs/examples/databases/create-ip-attribute.md +2 -0
- package/docs/examples/databases/create-line-attribute.md +2 -0
- package/docs/examples/databases/create-longtext-attribute.md +7 -0
- package/docs/examples/databases/create-mediumtext-attribute.md +7 -0
- package/docs/examples/databases/create-operations.md +2 -0
- package/docs/examples/databases/create-point-attribute.md +2 -0
- package/docs/examples/databases/create-polygon-attribute.md +2 -0
- package/docs/examples/databases/create-relationship-attribute.md +2 -0
- package/docs/examples/databases/create-string-attribute.md +2 -0
- package/docs/examples/databases/create-text-attribute.md +7 -0
- package/docs/examples/databases/create-transaction.md +2 -0
- package/docs/examples/databases/create-url-attribute.md +2 -0
- package/docs/examples/databases/create-varchar-attribute.md +8 -0
- package/docs/examples/databases/create.md +2 -0
- package/docs/examples/databases/decrement-document-attribute.md +2 -0
- package/docs/examples/databases/delete-attribute.md +2 -0
- package/docs/examples/databases/delete-collection.md +2 -0
- package/docs/examples/databases/delete-document.md +2 -0
- package/docs/examples/databases/delete-documents.md +2 -0
- package/docs/examples/databases/delete-index.md +2 -0
- package/docs/examples/databases/delete-transaction.md +2 -0
- package/docs/examples/databases/delete.md +2 -0
- package/docs/examples/databases/get-attribute.md +2 -0
- package/docs/examples/databases/get-collection-usage.md +2 -0
- package/docs/examples/databases/get-collection.md +2 -0
- package/docs/examples/databases/get-document.md +2 -0
- package/docs/examples/databases/get-index.md +2 -0
- package/docs/examples/databases/get-transaction.md +2 -0
- package/docs/examples/databases/get-usage.md +2 -0
- package/docs/examples/databases/get.md +2 -0
- package/docs/examples/databases/increment-document-attribute.md +2 -0
- package/docs/examples/databases/list-attributes.md +2 -0
- package/docs/examples/databases/list-collection-logs.md +2 -0
- package/docs/examples/databases/list-collections.md +2 -0
- package/docs/examples/databases/list-document-logs.md +2 -0
- package/docs/examples/databases/list-documents.md +2 -0
- package/docs/examples/databases/list-indexes.md +2 -0
- package/docs/examples/databases/list-logs.md +2 -0
- package/docs/examples/databases/list-transactions.md +2 -0
- package/docs/examples/databases/list-usage.md +2 -0
- package/docs/examples/databases/list.md +2 -0
- package/docs/examples/databases/update-boolean-attribute.md +2 -0
- package/docs/examples/databases/update-collection.md +3 -2
- package/docs/examples/databases/update-datetime-attribute.md +2 -0
- package/docs/examples/databases/update-document.md +2 -0
- package/docs/examples/databases/update-documents.md +2 -0
- package/docs/examples/databases/update-email-attribute.md +2 -0
- package/docs/examples/databases/update-enum-attribute.md +2 -0
- package/docs/examples/databases/update-float-attribute.md +2 -0
- package/docs/examples/databases/update-integer-attribute.md +2 -0
- package/docs/examples/databases/update-ip-attribute.md +2 -0
- package/docs/examples/databases/update-line-attribute.md +2 -0
- package/docs/examples/databases/update-longtext-attribute.md +8 -0
- package/docs/examples/databases/update-mediumtext-attribute.md +8 -0
- package/docs/examples/databases/update-point-attribute.md +2 -0
- package/docs/examples/databases/update-polygon-attribute.md +2 -0
- package/docs/examples/databases/update-relationship-attribute.md +2 -0
- package/docs/examples/databases/update-string-attribute.md +2 -0
- package/docs/examples/databases/update-text-attribute.md +8 -0
- package/docs/examples/databases/update-transaction.md +2 -0
- package/docs/examples/databases/update-url-attribute.md +2 -0
- package/docs/examples/databases/update-varchar-attribute.md +8 -0
- package/docs/examples/databases/update.md +3 -2
- package/docs/examples/databases/upsert-document.md +2 -0
- package/docs/examples/databases/upsert-documents.md +2 -0
- package/docs/examples/functions/create-deployment.md +2 -0
- package/docs/examples/functions/create-duplicate-deployment.md +2 -0
- package/docs/examples/functions/create-execution.md +2 -0
- package/docs/examples/functions/create-template-deployment.md +2 -0
- package/docs/examples/functions/create-variable.md +2 -0
- package/docs/examples/functions/create-vcs-deployment.md +2 -0
- package/docs/examples/functions/create.md +2 -0
- package/docs/examples/functions/delete-deployment.md +2 -0
- package/docs/examples/functions/delete-execution.md +2 -0
- package/docs/examples/functions/delete-variable.md +2 -0
- package/docs/examples/functions/delete.md +2 -0
- package/docs/examples/functions/get-deployment-download.md +2 -0
- package/docs/examples/functions/get-deployment.md +2 -0
- package/docs/examples/functions/get-execution.md +2 -0
- package/docs/examples/functions/get-template.md +2 -0
- package/docs/examples/functions/get-usage.md +2 -0
- package/docs/examples/functions/get-variable.md +2 -0
- package/docs/examples/functions/get.md +2 -0
- package/docs/examples/functions/list-deployments.md +2 -0
- package/docs/examples/functions/list-executions.md +2 -0
- package/docs/examples/functions/list-runtimes.md +2 -0
- package/docs/examples/functions/list-specifications.md +2 -0
- package/docs/examples/functions/list-templates.md +2 -0
- package/docs/examples/functions/list-usage.md +2 -0
- package/docs/examples/functions/list-variables.md +2 -0
- package/docs/examples/functions/list.md +2 -0
- package/docs/examples/functions/update-deployment-status.md +2 -0
- package/docs/examples/functions/update-function-deployment.md +2 -0
- package/docs/examples/functions/update-variable.md +2 -0
- package/docs/examples/functions/update.md +2 -0
- package/docs/examples/graphql/mutation.md +2 -0
- package/docs/examples/graphql/query.md +2 -0
- package/docs/examples/health/get-antivirus.md +2 -0
- package/docs/examples/health/get-cache.md +2 -0
- package/docs/examples/health/get-certificate.md +2 -0
- package/docs/examples/health/get-db.md +2 -0
- package/docs/examples/health/get-failed-jobs.md +2 -0
- package/docs/examples/health/get-pub-sub.md +2 -0
- package/docs/examples/health/get-queue-audits.md +2 -0
- package/docs/examples/health/get-queue-builds.md +2 -0
- package/docs/examples/health/get-queue-certificates.md +2 -0
- package/docs/examples/health/get-queue-databases.md +2 -0
- package/docs/examples/health/get-queue-deletes.md +2 -0
- package/docs/examples/health/get-queue-functions.md +2 -0
- package/docs/examples/health/get-queue-logs.md +2 -0
- package/docs/examples/health/get-queue-mails.md +2 -0
- package/docs/examples/health/get-queue-messaging.md +2 -0
- package/docs/examples/health/get-queue-migrations.md +2 -0
- package/docs/examples/health/get-queue-stats-resources.md +2 -0
- package/docs/examples/health/get-queue-usage.md +2 -0
- package/docs/examples/health/get-queue-webhooks.md +2 -0
- package/docs/examples/health/get-storage-local.md +2 -0
- package/docs/examples/health/get-storage.md +2 -0
- package/docs/examples/health/get-time.md +2 -0
- package/docs/examples/health/get.md +2 -0
- package/docs/examples/locale/get.md +2 -0
- package/docs/examples/locale/list-codes.md +2 -0
- package/docs/examples/locale/list-continents.md +2 -0
- package/docs/examples/locale/list-countries-eu.md +2 -0
- package/docs/examples/locale/list-countries-phones.md +2 -0
- package/docs/examples/locale/list-countries.md +2 -0
- package/docs/examples/locale/list-currencies.md +2 -0
- package/docs/examples/locale/list-languages.md +2 -0
- package/docs/examples/messaging/create-apns-provider.md +2 -0
- package/docs/examples/messaging/create-email.md +2 -0
- package/docs/examples/messaging/create-fcm-provider.md +2 -0
- package/docs/examples/messaging/create-mailgun-provider.md +2 -0
- package/docs/examples/messaging/create-msg-91-provider.md +2 -0
- package/docs/examples/messaging/create-push.md +2 -0
- package/docs/examples/messaging/create-resend-provider.md +2 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +2 -0
- package/docs/examples/messaging/create-sms.md +2 -0
- package/docs/examples/messaging/create-smtp-provider.md +2 -0
- package/docs/examples/messaging/create-subscriber.md +2 -0
- package/docs/examples/messaging/create-telesign-provider.md +2 -0
- package/docs/examples/messaging/create-textmagic-provider.md +2 -0
- package/docs/examples/messaging/create-topic.md +2 -0
- package/docs/examples/messaging/create-twilio-provider.md +2 -0
- package/docs/examples/messaging/create-vonage-provider.md +2 -0
- package/docs/examples/messaging/delete-provider.md +2 -0
- package/docs/examples/messaging/delete-subscriber.md +2 -0
- package/docs/examples/messaging/delete-topic.md +2 -0
- package/docs/examples/messaging/delete.md +2 -0
- package/docs/examples/messaging/get-message.md +2 -0
- package/docs/examples/messaging/get-provider.md +2 -0
- package/docs/examples/messaging/get-subscriber.md +2 -0
- package/docs/examples/messaging/get-topic.md +2 -0
- package/docs/examples/messaging/list-message-logs.md +2 -0
- package/docs/examples/messaging/list-messages.md +2 -0
- package/docs/examples/messaging/list-provider-logs.md +2 -0
- package/docs/examples/messaging/list-providers.md +2 -0
- package/docs/examples/messaging/list-subscriber-logs.md +2 -0
- package/docs/examples/messaging/list-subscribers.md +2 -0
- package/docs/examples/messaging/list-targets.md +2 -0
- package/docs/examples/messaging/list-topic-logs.md +2 -0
- package/docs/examples/messaging/list-topics.md +2 -0
- package/docs/examples/messaging/update-apns-provider.md +2 -0
- package/docs/examples/messaging/update-email.md +2 -0
- package/docs/examples/messaging/update-fcm-provider.md +2 -0
- package/docs/examples/messaging/update-mailgun-provider.md +2 -0
- package/docs/examples/messaging/update-msg-91-provider.md +2 -0
- package/docs/examples/messaging/update-push.md +2 -0
- package/docs/examples/messaging/update-resend-provider.md +2 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +2 -0
- package/docs/examples/messaging/update-sms.md +2 -0
- package/docs/examples/messaging/update-smtp-provider.md +2 -0
- package/docs/examples/messaging/update-telesign-provider.md +2 -0
- package/docs/examples/messaging/update-textmagic-provider.md +2 -0
- package/docs/examples/messaging/update-topic.md +2 -0
- package/docs/examples/messaging/update-twilio-provider.md +2 -0
- package/docs/examples/messaging/update-vonage-provider.md +2 -0
- package/docs/examples/migrations/create-appwrite-migration.md +2 -0
- package/docs/examples/migrations/create-csv-export.md +2 -0
- package/docs/examples/migrations/create-csv-import.md +2 -0
- package/docs/examples/migrations/create-firebase-migration.md +2 -0
- package/docs/examples/migrations/create-n-host-migration.md +2 -0
- package/docs/examples/migrations/create-supabase-migration.md +2 -0
- package/docs/examples/migrations/delete.md +2 -0
- package/docs/examples/migrations/get-appwrite-report.md +2 -0
- package/docs/examples/migrations/get-firebase-report.md +2 -0
- package/docs/examples/migrations/get-n-host-report.md +2 -0
- package/docs/examples/migrations/get-supabase-report.md +2 -0
- package/docs/examples/migrations/get.md +2 -0
- package/docs/examples/migrations/list.md +2 -0
- package/docs/examples/migrations/retry.md +2 -0
- package/docs/examples/project/create-variable.md +2 -0
- package/docs/examples/project/delete-variable.md +2 -0
- package/docs/examples/project/get-usage.md +2 -0
- package/docs/examples/project/get-variable.md +2 -0
- package/docs/examples/project/list-variables.md +2 -0
- package/docs/examples/project/update-variable.md +2 -0
- package/docs/examples/projects/create-dev-key.md +2 -0
- package/docs/examples/projects/create-jwt.md +2 -0
- package/docs/examples/projects/create-key.md +2 -0
- package/docs/examples/projects/create-platform.md +2 -0
- package/docs/examples/projects/create-smtp-test.md +2 -0
- package/docs/examples/projects/create-webhook.md +2 -0
- package/docs/examples/projects/create.md +2 -0
- package/docs/examples/projects/delete-dev-key.md +2 -0
- package/docs/examples/projects/delete-email-template.md +2 -0
- package/docs/examples/projects/delete-key.md +2 -0
- package/docs/examples/projects/delete-platform.md +2 -0
- package/docs/examples/projects/delete-sms-template.md +2 -0
- package/docs/examples/projects/delete-webhook.md +2 -0
- package/docs/examples/projects/delete.md +2 -0
- package/docs/examples/projects/get-dev-key.md +2 -0
- package/docs/examples/projects/get-email-template.md +2 -0
- package/docs/examples/projects/get-key.md +2 -0
- package/docs/examples/projects/get-platform.md +2 -0
- package/docs/examples/projects/get-sms-template.md +2 -0
- package/docs/examples/projects/get-webhook.md +2 -0
- package/docs/examples/projects/get.md +2 -0
- package/docs/examples/projects/list-dev-keys.md +2 -0
- package/docs/examples/projects/list-keys.md +2 -0
- package/docs/examples/projects/list-platforms.md +2 -0
- package/docs/examples/projects/list-webhooks.md +2 -0
- package/docs/examples/projects/list.md +2 -0
- package/docs/examples/projects/update-api-status-all.md +2 -0
- package/docs/examples/projects/update-api-status.md +2 -0
- package/docs/examples/projects/update-auth-duration.md +2 -0
- package/docs/examples/projects/update-auth-limit.md +2 -0
- package/docs/examples/projects/update-auth-password-dictionary.md +2 -0
- package/docs/examples/projects/update-auth-password-history.md +2 -0
- package/docs/examples/projects/update-auth-sessions-limit.md +2 -0
- package/docs/examples/projects/update-auth-status.md +2 -0
- package/docs/examples/projects/update-dev-key.md +2 -0
- package/docs/examples/projects/update-email-template.md +2 -0
- package/docs/examples/projects/update-key.md +2 -0
- package/docs/examples/projects/update-labels.md +2 -0
- package/docs/examples/projects/update-memberships-privacy.md +2 -0
- package/docs/examples/projects/update-mock-numbers.md +2 -0
- package/docs/examples/projects/update-o-auth-2.md +2 -0
- package/docs/examples/projects/update-personal-data-check.md +2 -0
- package/docs/examples/projects/update-platform.md +2 -0
- package/docs/examples/projects/update-service-status-all.md +2 -0
- package/docs/examples/projects/update-service-status.md +2 -0
- package/docs/examples/projects/update-session-alerts.md +2 -0
- package/docs/examples/projects/update-session-invalidation.md +2 -0
- package/docs/examples/projects/update-sms-template.md +2 -0
- package/docs/examples/projects/update-smtp.md +2 -0
- package/docs/examples/projects/update-team.md +2 -0
- package/docs/examples/projects/update-webhook-signature.md +2 -0
- package/docs/examples/projects/update-webhook.md +2 -0
- package/docs/examples/projects/update.md +2 -0
- package/docs/examples/proxy/create-api-rule.md +2 -0
- package/docs/examples/proxy/create-function-rule.md +2 -0
- package/docs/examples/proxy/create-redirect-rule.md +2 -0
- package/docs/examples/proxy/create-site-rule.md +2 -0
- package/docs/examples/proxy/delete-rule.md +2 -0
- package/docs/examples/proxy/get-rule.md +2 -0
- package/docs/examples/proxy/list-rules.md +2 -0
- package/docs/examples/proxy/update-rule-verification.md +2 -0
- package/docs/examples/sites/create-deployment.md +2 -0
- package/docs/examples/sites/create-duplicate-deployment.md +2 -0
- package/docs/examples/sites/create-template-deployment.md +2 -0
- package/docs/examples/sites/create-variable.md +2 -0
- package/docs/examples/sites/create-vcs-deployment.md +2 -0
- package/docs/examples/sites/create.md +2 -0
- package/docs/examples/sites/delete-deployment.md +2 -0
- package/docs/examples/sites/delete-log.md +2 -0
- package/docs/examples/sites/delete-variable.md +2 -0
- package/docs/examples/sites/delete.md +2 -0
- package/docs/examples/sites/get-deployment-download.md +2 -0
- package/docs/examples/sites/get-deployment.md +2 -0
- package/docs/examples/sites/get-log.md +2 -0
- package/docs/examples/sites/get-template.md +2 -0
- package/docs/examples/sites/get-usage.md +2 -0
- package/docs/examples/sites/get-variable.md +2 -0
- package/docs/examples/sites/get.md +2 -0
- package/docs/examples/sites/list-deployments.md +2 -0
- package/docs/examples/sites/list-frameworks.md +2 -0
- package/docs/examples/sites/list-logs.md +2 -0
- package/docs/examples/sites/list-specifications.md +2 -0
- package/docs/examples/sites/list-templates.md +2 -0
- package/docs/examples/sites/list-usage.md +2 -0
- package/docs/examples/sites/list-variables.md +2 -0
- package/docs/examples/sites/list.md +2 -0
- package/docs/examples/sites/update-deployment-status.md +2 -0
- package/docs/examples/sites/update-site-deployment.md +2 -0
- package/docs/examples/sites/update-variable.md +2 -0
- package/docs/examples/sites/update.md +2 -0
- package/docs/examples/storage/create-bucket.md +2 -0
- package/docs/examples/storage/create-file.md +2 -0
- package/docs/examples/storage/delete-bucket.md +2 -0
- package/docs/examples/storage/delete-file.md +2 -0
- package/docs/examples/storage/get-bucket-usage.md +2 -0
- package/docs/examples/storage/get-bucket.md +2 -0
- package/docs/examples/storage/get-file-download.md +2 -0
- package/docs/examples/storage/get-file-preview.md +2 -0
- package/docs/examples/storage/get-file-view.md +2 -0
- package/docs/examples/storage/get-file.md +2 -0
- package/docs/examples/storage/get-usage.md +2 -0
- package/docs/examples/storage/list-buckets.md +2 -0
- package/docs/examples/storage/list-files.md +2 -0
- package/docs/examples/storage/update-bucket.md +2 -0
- package/docs/examples/storage/update-file.md +2 -0
- package/docs/examples/tablesdb/create-boolean-column.md +2 -0
- package/docs/examples/tablesdb/create-datetime-column.md +2 -0
- package/docs/examples/tablesdb/create-email-column.md +2 -0
- package/docs/examples/tablesdb/create-enum-column.md +2 -0
- package/docs/examples/tablesdb/create-float-column.md +2 -0
- package/docs/examples/tablesdb/create-index.md +2 -0
- package/docs/examples/tablesdb/create-integer-column.md +2 -0
- package/docs/examples/tablesdb/create-ip-column.md +2 -0
- package/docs/examples/tablesdb/create-line-column.md +2 -0
- package/docs/examples/tablesdb/create-longtext-column.md +7 -0
- package/docs/examples/tablesdb/create-mediumtext-column.md +7 -0
- package/docs/examples/tablesdb/create-operations.md +2 -0
- package/docs/examples/tablesdb/create-point-column.md +2 -0
- package/docs/examples/tablesdb/create-polygon-column.md +2 -0
- package/docs/examples/tablesdb/create-relationship-column.md +2 -0
- package/docs/examples/tablesdb/create-row.md +2 -0
- package/docs/examples/tablesdb/create-rows.md +2 -0
- package/docs/examples/tablesdb/create-string-column.md +2 -0
- package/docs/examples/tablesdb/create-table.md +2 -0
- package/docs/examples/tablesdb/create-text-column.md +7 -0
- package/docs/examples/tablesdb/create-transaction.md +2 -0
- package/docs/examples/tablesdb/create-url-column.md +2 -0
- package/docs/examples/tablesdb/create-varchar-column.md +8 -0
- package/docs/examples/tablesdb/create.md +2 -0
- package/docs/examples/tablesdb/decrement-row-column.md +2 -0
- package/docs/examples/tablesdb/delete-column.md +2 -0
- package/docs/examples/tablesdb/delete-index.md +2 -0
- package/docs/examples/tablesdb/delete-row.md +2 -0
- package/docs/examples/tablesdb/delete-rows.md +2 -0
- package/docs/examples/tablesdb/delete-table.md +2 -0
- package/docs/examples/tablesdb/delete-transaction.md +2 -0
- package/docs/examples/tablesdb/delete.md +2 -0
- package/docs/examples/tablesdb/get-column.md +2 -0
- package/docs/examples/tablesdb/get-index.md +2 -0
- package/docs/examples/tablesdb/get-row.md +2 -0
- package/docs/examples/tablesdb/get-table-usage.md +2 -0
- package/docs/examples/tablesdb/get-table.md +2 -0
- package/docs/examples/tablesdb/get-transaction.md +2 -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 +2 -0
- package/docs/examples/tablesdb/list-columns.md +2 -0
- package/docs/examples/tablesdb/list-indexes.md +2 -0
- package/docs/examples/tablesdb/list-row-logs.md +2 -0
- package/docs/examples/tablesdb/list-rows.md +2 -0
- package/docs/examples/tablesdb/list-table-logs.md +2 -0
- package/docs/examples/tablesdb/list-tables.md +2 -0
- package/docs/examples/tablesdb/list-transactions.md +2 -0
- package/docs/examples/tablesdb/list-usage.md +2 -0
- package/docs/examples/tablesdb/list.md +2 -0
- package/docs/examples/tablesdb/update-boolean-column.md +2 -0
- package/docs/examples/tablesdb/update-datetime-column.md +2 -0
- package/docs/examples/tablesdb/update-email-column.md +2 -0
- package/docs/examples/tablesdb/update-enum-column.md +2 -0
- package/docs/examples/tablesdb/update-float-column.md +2 -0
- package/docs/examples/tablesdb/update-integer-column.md +2 -0
- package/docs/examples/tablesdb/update-ip-column.md +2 -0
- package/docs/examples/tablesdb/update-line-column.md +2 -0
- package/docs/examples/tablesdb/update-longtext-column.md +8 -0
- package/docs/examples/tablesdb/update-mediumtext-column.md +8 -0
- package/docs/examples/tablesdb/update-point-column.md +2 -0
- package/docs/examples/tablesdb/update-polygon-column.md +2 -0
- package/docs/examples/tablesdb/update-relationship-column.md +2 -0
- package/docs/examples/tablesdb/update-row.md +2 -0
- package/docs/examples/tablesdb/update-rows.md +2 -0
- package/docs/examples/tablesdb/update-string-column.md +2 -0
- package/docs/examples/tablesdb/update-table.md +3 -2
- package/docs/examples/tablesdb/update-text-column.md +8 -0
- package/docs/examples/tablesdb/update-transaction.md +2 -0
- package/docs/examples/tablesdb/update-url-column.md +2 -0
- package/docs/examples/tablesdb/update-varchar-column.md +8 -0
- package/docs/examples/tablesdb/update.md +3 -2
- package/docs/examples/tablesdb/upsert-row.md +2 -0
- package/docs/examples/tablesdb/upsert-rows.md +2 -0
- package/docs/examples/teams/create-membership.md +2 -0
- package/docs/examples/teams/create.md +2 -0
- package/docs/examples/teams/delete-membership.md +2 -0
- package/docs/examples/teams/delete.md +2 -0
- package/docs/examples/teams/get-membership.md +2 -0
- package/docs/examples/teams/get-prefs.md +2 -0
- package/docs/examples/teams/get.md +2 -0
- package/docs/examples/teams/list-logs.md +2 -0
- package/docs/examples/teams/list-memberships.md +2 -0
- package/docs/examples/teams/list.md +2 -0
- package/docs/examples/teams/update-membership-status.md +2 -0
- package/docs/examples/teams/update-membership.md +2 -0
- package/docs/examples/teams/update-name.md +2 -0
- package/docs/examples/teams/update-prefs.md +2 -0
- package/docs/examples/tokens/create-file-token.md +2 -0
- package/docs/examples/tokens/delete.md +2 -0
- package/docs/examples/tokens/get.md +2 -0
- package/docs/examples/tokens/list.md +2 -0
- package/docs/examples/tokens/update.md +2 -0
- package/docs/examples/users/create-argon-2-user.md +2 -0
- package/docs/examples/users/create-bcrypt-user.md +2 -0
- package/docs/examples/users/create-jwt.md +2 -0
- package/docs/examples/users/create-md-5-user.md +2 -0
- package/docs/examples/users/create-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/create-ph-pass-user.md +2 -0
- package/docs/examples/users/create-scrypt-modified-user.md +2 -0
- package/docs/examples/users/create-scrypt-user.md +2 -0
- package/docs/examples/users/create-session.md +2 -0
- package/docs/examples/users/create-sha-user.md +2 -0
- package/docs/examples/users/create-target.md +2 -0
- package/docs/examples/users/create-token.md +2 -0
- package/docs/examples/users/create.md +2 -0
- package/docs/examples/users/delete-identity.md +2 -0
- package/docs/examples/users/delete-mfa-authenticator.md +2 -0
- package/docs/examples/users/delete-session.md +2 -0
- package/docs/examples/users/delete-sessions.md +2 -0
- package/docs/examples/users/delete-target.md +2 -0
- package/docs/examples/users/delete.md +2 -0
- package/docs/examples/users/get-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/get-prefs.md +2 -0
- package/docs/examples/users/get-target.md +2 -0
- package/docs/examples/users/get-usage.md +2 -0
- package/docs/examples/users/get.md +2 -0
- package/docs/examples/users/list-identities.md +2 -0
- package/docs/examples/users/list-logs.md +2 -0
- package/docs/examples/users/list-memberships.md +2 -0
- package/docs/examples/users/list-mfa-factors.md +2 -0
- package/docs/examples/users/list-sessions.md +2 -0
- package/docs/examples/users/list-targets.md +2 -0
- package/docs/examples/users/list.md +2 -0
- package/docs/examples/users/update-email-verification.md +2 -0
- package/docs/examples/users/update-email.md +2 -0
- package/docs/examples/users/update-labels.md +2 -0
- package/docs/examples/users/update-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/update-mfa.md +2 -0
- package/docs/examples/users/update-name.md +2 -0
- package/docs/examples/users/update-password.md +2 -0
- package/docs/examples/users/update-phone-verification.md +2 -0
- package/docs/examples/users/update-phone.md +2 -0
- package/docs/examples/users/update-prefs.md +2 -0
- package/docs/examples/users/update-status.md +2 -0
- package/docs/examples/users/update-target.md +2 -0
- package/docs/examples/vcs/create-repository-detection.md +2 -0
- package/docs/examples/vcs/create-repository.md +2 -0
- package/docs/examples/vcs/delete-installation.md +2 -0
- package/docs/examples/vcs/get-installation.md +2 -0
- package/docs/examples/vcs/get-repository-contents.md +2 -0
- package/docs/examples/vcs/get-repository.md +2 -0
- package/docs/examples/vcs/list-installations.md +2 -0
- package/docs/examples/vcs/list-repositories.md +2 -0
- package/docs/examples/vcs/list-repository-branches.md +2 -0
- package/docs/examples/vcs/update-external-deployments.md +2 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/commands/config-validations.ts +16 -5
- package/lib/commands/generators/typescript/databases.ts +24 -6
- package/lib/commands/generic.ts +1 -2
- package/lib/commands/init.ts +10 -8
- package/lib/commands/pull.ts +7 -0
- package/lib/commands/push.ts +2 -1
- package/lib/commands/run.ts +2 -1
- package/lib/commands/services/account.ts +7 -12
- package/lib/commands/services/console.ts +2 -5
- package/lib/commands/services/databases.ts +167 -15
- package/lib/commands/services/functions.ts +9 -17
- package/lib/commands/services/health.ts +2 -5
- package/lib/commands/services/messaging.ts +5 -9
- package/lib/commands/services/project.ts +2 -5
- package/lib/commands/services/projects.ts +15 -28
- package/lib/commands/services/proxy.ts +2 -6
- package/lib/commands/services/sites.ts +8 -17
- package/lib/commands/services/storage.ts +6 -12
- package/lib/commands/services/tables-db.ts +167 -15
- package/lib/commands/services/users.ts +5 -11
- package/lib/commands/services/vcs.ts +3 -6
- package/lib/constants.ts +1 -1
- package/lib/emulation/utils.ts +2 -2
- package/lib/utils.ts +1 -2
- package/package.json +2 -2
- package/scoop/appwrite.config.json +3 -3
|
@@ -8,13 +8,7 @@ import {
|
|
|
8
8
|
parseBool,
|
|
9
9
|
parseInteger,
|
|
10
10
|
} from "../../parser.js";
|
|
11
|
-
import {
|
|
12
|
-
TablesDB,
|
|
13
|
-
UsageRange,
|
|
14
|
-
RelationshipType,
|
|
15
|
-
RelationMutate,
|
|
16
|
-
IndexType,
|
|
17
|
-
} from "@appwrite.io/console";
|
|
11
|
+
import { TablesDB } from "@appwrite.io/console";
|
|
18
12
|
|
|
19
13
|
let tablesDBClient: TablesDB | null = null;
|
|
20
14
|
|
|
@@ -155,7 +149,7 @@ tablesDB
|
|
|
155
149
|
.action(
|
|
156
150
|
actionRunner(
|
|
157
151
|
async ({ range }) =>
|
|
158
|
-
parse(await (await getTablesDBClient()).listUsage(range
|
|
152
|
+
parse(await (await getTablesDBClient()).listUsage(range)),
|
|
159
153
|
),
|
|
160
154
|
);
|
|
161
155
|
|
|
@@ -174,7 +168,7 @@ tablesDB
|
|
|
174
168
|
.command(`update`)
|
|
175
169
|
.description(`Update a database by its unique ID.`)
|
|
176
170
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
177
|
-
.
|
|
171
|
+
.option(`--name <name>`, `Database name. Max length: 128 chars.`)
|
|
178
172
|
.option(
|
|
179
173
|
`--enabled [value]`,
|
|
180
174
|
`Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.`,
|
|
@@ -263,7 +257,7 @@ tablesDB
|
|
|
263
257
|
.description(`Update a table by its unique ID.`)
|
|
264
258
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
265
259
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
266
|
-
.
|
|
260
|
+
.option(`--name <name>`, `Table name. Max length: 128 chars.`)
|
|
267
261
|
.option(`--permissions [permissions...]`, `An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
268
262
|
.option(
|
|
269
263
|
`--row-security [value]`,
|
|
@@ -630,6 +624,84 @@ tablesDB
|
|
|
630
624
|
),
|
|
631
625
|
);
|
|
632
626
|
|
|
627
|
+
tablesDB
|
|
628
|
+
.command(`create-longtext-column`)
|
|
629
|
+
.description(`Create a longtext column.
|
|
630
|
+
`)
|
|
631
|
+
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
632
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
633
|
+
.requiredOption(`--key <key>`, `Column Key.`)
|
|
634
|
+
.requiredOption(`--required <required>`, `Is column required?`, parseBool)
|
|
635
|
+
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
636
|
+
.option(
|
|
637
|
+
`--array [value]`,
|
|
638
|
+
`Is column an array?`,
|
|
639
|
+
(value: string | undefined) =>
|
|
640
|
+
value === undefined ? true : parseBool(value),
|
|
641
|
+
)
|
|
642
|
+
.action(
|
|
643
|
+
actionRunner(
|
|
644
|
+
async ({ databaseId, tableId, key, required, xdefault, array }) =>
|
|
645
|
+
parse(await (await getTablesDBClient()).createLongtextColumn(databaseId, tableId, key, required, xdefault, array)),
|
|
646
|
+
),
|
|
647
|
+
);
|
|
648
|
+
|
|
649
|
+
tablesDB
|
|
650
|
+
.command(`update-longtext-column`)
|
|
651
|
+
.description(`Update a longtext column. Changing the \`default\` value will not update already existing rows.
|
|
652
|
+
`)
|
|
653
|
+
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
654
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
655
|
+
.requiredOption(`--key <key>`, `Column Key.`)
|
|
656
|
+
.requiredOption(`--required <required>`, `Is column required?`, parseBool)
|
|
657
|
+
.requiredOption(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
658
|
+
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
659
|
+
.action(
|
|
660
|
+
actionRunner(
|
|
661
|
+
async ({ databaseId, tableId, key, required, xdefault, newKey }) =>
|
|
662
|
+
parse(await (await getTablesDBClient()).updateLongtextColumn(databaseId, tableId, key, required, xdefault, newKey)),
|
|
663
|
+
),
|
|
664
|
+
);
|
|
665
|
+
|
|
666
|
+
tablesDB
|
|
667
|
+
.command(`create-mediumtext-column`)
|
|
668
|
+
.description(`Create a mediumtext column.
|
|
669
|
+
`)
|
|
670
|
+
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
671
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
672
|
+
.requiredOption(`--key <key>`, `Column Key.`)
|
|
673
|
+
.requiredOption(`--required <required>`, `Is column required?`, parseBool)
|
|
674
|
+
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
675
|
+
.option(
|
|
676
|
+
`--array [value]`,
|
|
677
|
+
`Is column an array?`,
|
|
678
|
+
(value: string | undefined) =>
|
|
679
|
+
value === undefined ? true : parseBool(value),
|
|
680
|
+
)
|
|
681
|
+
.action(
|
|
682
|
+
actionRunner(
|
|
683
|
+
async ({ databaseId, tableId, key, required, xdefault, array }) =>
|
|
684
|
+
parse(await (await getTablesDBClient()).createMediumtextColumn(databaseId, tableId, key, required, xdefault, array)),
|
|
685
|
+
),
|
|
686
|
+
);
|
|
687
|
+
|
|
688
|
+
tablesDB
|
|
689
|
+
.command(`update-mediumtext-column`)
|
|
690
|
+
.description(`Update a mediumtext column. Changing the \`default\` value will not update already existing rows.
|
|
691
|
+
`)
|
|
692
|
+
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
693
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
694
|
+
.requiredOption(`--key <key>`, `Column Key.`)
|
|
695
|
+
.requiredOption(`--required <required>`, `Is column required?`, parseBool)
|
|
696
|
+
.requiredOption(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
697
|
+
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
698
|
+
.action(
|
|
699
|
+
actionRunner(
|
|
700
|
+
async ({ databaseId, tableId, key, required, xdefault, newKey }) =>
|
|
701
|
+
parse(await (await getTablesDBClient()).updateMediumtextColumn(databaseId, tableId, key, required, xdefault, newKey)),
|
|
702
|
+
),
|
|
703
|
+
);
|
|
704
|
+
|
|
633
705
|
tablesDB
|
|
634
706
|
.command(`create-point-column`)
|
|
635
707
|
.description(`Create a geometric point column.`)
|
|
@@ -712,7 +784,7 @@ tablesDB
|
|
|
712
784
|
.action(
|
|
713
785
|
actionRunner(
|
|
714
786
|
async ({ databaseId, tableId, relatedTableId, type, twoWay, key, twoWayKey, onDelete }) =>
|
|
715
|
-
parse(await (await getTablesDBClient()).createRelationshipColumn(databaseId, tableId, relatedTableId, type
|
|
787
|
+
parse(await (await getTablesDBClient()).createRelationshipColumn(databaseId, tableId, relatedTableId, type, twoWay, key, twoWayKey, onDelete)),
|
|
716
788
|
),
|
|
717
789
|
);
|
|
718
790
|
|
|
@@ -763,6 +835,45 @@ tablesDB
|
|
|
763
835
|
),
|
|
764
836
|
);
|
|
765
837
|
|
|
838
|
+
tablesDB
|
|
839
|
+
.command(`create-text-column`)
|
|
840
|
+
.description(`Create a text column.
|
|
841
|
+
`)
|
|
842
|
+
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
843
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
844
|
+
.requiredOption(`--key <key>`, `Column Key.`)
|
|
845
|
+
.requiredOption(`--required <required>`, `Is column required?`, parseBool)
|
|
846
|
+
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
847
|
+
.option(
|
|
848
|
+
`--array [value]`,
|
|
849
|
+
`Is column an array?`,
|
|
850
|
+
(value: string | undefined) =>
|
|
851
|
+
value === undefined ? true : parseBool(value),
|
|
852
|
+
)
|
|
853
|
+
.action(
|
|
854
|
+
actionRunner(
|
|
855
|
+
async ({ databaseId, tableId, key, required, xdefault, array }) =>
|
|
856
|
+
parse(await (await getTablesDBClient()).createTextColumn(databaseId, tableId, key, required, xdefault, array)),
|
|
857
|
+
),
|
|
858
|
+
);
|
|
859
|
+
|
|
860
|
+
tablesDB
|
|
861
|
+
.command(`update-text-column`)
|
|
862
|
+
.description(`Update a text column. Changing the \`default\` value will not update already existing rows.
|
|
863
|
+
`)
|
|
864
|
+
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
865
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
866
|
+
.requiredOption(`--key <key>`, `Column Key.`)
|
|
867
|
+
.requiredOption(`--required <required>`, `Is column required?`, parseBool)
|
|
868
|
+
.requiredOption(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
869
|
+
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
870
|
+
.action(
|
|
871
|
+
actionRunner(
|
|
872
|
+
async ({ databaseId, tableId, key, required, xdefault, newKey }) =>
|
|
873
|
+
parse(await (await getTablesDBClient()).updateTextColumn(databaseId, tableId, key, required, xdefault, newKey)),
|
|
874
|
+
),
|
|
875
|
+
);
|
|
876
|
+
|
|
766
877
|
tablesDB
|
|
767
878
|
.command(`create-url-column`)
|
|
768
879
|
.description(`Create a URL column.
|
|
@@ -802,6 +913,47 @@ tablesDB
|
|
|
802
913
|
),
|
|
803
914
|
);
|
|
804
915
|
|
|
916
|
+
tablesDB
|
|
917
|
+
.command(`create-varchar-column`)
|
|
918
|
+
.description(`Create a varchar column.
|
|
919
|
+
`)
|
|
920
|
+
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
921
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
922
|
+
.requiredOption(`--key <key>`, `Column Key.`)
|
|
923
|
+
.requiredOption(`--size <size>`, `Column size for varchar columns, in number of characters. Maximum size is 16381.`, parseInteger)
|
|
924
|
+
.requiredOption(`--required <required>`, `Is column required?`, parseBool)
|
|
925
|
+
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
926
|
+
.option(
|
|
927
|
+
`--array [value]`,
|
|
928
|
+
`Is column an array?`,
|
|
929
|
+
(value: string | undefined) =>
|
|
930
|
+
value === undefined ? true : parseBool(value),
|
|
931
|
+
)
|
|
932
|
+
.action(
|
|
933
|
+
actionRunner(
|
|
934
|
+
async ({ databaseId, tableId, key, size, required, xdefault, array }) =>
|
|
935
|
+
parse(await (await getTablesDBClient()).createVarcharColumn(databaseId, tableId, key, size, required, xdefault, array)),
|
|
936
|
+
),
|
|
937
|
+
);
|
|
938
|
+
|
|
939
|
+
tablesDB
|
|
940
|
+
.command(`update-varchar-column`)
|
|
941
|
+
.description(`Update a varchar column. Changing the \`default\` value will not update already existing rows.
|
|
942
|
+
`)
|
|
943
|
+
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
944
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
945
|
+
.requiredOption(`--key <key>`, `Column Key.`)
|
|
946
|
+
.requiredOption(`--required <required>`, `Is column required?`, parseBool)
|
|
947
|
+
.requiredOption(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
948
|
+
.option(`--size <size>`, `Maximum size of the varchar column.`, parseInteger)
|
|
949
|
+
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
950
|
+
.action(
|
|
951
|
+
actionRunner(
|
|
952
|
+
async ({ databaseId, tableId, key, required, xdefault, size, newKey }) =>
|
|
953
|
+
parse(await (await getTablesDBClient()).updateVarcharColumn(databaseId, tableId, key, required, xdefault, size, newKey)),
|
|
954
|
+
),
|
|
955
|
+
);
|
|
956
|
+
|
|
805
957
|
tablesDB
|
|
806
958
|
.command(`get-column`)
|
|
807
959
|
.description(`Get column by ID.`)
|
|
@@ -840,7 +992,7 @@ tablesDB
|
|
|
840
992
|
.action(
|
|
841
993
|
actionRunner(
|
|
842
994
|
async ({ databaseId, tableId, key, onDelete, newKey }) =>
|
|
843
|
-
parse(await (await getTablesDBClient()).updateRelationshipColumn(databaseId, tableId, key, onDelete
|
|
995
|
+
parse(await (await getTablesDBClient()).updateRelationshipColumn(databaseId, tableId, key, onDelete, newKey)),
|
|
844
996
|
),
|
|
845
997
|
);
|
|
846
998
|
|
|
@@ -877,7 +1029,7 @@ Type can be \`key\`, \`fulltext\`, or \`unique\`.`)
|
|
|
877
1029
|
.action(
|
|
878
1030
|
actionRunner(
|
|
879
1031
|
async ({ databaseId, tableId, key, type, columns, orders, lengths }) =>
|
|
880
|
-
parse(await (await getTablesDBClient()).createIndex(databaseId, tableId, key, type
|
|
1032
|
+
parse(await (await getTablesDBClient()).createIndex(databaseId, tableId, key, type, columns, orders, lengths)),
|
|
881
1033
|
),
|
|
882
1034
|
);
|
|
883
1035
|
|
|
@@ -1132,7 +1284,7 @@ tablesDB
|
|
|
1132
1284
|
.action(
|
|
1133
1285
|
actionRunner(
|
|
1134
1286
|
async ({ databaseId, tableId, range }) =>
|
|
1135
|
-
parse(await (await getTablesDBClient()).getTableUsage(databaseId, tableId, range
|
|
1287
|
+
parse(await (await getTablesDBClient()).getTableUsage(databaseId, tableId, range)),
|
|
1136
1288
|
),
|
|
1137
1289
|
);
|
|
1138
1290
|
|
|
@@ -1144,7 +1296,7 @@ tablesDB
|
|
|
1144
1296
|
.action(
|
|
1145
1297
|
actionRunner(
|
|
1146
1298
|
async ({ databaseId, range }) =>
|
|
1147
|
-
parse(await (await getTablesDBClient()).getUsage(databaseId, range
|
|
1299
|
+
parse(await (await getTablesDBClient()).getUsage(databaseId, range)),
|
|
1148
1300
|
),
|
|
1149
1301
|
);
|
|
1150
1302
|
|
|
@@ -8,13 +8,7 @@ import {
|
|
|
8
8
|
parseBool,
|
|
9
9
|
parseInteger,
|
|
10
10
|
} from "../../parser.js";
|
|
11
|
-
import {
|
|
12
|
-
Users,
|
|
13
|
-
PasswordHash,
|
|
14
|
-
UsageRange,
|
|
15
|
-
AuthenticatorType,
|
|
16
|
-
MessagingProviderType,
|
|
17
|
-
} from "@appwrite.io/console";
|
|
11
|
+
import { Users } from "@appwrite.io/console";
|
|
18
12
|
|
|
19
13
|
let usersClient: Users | null = null;
|
|
20
14
|
|
|
@@ -197,7 +191,7 @@ users
|
|
|
197
191
|
.action(
|
|
198
192
|
actionRunner(
|
|
199
193
|
async ({ userId, email, password, passwordVersion, name }) =>
|
|
200
|
-
parse(await (await getUsersClient()).createSHAUser(userId, email, password, passwordVersion
|
|
194
|
+
parse(await (await getUsersClient()).createSHAUser(userId, email, password, passwordVersion, name)),
|
|
201
195
|
),
|
|
202
196
|
);
|
|
203
197
|
|
|
@@ -209,7 +203,7 @@ users
|
|
|
209
203
|
.action(
|
|
210
204
|
actionRunner(
|
|
211
205
|
async ({ range }) =>
|
|
212
|
-
parse(await (await getUsersClient()).getUsage(range
|
|
206
|
+
parse(await (await getUsersClient()).getUsage(range)),
|
|
213
207
|
),
|
|
214
208
|
);
|
|
215
209
|
|
|
@@ -331,7 +325,7 @@ users
|
|
|
331
325
|
.action(
|
|
332
326
|
actionRunner(
|
|
333
327
|
async ({ userId, type }) =>
|
|
334
|
-
parse(await (await getUsersClient()).deleteMfaAuthenticator(userId, type
|
|
328
|
+
parse(await (await getUsersClient()).deleteMfaAuthenticator(userId, type)),
|
|
335
329
|
),
|
|
336
330
|
);
|
|
337
331
|
|
|
@@ -533,7 +527,7 @@ users
|
|
|
533
527
|
.action(
|
|
534
528
|
actionRunner(
|
|
535
529
|
async ({ userId, targetId, providerType, identifier, providerId, name }) =>
|
|
536
|
-
parse(await (await getUsersClient()).createTarget(userId, targetId, providerType
|
|
530
|
+
parse(await (await getUsersClient()).createTarget(userId, targetId, providerType, identifier, providerId, name)),
|
|
537
531
|
),
|
|
538
532
|
);
|
|
539
533
|
|
|
@@ -8,10 +8,7 @@ import {
|
|
|
8
8
|
parseBool,
|
|
9
9
|
parseInteger,
|
|
10
10
|
} from "../../parser.js";
|
|
11
|
-
import {
|
|
12
|
-
Vcs,
|
|
13
|
-
VCSDetectionType,
|
|
14
|
-
} from "@appwrite.io/console";
|
|
11
|
+
import { Vcs } from "@appwrite.io/console";
|
|
15
12
|
|
|
16
13
|
let vcsClient: Vcs | null = null;
|
|
17
14
|
|
|
@@ -39,7 +36,7 @@ vcs
|
|
|
39
36
|
.action(
|
|
40
37
|
actionRunner(
|
|
41
38
|
async ({ installationId, providerRepositoryId, type, providerRootDirectory }) =>
|
|
42
|
-
parse(await (await getVcsClient()).createRepositoryDetection(installationId, providerRepositoryId, type
|
|
39
|
+
parse(await (await getVcsClient()).createRepositoryDetection(installationId, providerRepositoryId, type, providerRootDirectory)),
|
|
43
40
|
),
|
|
44
41
|
);
|
|
45
42
|
|
|
@@ -53,7 +50,7 @@ vcs
|
|
|
53
50
|
.action(
|
|
54
51
|
actionRunner(
|
|
55
52
|
async ({ installationId, type, search, queries }) =>
|
|
56
|
-
parse(await (await getVcsClient()).listRepositories(installationId, type
|
|
53
|
+
parse(await (await getVcsClient()).listRepositories(installationId, type, search, queries)),
|
|
57
54
|
),
|
|
58
55
|
);
|
|
59
56
|
|
package/lib/constants.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SDK
|
|
2
2
|
export const SDK_TITLE = 'Appwrite';
|
|
3
3
|
export const SDK_TITLE_LOWER = 'appwrite';
|
|
4
|
-
export const SDK_VERSION = '13.1
|
|
4
|
+
export const SDK_VERSION = '13.2.1';
|
|
5
5
|
export const SDK_NAME = 'Command Line';
|
|
6
6
|
export const SDK_PLATFORM = 'console';
|
|
7
7
|
export const SDK_LANGUAGE = 'cli';
|
package/lib/emulation/utils.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { EventEmitter } from "node:events";
|
|
|
2
2
|
import { localConfig } from "../config.js";
|
|
3
3
|
import { log } from "../parser.js";
|
|
4
4
|
import { sdkForConsole } from "../sdks.js";
|
|
5
|
-
import { Projects, Users } from "@appwrite.io/console";
|
|
5
|
+
import { Projects, Scopes, Users } from "@appwrite.io/console";
|
|
6
6
|
|
|
7
7
|
export const openRuntimesVersion = "v4";
|
|
8
8
|
|
|
@@ -105,7 +105,7 @@ export const JwtManager = {
|
|
|
105
105
|
|
|
106
106
|
async setup(
|
|
107
107
|
userId: string | null = null,
|
|
108
|
-
projectScopes:
|
|
108
|
+
projectScopes: Scopes[] = [],
|
|
109
109
|
): Promise<void> {
|
|
110
110
|
const consoleClient = await sdkForConsole();
|
|
111
111
|
const usersClient = new Users(consoleClient);
|
package/lib/utils.ts
CHANGED
|
@@ -2,11 +2,10 @@ import fs from "fs";
|
|
|
2
2
|
import path from "path";
|
|
3
3
|
import net from "net";
|
|
4
4
|
import childProcess from "child_process";
|
|
5
|
-
import chalk from "chalk";
|
|
6
5
|
import { fetch } from "undici";
|
|
7
6
|
import type { Models } from "@appwrite.io/console";
|
|
8
7
|
import { z } from "zod";
|
|
9
|
-
import {
|
|
8
|
+
import { globalConfig } from "./config.js";
|
|
10
9
|
import type { SettingsType } from "./commands/config.js";
|
|
11
10
|
import { NPM_REGISTRY_URL, DEFAULT_ENDPOINT } from "./constants.js";
|
|
12
11
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"homepage": "https://appwrite.io/support",
|
|
5
5
|
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
6
|
-
"version": "13.1
|
|
6
|
+
"version": "13.2.1",
|
|
7
7
|
"license": "BSD-3-Clause",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@appwrite.io/console": "^2.
|
|
35
|
+
"@appwrite.io/console": "^2.2.0",
|
|
36
36
|
"bignumber.js": "^9.0.0",
|
|
37
37
|
"chalk": "4.1.2",
|
|
38
38
|
"chokidar": "^3.6.0",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
|
|
3
|
-
"version": "13.1
|
|
3
|
+
"version": "13.2.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/13.1
|
|
9
|
+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/13.2.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/13.1
|
|
18
|
+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/13.2.1/appwrite-cli-win-arm64.exe",
|
|
19
19
|
"bin": [
|
|
20
20
|
[
|
|
21
21
|
"appwrite-cli-win-arm64.exe",
|