appwrite-cli 13.6.1 → 14.0.1

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 (41) hide show
  1. package/.github/workflows/ci.yml +66 -0
  2. package/CHANGELOG.md +16 -0
  3. package/README.md +2 -2
  4. package/dist/bundle-win-arm64.mjs +7092 -10639
  5. package/dist/cli.cjs +7151 -10698
  6. package/dist/index.cjs +10662 -14265
  7. package/dist/index.js +10464 -14067
  8. package/dist/lib/commands/generate.d.ts +2 -0
  9. package/dist/lib/commands/generate.d.ts.map +1 -1
  10. package/dist/lib/commands/generators/base.d.ts +20 -2
  11. package/dist/lib/commands/generators/base.d.ts.map +1 -1
  12. package/dist/lib/commands/generators/index.d.ts +1 -1
  13. package/dist/lib/commands/generators/index.d.ts.map +1 -1
  14. package/dist/lib/commands/generators/typescript/databases.d.ts +2 -2
  15. package/dist/lib/commands/generators/typescript/databases.d.ts.map +1 -1
  16. package/dist/lib/commands/update.d.ts.map +1 -1
  17. package/dist/lib/commands/utils/attributes.d.ts.map +1 -1
  18. package/dist/lib/constants.d.ts +1 -1
  19. package/docs/examples/projects/update-status.md +5 -0
  20. package/docs/examples/sites/create-deployment.md +1 -2
  21. package/install.ps1 +2 -2
  22. package/install.sh +1 -1
  23. package/lib/commands/generate.ts +15 -2
  24. package/lib/commands/generators/base.ts +27 -2
  25. package/lib/commands/generators/index.ts +1 -0
  26. package/lib/commands/generators/typescript/databases.ts +22 -12
  27. package/lib/commands/run.ts +3 -3
  28. package/lib/commands/services/account.ts +1 -1
  29. package/lib/commands/services/databases.ts +20 -19
  30. package/lib/commands/services/health.ts +13 -0
  31. package/lib/commands/services/messaging.ts +1 -1
  32. package/lib/commands/services/projects.ts +25 -0
  33. package/lib/commands/services/sites.ts +8 -3
  34. package/lib/commands/services/tables-db.ts +3 -2
  35. package/lib/commands/services/teams.ts +2 -2
  36. package/lib/commands/update.ts +2 -1
  37. package/lib/commands/utils/attributes.ts +4 -0
  38. package/lib/commands/utils/deployment.ts +3 -3
  39. package/lib/constants.ts +1 -1
  40. package/package.json +4 -4
  41. package/scoop/appwrite.config.json +3 -3
@@ -262,6 +262,7 @@ export class Attributes {
262
262
  required: attribute.required,
263
263
  xdefault: attribute.default,
264
264
  array: attribute.array,
265
+ encrypt: attribute.encrypt,
265
266
  });
266
267
  case "text":
267
268
  return databasesService.createTextAttribute({
@@ -271,6 +272,7 @@ export class Attributes {
271
272
  required: attribute.required,
272
273
  xdefault: attribute.default,
273
274
  array: attribute.array,
275
+ encrypt: attribute.encrypt,
274
276
  });
275
277
  case "mediumtext":
276
278
  return databasesService.createMediumtextAttribute({
@@ -280,6 +282,7 @@ export class Attributes {
280
282
  required: attribute.required,
281
283
  xdefault: attribute.default,
282
284
  array: attribute.array,
285
+ encrypt: attribute.encrypt,
283
286
  });
284
287
  case "longtext":
285
288
  return databasesService.createLongtextAttribute({
@@ -289,6 +292,7 @@ export class Attributes {
289
292
  required: attribute.required,
290
293
  xdefault: attribute.default,
291
294
  array: attribute.array,
295
+ encrypt: attribute.encrypt,
292
296
  });
293
297
  case "integer":
294
298
  return databasesService.createIntegerAttribute({
@@ -1,6 +1,6 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
- import tar from "tar";
3
+ import { create, extract } from "tar";
4
4
  import { Client, AppwriteException } from "@appwrite.io/console";
5
5
  import { error } from "../../parser.js";
6
6
 
@@ -26,7 +26,7 @@ interface DeploymentDetails {
26
26
  async function packageDirectory(dirPath: string): Promise<File> {
27
27
  const tempFile = `${dirPath.replace(/[^a-zA-Z0-9]/g, "_")}-${Date.now()}.tar.gz`;
28
28
 
29
- await tar.create(
29
+ await create(
30
30
  {
31
31
  gzip: true,
32
32
  file: tempFile,
@@ -111,7 +111,7 @@ export async function downloadDeploymentCode(params: {
111
111
  );
112
112
  }
113
113
 
114
- tar.extract({
114
+ extract({
115
115
  sync: true,
116
116
  cwd: resourcePath,
117
117
  file: compressedFileName,
package/lib/constants.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // SDK
2
2
  export const SDK_TITLE = 'Appwrite';
3
3
  export const SDK_TITLE_LOWER = 'appwrite';
4
- export const SDK_VERSION = '13.6.1';
4
+ export const SDK_VERSION = '14.0.1';
5
5
  export const SDK_NAME = 'Command Line';
6
6
  export const SDK_PLATFORM = 'console';
7
7
  export const SDK_LANGUAGE = 'cli';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "homepage": "https://appwrite.io/support",
5
5
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
6
- "version": "13.6.1",
6
+ "version": "14.0.1",
7
7
  "license": "BSD-3-Clause",
8
8
  "main": "dist/index.cjs",
9
9
  "module": "dist/index.js",
@@ -47,7 +47,7 @@
47
47
  "windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe"
48
48
  },
49
49
  "dependencies": {
50
- "@appwrite.io/console": "^3.1.0",
50
+ "@appwrite.io/console": "^4.0.0",
51
51
  "chalk": "4.1.2",
52
52
  "chokidar": "^3.6.0",
53
53
  "cli-progress": "^3.12.0",
@@ -61,7 +61,7 @@
61
61
  "inquirer-search-list": "^1.2.6",
62
62
  "json-bigint": "^1.0.0",
63
63
  "tail": "^2.2.6",
64
- "tar": "^6.1.11",
64
+ "tar": "^7.4.3",
65
65
  "undici": "^5.28.2",
66
66
  "zod": "^4.3.5"
67
67
  },
@@ -76,7 +76,7 @@
76
76
  "@types/inquirer": "^8.2.10",
77
77
  "@types/json-bigint": "^1.0.4",
78
78
  "@types/node": "^18.19.0",
79
- "@types/tar": "^6.1.11",
79
+ "@types/tar": "^6.1.13",
80
80
  "@yao-pkg/pkg": "^6.11.0",
81
81
  "esbuild": "^0.27.2",
82
82
  "prettier": "^3.7.4",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3
- "version": "13.6.1",
3
+ "version": "14.0.1",
4
4
  "description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
5
5
  "homepage": "https://github.com/appwrite/sdk-for-cli",
6
6
  "license": "BSD-3-Clause",
7
7
  "architecture": {
8
8
  "64bit": {
9
- "url": "https://github.com/appwrite/sdk-for-cli/releases/download/13.6.1/appwrite-cli-win-x64.exe",
9
+ "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-x64.exe",
10
10
  "bin": [
11
11
  [
12
12
  "appwrite-cli-win-x64.exe",
@@ -15,7 +15,7 @@
15
15
  ]
16
16
  },
17
17
  "arm64": {
18
- "url": "https://github.com/appwrite/sdk-for-cli/releases/download/13.6.1/appwrite-cli-win-arm64.exe",
18
+ "url": "https://github.com/appwrite/sdk-for-cli/releases/download/14.0.1/appwrite-cli-win-arm64.exe",
19
19
  "bin": [
20
20
  [
21
21
  "appwrite-cli-win-arm64.exe",