You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/commands/services/migrations.ts
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,8 @@ migrations
49
49
.description(`Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. `)
50
50
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.description(`Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.`)
64
64
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.description(`Export documents to a CSV file from your Appwrite database. This endpoint allows you to export documents to a CSV file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.`)
78
-
.requiredOption(`--resourceid <resourceid>`,`Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`)
78
+
.requiredOption(`--resource-id <resource-id>`,`Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`)
79
79
.requiredOption(`--filename <filename>`,`The name of the file to be created for the export, excluding the .csv extension.`)
80
80
.option(`--columns [columns...]`,`List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`)
81
81
.option(`--queries [queries...]`,`Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`)
@@ -104,11 +104,11 @@ migrations
104
104
migrations
105
105
.command(`create-csv-import`)
106
106
.description(`Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket.`)
107
-
.requiredOption(`--bucketid <bucketid>`,`Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`)
108
-
.requiredOption(`--fileid <fileid>`,`File ID.`)
109
-
.requiredOption(`--resourceid <resourceid>`,`Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.`)
107
+
.requiredOption(`--bucket-id <bucket-id>`,`Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`)
108
+
.requiredOption(`--file-id <file-id>`,`File ID.`)
109
+
.requiredOption(`--resource-id <resource-id>`,`Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.`)
110
110
.option(
111
-
`--internalfile [value]`,
111
+
`--internal-file [value]`,
112
112
`Is the file stored in an internal bucket?`,
113
113
(value: string|undefined)=>
114
114
value===undefined ? true : parseBool(value),
@@ -124,7 +124,7 @@ migrations
124
124
.command(`create-firebase-migration`)
125
125
.description(`Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project. `)
126
126
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
127
-
.requiredOption(`--serviceaccount <serviceaccount>`,`JSON of the Firebase service account credentials`)
127
+
.requiredOption(`--service-account <service-account>`,`JSON of the Firebase service account credentials`)
128
128
.action(
129
129
actionRunner(
130
130
async({ resources, serviceAccount })=>
@@ -136,7 +136,7 @@ migrations
136
136
.command(`get-firebase-report`)
137
137
.description(`Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.`)
138
138
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
139
-
.requiredOption(`--serviceaccount <serviceaccount>`,`JSON of the Firebase service account credentials`)
139
+
.requiredOption(`--service-account <service-account>`,`JSON of the Firebase service account credentials`)
140
140
.action(
141
141
actionRunner(
142
142
async({ resources, serviceAccount })=>
@@ -150,7 +150,7 @@ migrations
150
150
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.description(`Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project. `)
186
186
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.description(`Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. `)
203
203
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.description(`Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process. `)
Copy file name to clipboardExpand all lines: lib/commands/services/project.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,8 @@ export const project = new Command("project")
32
32
project
33
33
.command(`get-usage`)
34
34
.description(`Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period.`)
35
-
.requiredOption(`--startdate <startdate>`,`Starting date for the usage`)
36
-
.requiredOption(`--enddate <enddate>`,`End date for the usage`)
35
+
.requiredOption(`--start-date <start-date>`,`Starting date for the usage`)
36
+
.requiredOption(`--end-date <end-date>`,`End date for the usage`)
37
37
.option(`--period <period>`,`Period used`)
38
38
.action(
39
39
actionRunner(
@@ -72,7 +72,7 @@ project
72
72
project
73
73
.command(`get-variable`)
74
74
.description(`Get a project variable by its unique ID.`)
0 commit comments