appwrite-cli 6.0.0-rc.4 → 6.0.0-rc.6
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/README.md +4 -4
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +2 -2
- package/lib/commands/account.js +65 -65
- package/lib/commands/avatars.js +9 -9
- package/lib/commands/databases.js +140 -140
- package/lib/commands/functions.js +69 -69
- package/lib/commands/generic.js +4 -3
- package/lib/commands/health.js +22 -22
- package/lib/commands/init.js +4 -3
- package/lib/commands/locale.js +7 -7
- package/lib/commands/messaging.js +160 -160
- package/lib/commands/migrations.js +28 -28
- package/lib/commands/project.js +11 -11
- package/lib/commands/projects.js +122 -122
- package/lib/commands/proxy.js +10 -10
- package/lib/commands/pull.js +4 -4
- package/lib/commands/push.js +310 -98
- package/lib/commands/run.js +63 -21
- package/lib/commands/storage.js +44 -44
- package/lib/commands/teams.js +29 -29
- package/lib/commands/users.js +99 -99
- package/lib/commands/vcs.js +27 -27
- package/lib/config.js +22 -10
- package/lib/emulation/docker.js +81 -10
- package/lib/parser.js +3 -14
- package/lib/questions.js +16 -20
- package/lib/spinner.js +1 -0
- package/package.json +3 -2
- package/scoop/appwrite.json +3 -3
|
@@ -743,68 +743,68 @@ migrations
|
|
|
743
743
|
.action(actionRunner(migrationsList))
|
|
744
744
|
|
|
745
745
|
migrations
|
|
746
|
-
.command(`
|
|
746
|
+
.command(`create-appwrite-migration`)
|
|
747
747
|
.description(``)
|
|
748
748
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
749
749
|
.requiredOption(`--endpoint <endpoint>`, `Source's Appwrite Endpoint`)
|
|
750
|
-
.requiredOption(`--
|
|
751
|
-
.requiredOption(`--
|
|
750
|
+
.requiredOption(`--project-id <project-id>`, `Source's Project ID`)
|
|
751
|
+
.requiredOption(`--api-key <api-key>`, `Source's API Key`)
|
|
752
752
|
.action(actionRunner(migrationsCreateAppwriteMigration))
|
|
753
753
|
|
|
754
754
|
migrations
|
|
755
|
-
.command(`
|
|
755
|
+
.command(`get-appwrite-report`)
|
|
756
756
|
.description(``)
|
|
757
757
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
758
758
|
.requiredOption(`--endpoint <endpoint>`, `Source's Appwrite Endpoint`)
|
|
759
|
-
.requiredOption(`--
|
|
759
|
+
.requiredOption(`--project-id <project-id>`, `Source's Project ID`)
|
|
760
760
|
.requiredOption(`--key <key>`, `Source's API Key`)
|
|
761
761
|
.action(actionRunner(migrationsGetAppwriteReport))
|
|
762
762
|
|
|
763
763
|
migrations
|
|
764
|
-
.command(`
|
|
764
|
+
.command(`create-firebase-migration`)
|
|
765
765
|
.description(``)
|
|
766
766
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
767
|
-
.requiredOption(`--
|
|
767
|
+
.requiredOption(`--service-account <service-account>`, `JSON of the Firebase service account credentials`)
|
|
768
768
|
.action(actionRunner(migrationsCreateFirebaseMigration))
|
|
769
769
|
|
|
770
770
|
migrations
|
|
771
|
-
.command(`
|
|
771
|
+
.command(`delete-firebase-auth`)
|
|
772
772
|
.description(``)
|
|
773
773
|
.action(actionRunner(migrationsDeleteFirebaseAuth))
|
|
774
774
|
|
|
775
775
|
migrations
|
|
776
|
-
.command(`
|
|
776
|
+
.command(`create-firebase-o-auth-migration`)
|
|
777
777
|
.description(``)
|
|
778
778
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
779
|
-
.requiredOption(`--
|
|
779
|
+
.requiredOption(`--project-id <project-id>`, `Project ID of the Firebase Project`)
|
|
780
780
|
.action(actionRunner(migrationsCreateFirebaseOAuthMigration))
|
|
781
781
|
|
|
782
782
|
migrations
|
|
783
|
-
.command(`
|
|
783
|
+
.command(`list-firebase-projects`)
|
|
784
784
|
.description(``)
|
|
785
785
|
.action(actionRunner(migrationsListFirebaseProjects))
|
|
786
786
|
|
|
787
787
|
migrations
|
|
788
|
-
.command(`
|
|
788
|
+
.command(`get-firebase-report`)
|
|
789
789
|
.description(``)
|
|
790
790
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
791
|
-
.requiredOption(`--
|
|
791
|
+
.requiredOption(`--service-account <service-account>`, `JSON of the Firebase service account credentials`)
|
|
792
792
|
.action(actionRunner(migrationsGetFirebaseReport))
|
|
793
793
|
|
|
794
794
|
migrations
|
|
795
|
-
.command(`
|
|
795
|
+
.command(`get-firebase-report-o-auth`)
|
|
796
796
|
.description(``)
|
|
797
797
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
798
|
-
.requiredOption(`--
|
|
798
|
+
.requiredOption(`--project-id <project-id>`, `Project ID`)
|
|
799
799
|
.action(actionRunner(migrationsGetFirebaseReportOAuth))
|
|
800
800
|
|
|
801
801
|
migrations
|
|
802
|
-
.command(`
|
|
802
|
+
.command(`create-n-host-migration`)
|
|
803
803
|
.description(``)
|
|
804
804
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
805
805
|
.requiredOption(`--subdomain <subdomain>`, `Source's Subdomain`)
|
|
806
806
|
.requiredOption(`--region <region>`, `Source's Region`)
|
|
807
|
-
.requiredOption(`--
|
|
807
|
+
.requiredOption(`--admin-secret <admin-secret>`, `Source's Admin Secret`)
|
|
808
808
|
.requiredOption(`--database <database>`, `Source's Database Name`)
|
|
809
809
|
.requiredOption(`--username <username>`, `Source's Database Username`)
|
|
810
810
|
.requiredOption(`--password <password>`, `Source's Database Password`)
|
|
@@ -812,12 +812,12 @@ migrations
|
|
|
812
812
|
.action(actionRunner(migrationsCreateNHostMigration))
|
|
813
813
|
|
|
814
814
|
migrations
|
|
815
|
-
.command(`
|
|
815
|
+
.command(`get-n-host-report`)
|
|
816
816
|
.description(``)
|
|
817
817
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate.`)
|
|
818
818
|
.requiredOption(`--subdomain <subdomain>`, `Source's Subdomain.`)
|
|
819
819
|
.requiredOption(`--region <region>`, `Source's Region.`)
|
|
820
|
-
.requiredOption(`--
|
|
820
|
+
.requiredOption(`--admin-secret <admin-secret>`, `Source's Admin Secret.`)
|
|
821
821
|
.requiredOption(`--database <database>`, `Source's Database Name.`)
|
|
822
822
|
.requiredOption(`--username <username>`, `Source's Database Username.`)
|
|
823
823
|
.requiredOption(`--password <password>`, `Source's Database Password.`)
|
|
@@ -825,24 +825,24 @@ migrations
|
|
|
825
825
|
.action(actionRunner(migrationsGetNHostReport))
|
|
826
826
|
|
|
827
827
|
migrations
|
|
828
|
-
.command(`
|
|
828
|
+
.command(`create-supabase-migration`)
|
|
829
829
|
.description(``)
|
|
830
830
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
831
831
|
.requiredOption(`--endpoint <endpoint>`, `Source's Supabase Endpoint`)
|
|
832
|
-
.requiredOption(`--
|
|
833
|
-
.requiredOption(`--
|
|
832
|
+
.requiredOption(`--api-key <api-key>`, `Source's API Key`)
|
|
833
|
+
.requiredOption(`--database-host <database-host>`, `Source's Database Host`)
|
|
834
834
|
.requiredOption(`--username <username>`, `Source's Database Username`)
|
|
835
835
|
.requiredOption(`--password <password>`, `Source's Database Password`)
|
|
836
836
|
.option(`--port <port>`, `Source's Database Port`, parseInteger)
|
|
837
837
|
.action(actionRunner(migrationsCreateSupabaseMigration))
|
|
838
838
|
|
|
839
839
|
migrations
|
|
840
|
-
.command(`
|
|
840
|
+
.command(`get-supabase-report`)
|
|
841
841
|
.description(``)
|
|
842
842
|
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
843
843
|
.requiredOption(`--endpoint <endpoint>`, `Source's Supabase Endpoint.`)
|
|
844
|
-
.requiredOption(`--
|
|
845
|
-
.requiredOption(`--
|
|
844
|
+
.requiredOption(`--api-key <api-key>`, `Source's API Key.`)
|
|
845
|
+
.requiredOption(`--database-host <database-host>`, `Source's Database Host.`)
|
|
846
846
|
.requiredOption(`--username <username>`, `Source's Database Username.`)
|
|
847
847
|
.requiredOption(`--password <password>`, `Source's Database Password.`)
|
|
848
848
|
.option(`--port <port>`, `Source's Database Port.`, parseInteger)
|
|
@@ -851,19 +851,19 @@ migrations
|
|
|
851
851
|
migrations
|
|
852
852
|
.command(`get`)
|
|
853
853
|
.description(``)
|
|
854
|
-
.requiredOption(`--
|
|
854
|
+
.requiredOption(`--migration-id <migration-id>`, `Migration unique ID.`)
|
|
855
855
|
.action(actionRunner(migrationsGet))
|
|
856
856
|
|
|
857
857
|
migrations
|
|
858
858
|
.command(`retry`)
|
|
859
859
|
.description(``)
|
|
860
|
-
.requiredOption(`--
|
|
860
|
+
.requiredOption(`--migration-id <migration-id>`, `Migration unique ID.`)
|
|
861
861
|
.action(actionRunner(migrationsRetry))
|
|
862
862
|
|
|
863
863
|
migrations
|
|
864
864
|
.command(`delete`)
|
|
865
865
|
.description(``)
|
|
866
|
-
.requiredOption(`--
|
|
866
|
+
.requiredOption(`--migration-id <migration-id>`, `Migration ID.`)
|
|
867
867
|
.action(actionRunner(migrationsDelete))
|
|
868
868
|
|
|
869
869
|
module.exports = {
|
package/lib/commands/project.js
CHANGED
|
@@ -257,43 +257,43 @@ const projectDeleteVariable = async ({variableId,parseOutput = true, overrideFor
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
project
|
|
260
|
-
.command(`
|
|
260
|
+
.command(`get-usage`)
|
|
261
261
|
.description(``)
|
|
262
|
-
.requiredOption(`--
|
|
263
|
-
.requiredOption(`--
|
|
262
|
+
.requiredOption(`--start-date <start-date>`, `Starting date for the usage`)
|
|
263
|
+
.requiredOption(`--end-date <end-date>`, `End date for the usage`)
|
|
264
264
|
.option(`--period <period>`, `Period used`)
|
|
265
265
|
.action(actionRunner(projectGetUsage))
|
|
266
266
|
|
|
267
267
|
project
|
|
268
|
-
.command(`
|
|
268
|
+
.command(`list-variables`)
|
|
269
269
|
.description(`Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.`)
|
|
270
270
|
.action(actionRunner(projectListVariables))
|
|
271
271
|
|
|
272
272
|
project
|
|
273
|
-
.command(`
|
|
273
|
+
.command(`create-variable`)
|
|
274
274
|
.description(`Create a new project variable. This variable will be accessible in all Appwrite Functions at runtime.`)
|
|
275
275
|
.requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`)
|
|
276
276
|
.requiredOption(`--value <value>`, `Variable value. Max length: 8192 chars.`)
|
|
277
277
|
.action(actionRunner(projectCreateVariable))
|
|
278
278
|
|
|
279
279
|
project
|
|
280
|
-
.command(`
|
|
280
|
+
.command(`get-variable`)
|
|
281
281
|
.description(`Get a project variable by its unique ID.`)
|
|
282
|
-
.requiredOption(`--
|
|
282
|
+
.requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`)
|
|
283
283
|
.action(actionRunner(projectGetVariable))
|
|
284
284
|
|
|
285
285
|
project
|
|
286
|
-
.command(`
|
|
286
|
+
.command(`update-variable`)
|
|
287
287
|
.description(`Update project variable by its unique ID. This variable will be accessible in all Appwrite Functions at runtime.`)
|
|
288
|
-
.requiredOption(`--
|
|
288
|
+
.requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`)
|
|
289
289
|
.requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`)
|
|
290
290
|
.option(`--value <value>`, `Variable value. Max length: 8192 chars.`)
|
|
291
291
|
.action(actionRunner(projectUpdateVariable))
|
|
292
292
|
|
|
293
293
|
project
|
|
294
|
-
.command(`
|
|
294
|
+
.command(`delete-variable`)
|
|
295
295
|
.description(`Delete a project variable by its unique ID. `)
|
|
296
|
-
.requiredOption(`--
|
|
296
|
+
.requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`)
|
|
297
297
|
.action(actionRunner(projectDeleteVariable))
|
|
298
298
|
|
|
299
299
|
module.exports = {
|