Skip to content

Commit 437c226

Browse files
committed
fix args
1 parent ab643f6 commit 437c226

File tree

15 files changed

+936
-936
lines changed

15 files changed

+936
-936
lines changed

lib/commands/services/account.ts

Lines changed: 21 additions & 21 deletions
Large diffs are not rendered by default.

lib/commands/services/databases.ts

Lines changed: 203 additions & 203 deletions
Large diffs are not rendered by default.

lib/commands/services/functions.ts

Lines changed: 50 additions & 50 deletions
Large diffs are not rendered by default.

lib/commands/services/messaging.ts

Lines changed: 137 additions & 137 deletions
Large diffs are not rendered by default.

lib/commands/services/migrations.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ migrations
4949
.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. `)
5050
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
5151
.requiredOption(`--endpoint <endpoint>`, `Source Appwrite endpoint`)
52-
.requiredOption(`--projectid <projectid>`, `Source Project ID`)
53-
.requiredOption(`--apikey <apikey>`, `Source API Key`)
52+
.requiredOption(`--project-id <project-id>`, `Source Project ID`)
53+
.requiredOption(`--api-key <api-key>`, `Source API Key`)
5454
.action(
5555
actionRunner(
5656
async ({ resources, endpoint, projectId, apiKey }) =>
@@ -63,19 +63,19 @@ migrations
6363
.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.`)
6464
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
6565
.requiredOption(`--endpoint <endpoint>`, `Source's Appwrite Endpoint`)
66-
.requiredOption(`--projectid <projectid>`, `Source's Project ID`)
66+
.requiredOption(`--project-id <project-id>`, `Source's Project ID`)
6767
.requiredOption(`--key <key>`, `Source's API Key`)
6868
.action(
6969
actionRunner(
70-
async ({ resources, endpoint, projectID, key }) =>
71-
parse(await (await getMigrationsClient()).getAppwriteReport(resources, endpoint, projectID, key)),
70+
async ({ resources, endpoint, projectId, key }) =>
71+
parse(await (await getMigrationsClient()).getAppwriteReport(resources, endpoint, projectId, key)),
7272
),
7373
);
7474

7575
migrations
7676
.command(`create-csv-export`)
7777
.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.`)
7979
.requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .csv extension.`)
8080
.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.`)
8181
.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
104104
migrations
105105
.command(`create-csv-import`)
106106
.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.`)
110110
.option(
111-
`--internalfile [value]`,
111+
`--internal-file [value]`,
112112
`Is the file stored in an internal bucket?`,
113113
(value: string | undefined) =>
114114
value === undefined ? true : parseBool(value),
@@ -124,7 +124,7 @@ migrations
124124
.command(`create-firebase-migration`)
125125
.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. `)
126126
.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`)
128128
.action(
129129
actionRunner(
130130
async ({ resources, serviceAccount }) =>
@@ -136,7 +136,7 @@ migrations
136136
.command(`get-firebase-report`)
137137
.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.`)
138138
.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`)
140140
.action(
141141
actionRunner(
142142
async ({ resources, serviceAccount }) =>
@@ -150,7 +150,7 @@ migrations
150150
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
151151
.requiredOption(`--subdomain <subdomain>`, `Source's Subdomain`)
152152
.requiredOption(`--region <region>`, `Source's Region`)
153-
.requiredOption(`--adminsecret <adminsecret>`, `Source's Admin Secret`)
153+
.requiredOption(`--admin-secret <admin-secret>`, `Source's Admin Secret`)
154154
.requiredOption(`--database <database>`, `Source's Database Name`)
155155
.requiredOption(`--username <username>`, `Source's Database Username`)
156156
.requiredOption(`--password <password>`, `Source's Database Password`)
@@ -168,7 +168,7 @@ migrations
168168
.requiredOption(`--resources [resources...]`, `List of resources to migrate.`)
169169
.requiredOption(`--subdomain <subdomain>`, `Source's Subdomain.`)
170170
.requiredOption(`--region <region>`, `Source's Region.`)
171-
.requiredOption(`--adminsecret <adminsecret>`, `Source's Admin Secret.`)
171+
.requiredOption(`--admin-secret <admin-secret>`, `Source's Admin Secret.`)
172172
.requiredOption(`--database <database>`, `Source's Database Name.`)
173173
.requiredOption(`--username <username>`, `Source's Database Username.`)
174174
.requiredOption(`--password <password>`, `Source's Database Password.`)
@@ -185,8 +185,8 @@ migrations
185185
.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. `)
186186
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
187187
.requiredOption(`--endpoint <endpoint>`, `Source's Supabase Endpoint`)
188-
.requiredOption(`--apikey <apikey>`, `Source's API Key`)
189-
.requiredOption(`--databasehost <databasehost>`, `Source's Database Host`)
188+
.requiredOption(`--api-key <api-key>`, `Source's API Key`)
189+
.requiredOption(`--database-host <database-host>`, `Source's Database Host`)
190190
.requiredOption(`--username <username>`, `Source's Database Username`)
191191
.requiredOption(`--password <password>`, `Source's Database Password`)
192192
.option(`--port <port>`, `Source's Database Port`, parseInteger)
@@ -202,8 +202,8 @@ migrations
202202
.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. `)
203203
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
204204
.requiredOption(`--endpoint <endpoint>`, `Source's Supabase Endpoint.`)
205-
.requiredOption(`--apikey <apikey>`, `Source's API Key.`)
206-
.requiredOption(`--databasehost <databasehost>`, `Source's Database Host.`)
205+
.requiredOption(`--api-key <api-key>`, `Source's API Key.`)
206+
.requiredOption(`--database-host <database-host>`, `Source's Database Host.`)
207207
.requiredOption(`--username <username>`, `Source's Database Username.`)
208208
.requiredOption(`--password <password>`, `Source's Database Password.`)
209209
.option(`--port <port>`, `Source's Database Port.`, parseInteger)
@@ -217,7 +217,7 @@ migrations
217217
migrations
218218
.command(`get`)
219219
.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. `)
220-
.requiredOption(`--migrationid <migrationid>`, `Migration unique ID.`)
220+
.requiredOption(`--migration-id <migration-id>`, `Migration unique ID.`)
221221
.action(
222222
actionRunner(
223223
async ({ migrationId }) =>
@@ -228,7 +228,7 @@ migrations
228228
migrations
229229
.command(`retry`)
230230
.description(`Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.`)
231-
.requiredOption(`--migrationid <migrationid>`, `Migration unique ID.`)
231+
.requiredOption(`--migration-id <migration-id>`, `Migration unique ID.`)
232232
.action(
233233
actionRunner(
234234
async ({ migrationId }) =>
@@ -239,7 +239,7 @@ migrations
239239
migrations
240240
.command(`delete`)
241241
.description(`Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history. `)
242-
.requiredOption(`--migrationid <migrationid>`, `Migration ID.`)
242+
.requiredOption(`--migration-id <migration-id>`, `Migration ID.`)
243243
.action(
244244
actionRunner(
245245
async ({ migrationId }) =>

lib/commands/services/project.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export const project = new Command("project")
3232
project
3333
.command(`get-usage`)
3434
.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`)
3737
.option(`--period <period>`, `Period used`)
3838
.action(
3939
actionRunner(
@@ -72,7 +72,7 @@ project
7272
project
7373
.command(`get-variable`)
7474
.description(`Get a project variable by its unique ID.`)
75-
.requiredOption(`--variableid <variableid>`, `Variable unique ID.`)
75+
.requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`)
7676
.action(
7777
actionRunner(
7878
async ({ variableId }) =>
@@ -83,7 +83,7 @@ project
8383
project
8484
.command(`update-variable`)
8585
.description(`Update project variable by its unique ID. This variable will be accessible in all Appwrite Functions at runtime.`)
86-
.requiredOption(`--variableid <variableid>`, `Variable unique ID.`)
86+
.requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`)
8787
.requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`)
8888
.option(`--value <value>`, `Variable value. Max length: 8192 chars.`)
8989
.option(
@@ -102,7 +102,7 @@ project
102102
project
103103
.command(`delete-variable`)
104104
.description(`Delete a project variable by its unique ID. `)
105-
.requiredOption(`--variableid <variableid>`, `Variable unique ID.`)
105+
.requiredOption(`--variable-id <variable-id>`, `Variable unique ID.`)
106106
.action(
107107
actionRunner(
108108
async ({ variableId }) =>

0 commit comments

Comments
 (0)