appwrite-cli 4.2.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +1 -1
- package/README.md +6 -9
- package/docs/examples/account/{create-email-session.md → create-email-password-session.md} +1 -1
- package/docs/examples/account/create-email-token.md +4 -0
- package/docs/examples/account/create-magic-u-r-l-token.md +5 -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 +1 -0
- package/docs/examples/account/create-o-auth2token.md +5 -0
- package/docs/examples/account/create-phone-token.md +3 -0
- package/docs/examples/account/create-push-target.md +4 -0
- package/docs/examples/account/create-session.md +3 -0
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-mfa-authenticator.md +3 -0
- package/docs/examples/account/delete-push-target.md +2 -0
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete.md +1 -0
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -0
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/list-mfa-factors.md +1 -0
- package/docs/examples/account/update-m-f-a.md +2 -0
- package/docs/examples/account/update-magic-u-r-l-session.md +2 -2
- package/docs/examples/account/update-mfa-authenticator.md +3 -0
- package/docs/examples/account/update-mfa-challenge.md +3 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -0
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-phone-session.md +2 -2
- package/docs/examples/account/update-phone-verification.md +2 -2
- package/docs/examples/account/update-push-target.md +3 -0
- package/docs/examples/account/update-recovery.md +3 -4
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-verification.md +2 -2
- package/docs/examples/assistant/chat.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +2 -2
- package/docs/examples/databases/create-collection.md +3 -3
- package/docs/examples/databases/create-datetime-attribute.md +2 -2
- package/docs/examples/databases/create-document.md +3 -3
- package/docs/examples/databases/create-email-attribute.md +2 -2
- package/docs/examples/databases/create-enum-attribute.md +2 -2
- package/docs/examples/databases/create-float-attribute.md +2 -2
- package/docs/examples/databases/create-index.md +2 -2
- package/docs/examples/databases/create-integer-attribute.md +2 -2
- package/docs/examples/databases/create-ip-attribute.md +2 -2
- package/docs/examples/databases/create-relationship-attribute.md +3 -3
- package/docs/examples/databases/create-string-attribute.md +2 -2
- package/docs/examples/databases/create-url-attribute.md +2 -2
- package/docs/examples/databases/create.md +2 -2
- package/docs/examples/databases/delete-attribute.md +2 -2
- package/docs/examples/databases/delete-collection.md +2 -2
- package/docs/examples/databases/delete-document.md +3 -3
- package/docs/examples/databases/delete-index.md +2 -2
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +2 -2
- package/docs/examples/databases/get-collection-usage.md +2 -2
- package/docs/examples/databases/get-collection.md +2 -2
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +3 -3
- package/docs/examples/databases/get-index.md +2 -2
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +2 -2
- package/docs/examples/databases/list-collection-logs.md +2 -2
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +3 -3
- package/docs/examples/databases/list-documents.md +2 -2
- package/docs/examples/databases/list-indexes.md +2 -2
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +2 -2
- package/docs/examples/databases/update-collection.md +3 -3
- package/docs/examples/databases/update-datetime-attribute.md +2 -2
- package/docs/examples/databases/update-document.md +3 -3
- package/docs/examples/databases/update-email-attribute.md +2 -2
- package/docs/examples/databases/update-enum-attribute.md +3 -3
- package/docs/examples/databases/update-float-attribute.md +2 -2
- package/docs/examples/databases/update-integer-attribute.md +2 -2
- package/docs/examples/databases/update-ip-attribute.md +2 -2
- package/docs/examples/databases/update-relationship-attribute.md +2 -2
- package/docs/examples/databases/update-string-attribute.md +3 -3
- package/docs/examples/databases/update-url-attribute.md +2 -2
- package/docs/examples/databases/update.md +2 -2
- package/docs/examples/functions/create-build.md +3 -3
- package/docs/examples/functions/create-deployment.md +1 -1
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-variable.md +3 -3
- package/docs/examples/functions/create.md +3 -3
- package/docs/examples/functions/delete-deployment.md +2 -2
- package/docs/examples/functions/delete-variable.md +2 -2
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/download-deployment.md +2 -2
- package/docs/examples/functions/get-deployment.md +2 -2
- package/docs/examples/functions/get-execution.md +2 -2
- package/docs/examples/functions/get-function-usage.md +1 -1
- package/docs/examples/functions/get-variable.md +2 -2
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +1 -1
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/update-deployment.md +2 -2
- package/docs/examples/functions/update-variable.md +3 -3
- package/docs/examples/functions/update.md +2 -2
- package/docs/examples/health/get-certificate.md +2 -0
- package/docs/examples/health/get-failed-jobs.md +3 -0
- package/docs/examples/health/get-queue-usage-dump.md +2 -0
- package/docs/examples/health/get-queue-usage.md +2 -0
- package/docs/examples/health/get-storage.md +1 -0
- package/docs/examples/messaging/create-apns-provider.md +9 -0
- package/docs/examples/messaging/create-email.md +13 -0
- package/docs/examples/messaging/create-fcm-provider.md +5 -0
- package/docs/examples/messaging/create-mailgun-provider.md +11 -0
- package/docs/examples/messaging/create-msg91provider.md +7 -0
- package/docs/examples/messaging/create-push.md +17 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +9 -0
- package/docs/examples/messaging/create-sms.md +8 -0
- package/docs/examples/messaging/create-smtp-provider.md +15 -0
- package/docs/examples/messaging/create-subscriber.md +4 -0
- package/docs/examples/messaging/create-telesign-provider.md +7 -0
- package/docs/examples/messaging/create-textmagic-provider.md +7 -0
- package/docs/examples/messaging/create-topic.md +4 -0
- package/docs/examples/messaging/create-twilio-provider.md +7 -0
- package/docs/examples/messaging/create-vonage-provider.md +7 -0
- package/docs/examples/messaging/delete-provider.md +2 -0
- package/docs/examples/messaging/delete-subscriber.md +3 -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 +3 -0
- package/docs/examples/messaging/get-topic.md +2 -0
- package/docs/examples/messaging/list-message-logs.md +3 -0
- package/docs/examples/messaging/list-messages.md +3 -0
- package/docs/examples/messaging/list-provider-logs.md +3 -0
- package/docs/examples/messaging/list-providers.md +3 -0
- package/docs/examples/messaging/list-subscriber-logs.md +3 -0
- package/docs/examples/messaging/list-subscribers.md +4 -0
- package/docs/examples/messaging/list-targets.md +3 -0
- package/docs/examples/messaging/list-topic-logs.md +3 -0
- package/docs/examples/messaging/list-topics.md +3 -0
- package/docs/examples/messaging/update-apns-provider.md +9 -0
- package/docs/examples/messaging/update-email.md +12 -0
- package/docs/examples/messaging/update-fcm-provider.md +5 -0
- package/docs/examples/messaging/update-mailgun-provider.md +11 -0
- package/docs/examples/messaging/update-msg91provider.md +7 -0
- package/docs/examples/messaging/update-push.md +17 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +9 -0
- package/docs/examples/messaging/update-sms.md +8 -0
- package/docs/examples/messaging/update-smtp-provider.md +15 -0
- package/docs/examples/messaging/update-telesign-provider.md +7 -0
- package/docs/examples/messaging/update-textmagic-provider.md +7 -0
- package/docs/examples/messaging/update-topic.md +4 -0
- package/docs/examples/messaging/update-twilio-provider.md +7 -0
- package/docs/examples/messaging/update-vonage-provider.md +7 -0
- package/docs/examples/migrations/create-appwrite-migration.md +2 -2
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +6 -6
- package/docs/examples/migrations/create-supabase-migration.md +4 -4
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +2 -2
- package/docs/examples/migrations/get-firebase-report-o-auth.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +6 -6
- package/docs/examples/migrations/get-supabase-report.md +4 -4
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/project/create-variable.md +2 -2
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +2 -0
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/update-variable.md +2 -2
- package/docs/examples/projects/create-key.md +2 -2
- package/docs/examples/projects/create-platform.md +2 -2
- package/docs/examples/projects/create-smtp-test.md +11 -0
- package/docs/examples/projects/create-webhook.md +4 -3
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-email-template.md +1 -1
- package/docs/examples/projects/delete-key.md +2 -2
- package/docs/examples/projects/delete-platform.md +2 -2
- package/docs/examples/projects/delete-sms-template.md +1 -1
- package/docs/examples/projects/delete-webhook.md +2 -2
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-email-template.md +1 -1
- package/docs/examples/projects/get-key.md +2 -2
- package/docs/examples/projects/get-platform.md +2 -2
- package/docs/examples/projects/get-sms-template.md +1 -1
- package/docs/examples/projects/get-webhook.md +2 -2
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/update-api-status-all.md +3 -0
- package/docs/examples/projects/update-api-status.md +4 -0
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-email-template.md +3 -3
- package/docs/examples/projects/update-key.md +3 -3
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +3 -3
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-sms-template.md +2 -2
- package/docs/examples/projects/update-smtp.md +11 -0
- package/docs/examples/projects/update-team.md +2 -2
- package/docs/examples/projects/update-webhook-signature.md +2 -2
- package/docs/examples/projects/update-webhook.md +5 -4
- package/docs/examples/projects/update.md +2 -2
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/storage/create-bucket.md +2 -2
- package/docs/examples/storage/create-file.md +2 -2
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +2 -2
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +2 -2
- package/docs/examples/storage/get-file-preview.md +2 -2
- package/docs/examples/storage/get-file-view.md +2 -2
- package/docs/examples/storage/get-file.md +2 -2
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +2 -2
- package/docs/examples/storage/update-file.md +2 -2
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +2 -2
- package/docs/examples/teams/delete-membership.md +2 -2
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +2 -2
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/update-membership-status.md +4 -4
- package/docs/examples/teams/update-membership.md +2 -2
- package/docs/examples/teams/update-name.md +2 -2
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +4 -4
- package/docs/examples/users/create-scrypt-user.md +2 -2
- package/docs/examples/users/create-session.md +2 -0
- package/docs/examples/users/create-target.md +7 -0
- package/docs/examples/users/create-token.md +4 -0
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-mfa-authenticator.md +3 -0
- package/docs/examples/users/delete-session.md +2 -2
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +3 -0
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +3 -0
- package/docs/examples/users/get-usage.md +0 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +1 -1
- package/docs/examples/users/list-mfa-factors.md +2 -0
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +3 -0
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/update-mfa.md +3 -0
- package/docs/examples/users/update-name.md +2 -2
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +6 -0
- package/docs/examples/vcs/create-repository-detection.md +2 -2
- package/docs/examples/vcs/create-repository.md +2 -2
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository.md +2 -2
- package/docs/examples/vcs/list-repositories.md +1 -1
- package/docs/examples/vcs/list-repository-branches.md +2 -2
- package/docs/examples/vcs/update-external-deployments.md +3 -3
- package/index.js +2 -0
- package/install.ps1 +5 -5
- package/install.sh +4 -4
- package/lib/client.js +4 -4
- package/lib/commands/account.js +906 -226
- package/lib/commands/avatars.js +3 -3
- package/lib/commands/databases.js +22 -22
- package/lib/commands/deploy.js +45 -6
- package/lib/commands/functions.js +5 -5
- package/lib/commands/generic.js +2 -2
- package/lib/commands/health.js +193 -1
- package/lib/commands/messaging.js +2815 -0
- package/lib/commands/migrations.js +2 -2
- package/lib/commands/project.js +15 -5
- package/lib/commands/projects.js +210 -72
- package/lib/commands/proxy.js +1 -1
- package/lib/commands/storage.js +6 -6
- package/lib/commands/teams.js +2 -2
- package/lib/commands/users.js +545 -14
- package/lib/paginate.js +2 -2
- package/lib/parser.js +2 -1
- package/package.json +1 -1
- package/scoop/appwrite.json +3 -3
- package/docs/examples/account/create-magic-u-r-l-session.md +0 -4
- package/docs/examples/account/create-phone-session.md +0 -3
- package/docs/examples/projects/get-usage.md +0 -3
- package/docs/examples/projects/update-smtp-configuration.md +0 -11
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
appwrite teams deleteMembership \
|
|
2
|
-
--teamId
|
|
3
|
-
--membershipId
|
|
2
|
+
--teamId <TEAM_ID> \
|
|
3
|
+
--membershipId <MEMBERSHIP_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite teams delete \
|
|
2
|
-
--teamId
|
|
2
|
+
--teamId <TEAM_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
appwrite teams getMembership \
|
|
2
|
-
--teamId
|
|
3
|
-
--membershipId
|
|
2
|
+
--teamId <TEAM_ID> \
|
|
3
|
+
--membershipId <MEMBERSHIP_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite teams getPrefs \
|
|
2
|
-
--teamId
|
|
2
|
+
--teamId <TEAM_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite teams get \
|
|
2
|
-
--teamId
|
|
2
|
+
--teamId <TEAM_ID>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
appwrite teams updateMembershipStatus \
|
|
2
|
-
--teamId
|
|
3
|
-
--membershipId
|
|
4
|
-
--userId
|
|
5
|
-
--secret
|
|
2
|
+
--teamId <TEAM_ID> \
|
|
3
|
+
--membershipId <MEMBERSHIP_ID> \
|
|
4
|
+
--userId <USER_ID> \
|
|
5
|
+
--secret <SECRET>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
appwrite teams updateName \
|
|
2
|
-
--teamId
|
|
3
|
-
--name
|
|
2
|
+
--teamId <TEAM_ID> \
|
|
3
|
+
--name <NAME>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
appwrite users createScryptModifiedUser \
|
|
2
|
-
--userId
|
|
2
|
+
--userId <USER_ID> \
|
|
3
3
|
--email email@example.com \
|
|
4
4
|
--password password \
|
|
5
|
-
--passwordSalt
|
|
6
|
-
--passwordSaltSeparator
|
|
7
|
-
--passwordSignerKey
|
|
5
|
+
--passwordSalt <PASSWORD_SALT> \
|
|
6
|
+
--passwordSaltSeparator <PASSWORD_SALT_SEPARATOR> \
|
|
7
|
+
--passwordSignerKey <PASSWORD_SIGNER_KEY> \
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
appwrite users createScryptUser \
|
|
2
|
-
--userId
|
|
2
|
+
--userId <USER_ID> \
|
|
3
3
|
--email email@example.com \
|
|
4
4
|
--password password \
|
|
5
|
-
--passwordSalt
|
|
5
|
+
--passwordSalt <PASSWORD_SALT> \
|
|
6
6
|
--passwordCpu null \
|
|
7
7
|
--passwordMemory null \
|
|
8
8
|
--passwordParallel null \
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users deleteIdentity \
|
|
2
|
-
--identityId
|
|
2
|
+
--identityId <IDENTITY_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
appwrite users deleteSession \
|
|
2
|
-
--userId
|
|
3
|
-
--sessionId
|
|
2
|
+
--userId <USER_ID> \
|
|
3
|
+
--sessionId <SESSION_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users deleteSessions \
|
|
2
|
-
--userId
|
|
2
|
+
--userId <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users delete \
|
|
2
|
-
--userId
|
|
2
|
+
--userId <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users getPrefs \
|
|
2
|
-
--userId
|
|
2
|
+
--userId <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users get \
|
|
2
|
-
--userId
|
|
2
|
+
--userId <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users listMemberships \
|
|
2
|
-
--userId
|
|
2
|
+
--userId <USER_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite users listSessions \
|
|
2
|
-
--userId
|
|
2
|
+
--userId <USER_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
appwrite users updateName \
|
|
2
|
-
--userId
|
|
3
|
-
--name
|
|
2
|
+
--userId <USER_ID> \
|
|
3
|
+
--name <NAME>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite vcs deleteInstallation \
|
|
2
|
-
--installationId
|
|
2
|
+
--installationId <INSTALLATION_ID>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
appwrite vcs getInstallation \
|
|
2
|
-
--installationId
|
|
2
|
+
--installationId <INSTALLATION_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
appwrite vcs getRepository \
|
|
2
|
-
--installationId
|
|
3
|
-
--providerRepositoryId
|
|
2
|
+
--installationId <INSTALLATION_ID> \
|
|
3
|
+
--providerRepositoryId <PROVIDER_REPOSITORY_ID>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
appwrite vcs listRepositoryBranches \
|
|
2
|
-
--installationId
|
|
3
|
-
--providerRepositoryId
|
|
2
|
+
--installationId <INSTALLATION_ID> \
|
|
3
|
+
--providerRepositoryId <PROVIDER_REPOSITORY_ID>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
appwrite vcs updateExternalDeployments \
|
|
2
|
-
--installationId
|
|
3
|
-
--repositoryId
|
|
4
|
-
--providerPullRequestId
|
|
2
|
+
--installationId <INSTALLATION_ID> \
|
|
3
|
+
--repositoryId <REPOSITORY_ID> \
|
|
4
|
+
--providerPullRequestId <PROVIDER_PULL_REQUEST_ID>
|
package/index.js
CHANGED
|
@@ -22,6 +22,7 @@ const { functions } = require("./lib/commands/functions");
|
|
|
22
22
|
const { graphql } = require("./lib/commands/graphql");
|
|
23
23
|
const { health } = require("./lib/commands/health");
|
|
24
24
|
const { locale } = require("./lib/commands/locale");
|
|
25
|
+
const { messaging } = require("./lib/commands/messaging");
|
|
25
26
|
const { migrations } = require("./lib/commands/migrations");
|
|
26
27
|
const { project } = require("./lib/commands/project");
|
|
27
28
|
const { projects } = require("./lib/commands/projects");
|
|
@@ -60,6 +61,7 @@ program
|
|
|
60
61
|
.addCommand(graphql)
|
|
61
62
|
.addCommand(health)
|
|
62
63
|
.addCommand(locale)
|
|
64
|
+
.addCommand(messaging)
|
|
63
65
|
.addCommand(migrations)
|
|
64
66
|
.addCommand(project)
|
|
65
67
|
.addCommand(projects)
|
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/5.0.1/appwrite-cli-win-x64.exe"
|
|
17
|
+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-arm64.exe"
|
|
18
18
|
|
|
19
19
|
$APPWRITE_BINARY_NAME = "appwrite.exe"
|
|
20
20
|
|
|
@@ -30,11 +30,11 @@ $USER_PATH_ENV_VAR = [Environment]::GetEnvironmentVariable("PATH", "User")
|
|
|
30
30
|
function Greeting {
|
|
31
31
|
Write-Host @"
|
|
32
32
|
|
|
33
|
-
_ _ _ ___ __ _____
|
|
33
|
+
_ _ _ ___ __ _____
|
|
34
34
|
/_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \
|
|
35
35
|
//_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/
|
|
36
|
-
/ _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
|
|
37
|
-
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
|
|
36
|
+
/ _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
|
|
37
|
+
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
|
|
38
38
|
|_| |_|
|
|
39
39
|
|
|
40
40
|
"@ -ForegroundColor red
|
package/install.sh
CHANGED
|
@@ -44,11 +44,11 @@ greeting() {
|
|
|
44
44
|
echo -e "${RED}"
|
|
45
45
|
cat << "EOF"
|
|
46
46
|
|
|
47
|
-
_ _ _ ___ __ _____
|
|
47
|
+
_ _ _ ___ __ _____
|
|
48
48
|
/_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \
|
|
49
49
|
//_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/
|
|
50
|
-
/ _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
|
|
51
|
-
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
|
|
50
|
+
/ _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
|
|
51
|
+
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
|
|
52
52
|
|_| |_|
|
|
53
53
|
EOF
|
|
54
54
|
echo -e "${NC}\n"
|
|
@@ -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="5.0.1"
|
|
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
|
@@ -9,15 +9,15 @@ class Client {
|
|
|
9
9
|
CHUNK_SIZE = 5*1024*1024; // 5MB
|
|
10
10
|
|
|
11
11
|
constructor() {
|
|
12
|
-
this.endpoint = 'https://
|
|
12
|
+
this.endpoint = 'https://cloud.appwrite.io/v1';
|
|
13
13
|
this.headers = {
|
|
14
14
|
'content-type': '',
|
|
15
15
|
'x-sdk-name': 'Command Line',
|
|
16
16
|
'x-sdk-platform': 'console',
|
|
17
17
|
'x-sdk-language': 'cli',
|
|
18
|
-
'x-sdk-version': '
|
|
19
|
-
'user-agent' : `AppwriteCLI/
|
|
20
|
-
'X-Appwrite-Response-Format' : '1.
|
|
18
|
+
'x-sdk-version': '5.0.1',
|
|
19
|
+
'user-agent' : `AppwriteCLI/5.0.1 (${os.type()} ${os.version()}; ${os.arch()})`,
|
|
20
|
+
'X-Appwrite-Response-Format' : '1.5.0',
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
|