appwrite-cli 17.0.0 → 17.1.0

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +2 -2
  3. package/cli.ts +6 -0
  4. package/dist/bundle-win-arm64.mjs +489 -122
  5. package/dist/cli.cjs +489 -122
  6. package/dist/index.cjs +175 -85
  7. package/dist/index.js +175 -85
  8. package/dist/lib/commands/services/organizations.d.ts +3 -0
  9. package/dist/lib/commands/services/organizations.d.ts.map +1 -0
  10. package/dist/lib/commands/services/teams.d.ts.map +1 -1
  11. package/dist/lib/constants.d.ts +1 -1
  12. package/dist/lib/emulation/utils.d.ts.map +1 -1
  13. package/dist/lib/parser.d.ts.map +1 -1
  14. package/dist/lib/types.d.ts +1 -0
  15. package/dist/lib/types.d.ts.map +1 -1
  16. package/docs/examples/organizations/add-credit.md +5 -0
  17. package/docs/examples/organizations/cancel-downgrade.md +4 -0
  18. package/docs/examples/organizations/create-downgrade-feedback.md +8 -0
  19. package/docs/examples/organizations/create-invoice-payment.md +6 -0
  20. package/docs/examples/organizations/create-key.md +6 -0
  21. package/docs/examples/organizations/create.md +6 -0
  22. package/docs/examples/organizations/delete-backup-payment-method.md +4 -0
  23. package/docs/examples/organizations/delete-default-payment-method.md +4 -0
  24. package/docs/examples/organizations/delete-key.md +5 -0
  25. package/docs/examples/organizations/delete.md +4 -0
  26. package/docs/examples/organizations/estimation-create-organization.md +4 -0
  27. package/docs/examples/organizations/estimation-delete-organization.md +4 -0
  28. package/docs/examples/organizations/estimation-update-plan.md +5 -0
  29. package/docs/examples/organizations/get-aggregation.md +5 -0
  30. package/docs/examples/organizations/get-available-credits.md +4 -0
  31. package/docs/examples/organizations/get-credit.md +5 -0
  32. package/docs/examples/organizations/get-invoice-download.md +5 -0
  33. package/docs/examples/organizations/get-invoice-view.md +5 -0
  34. package/docs/examples/organizations/get-invoice.md +5 -0
  35. package/docs/examples/organizations/get-key.md +5 -0
  36. package/docs/examples/organizations/get-plan.md +4 -0
  37. package/docs/examples/organizations/get-scopes.md +4 -0
  38. package/docs/examples/organizations/get-usage.md +4 -0
  39. package/docs/examples/organizations/list-aggregations.md +4 -0
  40. package/docs/examples/organizations/list-credits.md +4 -0
  41. package/docs/examples/organizations/list-keys.md +4 -0
  42. package/docs/examples/organizations/list-regions.md +4 -0
  43. package/docs/examples/organizations/list.md +3 -0
  44. package/docs/examples/organizations/set-backup-payment-method.md +5 -0
  45. package/docs/examples/organizations/set-billing-address.md +5 -0
  46. package/docs/examples/organizations/set-billing-email.md +5 -0
  47. package/docs/examples/organizations/set-billing-tax-id.md +5 -0
  48. package/docs/examples/organizations/set-default-payment-method.md +5 -0
  49. package/docs/examples/organizations/update-budget.md +5 -0
  50. package/docs/examples/organizations/update-key.md +7 -0
  51. package/docs/examples/organizations/update-plan.md +5 -0
  52. package/docs/examples/organizations/validate-invoice.md +5 -0
  53. package/docs/examples/organizations/validate-payment.md +4 -0
  54. package/install.ps1 +2 -2
  55. package/install.sh +1 -1
  56. package/lib/commands/services/migrations.ts +2 -2
  57. package/lib/commands/services/organizations.ts +517 -0
  58. package/lib/commands/services/projects.ts +2 -2
  59. package/lib/commands/services/proxy.ts +2 -2
  60. package/lib/commands/services/teams.ts +10 -1
  61. package/lib/commands/services/vcs.ts +2 -2
  62. package/lib/constants.ts +1 -1
  63. package/lib/emulation/utils.ts +3 -2
  64. package/lib/parser.ts +149 -27
  65. package/lib/questions.ts +2 -2
  66. package/lib/sdks.ts +1 -0
  67. package/lib/types.ts +1 -0
  68. package/package.json +1 -1
  69. package/scoop/appwrite.config.json +3 -3
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations estimation-create-organization \
3
+ --billing-plan tier-0
4
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations estimation-delete-organization \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations estimation-update-plan \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --billing-plan tier-0
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations get-aggregation \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --aggregation-id <AGGREGATION_ID>
5
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations get-available-credits \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations get-credit \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --credit-id <CREDIT_ID>
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations get-invoice-download \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --invoice-id <INVOICE_ID>
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations get-invoice-view \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --invoice-id <INVOICE_ID>
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations get-invoice \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --invoice-id <INVOICE_ID>
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations get-key \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --key-id <KEY_ID>
5
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations get-plan \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations get-scopes \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations get-usage \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations list-aggregations \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations list-credits \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations list-keys \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations list-regions \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
@@ -0,0 +1,3 @@
1
+ ```bash
2
+ appwrite organizations list
3
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations set-backup-payment-method \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --payment-method-id <PAYMENT_METHOD_ID>
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations set-billing-address \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --billing-address-id <BILLING_ADDRESS_ID>
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations set-billing-email \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --billing-email email@example.com
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations set-billing-tax-id \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --tax-id <TAX_ID>
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations set-default-payment-method \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --payment-method-id <PAYMENT_METHOD_ID>
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations update-budget \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --budget 0
5
+ ```
@@ -0,0 +1,7 @@
1
+ ```bash
2
+ appwrite organizations update-key \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --key-id <KEY_ID> \
5
+ --name <NAME> \
6
+ --scopes one two three
7
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations update-plan \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --billing-plan tier-0
5
+ ```
@@ -0,0 +1,5 @@
1
+ ```bash
2
+ appwrite organizations validate-invoice \
3
+ --organization-id <ORGANIZATION_ID> \
4
+ --invoice-id <INVOICE_ID>
5
+ ```
@@ -0,0 +1,4 @@
1
+ ```bash
2
+ appwrite organizations validate-payment \
3
+ --organization-id <ORGANIZATION_ID>
4
+ ```
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.0.0/appwrite-cli-win-x64.exe"
17
- $GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/17.0.0/appwrite-cli-win-arm64.exe"
16
+ $GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/17.1.0/appwrite-cli-win-x64.exe"
17
+ $GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/17.1.0/appwrite-cli-win-arm64.exe"
18
18
 
19
19
  $APPWRITE_BINARY_NAME = "appwrite.exe"
20
20
 
package/install.sh CHANGED
@@ -96,7 +96,7 @@ printSuccess() {
96
96
  downloadBinary() {
97
97
  echo "[2/4] Downloading executable for $OS ($ARCH) ..."
98
98
 
99
- GITHUB_LATEST_VERSION="17.0.0"
99
+ GITHUB_LATEST_VERSION="17.1.0"
100
100
  GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
101
101
  GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
102
102
 
@@ -1,5 +1,5 @@
1
1
  import { Command } from "commander";
2
- import { sdkForProject } from "../../sdks.js";
2
+ import { sdkForConsole } from "../../sdks.js";
3
3
  import {
4
4
  actionRunner,
5
5
  commandDescriptions,
@@ -14,7 +14,7 @@ let migrationsClient: Migrations | null = null;
14
14
 
15
15
  const getMigrationsClient = async (): Promise<Migrations> => {
16
16
  if (!migrationsClient) {
17
- const sdkClient = await sdkForProject();
17
+ const sdkClient = await sdkForConsole();
18
18
  migrationsClient = new Migrations(sdkClient);
19
19
  }
20
20
  return migrationsClient;