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/account.js
+3-3
Original file line number
Diff line number
Diff line change
@@ -1954,22 +1954,22 @@ account
1954
1954
1955
1955
account
1956
1956
.command(`create-push-target`)
1957
-
.description(``)
1957
+
.description(`Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.`)
1958
1958
.requiredOption(`--target-id <target-id>`,`Target ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
.option(`--provider-id <provider-id>`,`Provider ID. Message will be sent to this target from the specified provider ID. If no provider ID is set the first setup provider will be used.`)
1961
1961
.action(actionRunner(accountCreatePushTarget))
1962
1962
1963
1963
account
1964
1964
.command(`update-push-target`)
1965
-
.description(``)
1965
+
.description(`Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.`)
.description(`Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.`)
.description(`Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream. `)
79
79
.requiredOption(`--prompt <prompt>`,`Prompt. A string containing questions asked to the AI assistant.`)
Copy file name to clipboardExpand all lines: lib/commands/databases.js
+3-3
Original file line number
Diff line number
Diff line change
@@ -2126,7 +2126,7 @@ databases
2126
2126
2127
2127
databases
2128
2128
.command(`get-usage`)
2129
-
.description(``)
2129
+
.description(`Get usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
2130
2130
.option(`--range <range>`,`'Date range.`)
2131
2131
.action(actionRunner(databasesGetUsage))
2132
2132
@@ -2558,7 +2558,7 @@ databases
2558
2558
2559
2559
databases
2560
2560
.command(`get-collection-usage`)
2561
-
.description(``)
2561
+
.description(`Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
.description(`Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`)
Copy file name to clipboardExpand all lines: lib/commands/functions.js
+4-4
Original file line number
Diff line number
Diff line change
@@ -1420,7 +1420,7 @@ functions
1420
1420
1421
1421
functions
1422
1422
.command(`get-usage`)
1423
-
.description(``)
1423
+
.description(`Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.`)
1424
1424
.option(`--range <range>`,`Date range.`)
1425
1425
.action(actionRunner(functionsGetUsage))
1426
1426
@@ -1503,15 +1503,15 @@ functions
1503
1503
1504
1504
functions
1505
1505
.command(`create-build`)
1506
-
.description(``)
1506
+
.description(`Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.`)
.description(`Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.`)
.description(`Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.`)
Copy file name to clipboardExpand all lines: lib/commands/messaging.js
+3-3
Original file line number
Diff line number
Diff line change
@@ -2459,7 +2459,7 @@ messaging
2459
2459
2460
2460
messaging
2461
2461
.command(`update-email`)
2462
-
.description(`Update an email message by its unique ID. `)
2462
+
.description(`Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. `)
.option(`--topics [topics...]`,`List of Topic IDs.`)
2465
2465
.option(`--users [users...]`,`List of User IDs.`)
@@ -2500,7 +2500,7 @@ messaging
2500
2500
2501
2501
messaging
2502
2502
.command(`update-push`)
2503
-
.description(`Update a push notification by its unique ID. `)
2503
+
.description(`Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. `)
.option(`--topics [topics...]`,`List of Topic IDs.`)
2506
2506
.option(`--users [users...]`,`List of User IDs.`)
@@ -2536,7 +2536,7 @@ messaging
2536
2536
2537
2537
messaging
2538
2538
.command(`update-sms`)
2539
-
.description(`Update an email message by its unique ID. `)
2539
+
.description(`Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. `)
.description(`List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.`)
588
588
.option(`--queries [queries...]`,`Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, statusCounters, resourceData, errors`)
589
589
.option(`--search <search>`,`Search term to filter your list results. Max length: 256 chars.`)
590
590
.action(actionRunner(migrationsList))
591
591
592
592
migrations
593
593
.command(`create-appwrite-migration`)
594
-
.description(``)
594
+
.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. `)
595
595
.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.`)
604
604
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.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. `)
613
613
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
614
614
.requiredOption(`--service-account <service-account>`,`JSON of the Firebase service account credentials`)
.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.`)
620
620
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
621
621
.requiredOption(`--service-account <service-account>`,`JSON of the Firebase service account credentials`)
.description(`Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project. `)
627
627
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.description(`Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. `)
640
640
.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. `)
653
653
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.requiredOption(`--api-key <api-key>`,`Source's API Key`)
@@ -661,7 +661,7 @@ migrations
661
661
662
662
migrations
663
663
.command(`get-supabase-report`)
664
-
.description(``)
664
+
.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. `)
665
665
.requiredOption(`--resources [resources...]`,`List of resources to migrate`)
.requiredOption(`--api-key <api-key>`,`Source's API Key.`)
@@ -673,19 +673,19 @@ migrations
673
673
674
674
migrations
675
675
.command(`get`)
676
-
.description(``)
676
+
.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. `)
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, total, billingPlan
8
+
* @property {string} search Search term to filter your list results. Max length: 256 chars.
.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.`)
256
256
.requiredOption(`--start-date <start-date>`,`Starting date for the usage`)
257
257
.requiredOption(`--end-date <end-date>`,`End date for the usage`)
0 commit comments