appwrite-cli 13.5.0 → 13.6.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 (51) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +2 -2
  3. package/cli.ts +4 -2
  4. package/dist/bundle-win-arm64.mjs +658 -52
  5. package/dist/cli.cjs +658 -52
  6. package/dist/index.cjs +33 -14
  7. package/dist/index.js +33 -14
  8. package/dist/lib/commands/schema.d.ts.map +1 -1
  9. package/dist/lib/commands/services/activities.d.ts +3 -0
  10. package/dist/lib/commands/services/activities.d.ts.map +1 -0
  11. package/dist/lib/commands/services/backups.d.ts +3 -0
  12. package/dist/lib/commands/services/backups.d.ts.map +1 -0
  13. package/dist/lib/constants.d.ts +1 -1
  14. package/dist/lib/json.d.ts.map +1 -1
  15. package/docs/examples/account/create-key.md +5 -0
  16. package/docs/examples/account/delete-key.md +4 -0
  17. package/docs/examples/account/get-key.md +4 -0
  18. package/docs/examples/account/list-keys.md +3 -0
  19. package/docs/examples/account/update-key.md +6 -0
  20. package/docs/examples/activities/get-event.md +4 -0
  21. package/docs/examples/activities/list-events.md +3 -0
  22. package/docs/examples/backups/create-archive.md +4 -0
  23. package/docs/examples/backups/create-policy.md +7 -0
  24. package/docs/examples/backups/create-restoration.md +5 -0
  25. package/docs/examples/backups/delete-archive.md +4 -0
  26. package/docs/examples/backups/delete-policy.md +4 -0
  27. package/docs/examples/backups/get-archive.md +4 -0
  28. package/docs/examples/backups/get-policy.md +4 -0
  29. package/docs/examples/backups/get-restoration.md +4 -0
  30. package/docs/examples/backups/list-archives.md +3 -0
  31. package/docs/examples/backups/list-policies.md +3 -0
  32. package/docs/examples/backups/list-restorations.md +3 -0
  33. package/docs/examples/backups/update-policy.md +4 -0
  34. package/install.ps1 +2 -2
  35. package/install.sh +1 -1
  36. package/lib/commands/schema.ts +1 -3
  37. package/lib/commands/services/account.ts +234 -0
  38. package/lib/commands/services/activities.ts +51 -0
  39. package/lib/commands/services/backups.ts +184 -0
  40. package/lib/commands/services/health.ts +55 -0
  41. package/lib/commands/services/projects.ts +1 -1
  42. package/lib/commands/services/storage.ts +2 -2
  43. package/lib/constants.ts +1 -1
  44. package/lib/json.ts +6 -1
  45. package/package.json +2 -2
  46. package/scoop/appwrite.config.json +3 -3
  47. package/dist/lib/commands/services/console.d.ts +0 -3
  48. package/dist/lib/commands/services/console.d.ts.map +0 -1
  49. package/docs/examples/console/get-resource.md +0 -5
  50. package/docs/examples/console/variables.md +0 -3
  51. package/lib/commands/services/console.ts +0 -49
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const console: Command;
3
- //# sourceMappingURL=console.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../../lib/commands/services/console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsBpC,eAAO,MAAM,OAAO,SAIhB,CAAC"}
@@ -1,5 +0,0 @@
1
- ```bash
2
- appwrite console get-resource \
3
- --value <VALUE> \
4
- --type rules
5
- ```
@@ -1,3 +0,0 @@
1
- ```bash
2
- appwrite console variables
3
- ```
@@ -1,49 +0,0 @@
1
- import { Command } from "commander";
2
- import { sdkForProject } from "../../sdks.js";
3
- import {
4
- actionRunner,
5
- commandDescriptions,
6
- success,
7
- parse,
8
- parseBool,
9
- parseInteger,
10
- } from "../../parser.js";
11
- import { Console } from "@appwrite.io/console";
12
-
13
- let consoleClient: Console | null = null;
14
-
15
- const getConsoleClient = async (): Promise<Console> => {
16
- if (!consoleClient) {
17
- const sdkClient = await sdkForProject();
18
- consoleClient = new Console(sdkClient);
19
- }
20
- return consoleClient;
21
- };
22
-
23
- export const console = new Command("console")
24
- .description(commandDescriptions["console"] ?? "")
25
- .configureHelp({
26
- helpWidth: process.stdout.columns || 80,
27
- });
28
-
29
- console
30
- .command(`get-resource`)
31
- .description(`Check if a resource ID is available.`)
32
- .requiredOption(`--value <value>`, `Resource value.`)
33
- .requiredOption(`--type <type>`, `Resource type.`)
34
- .action(
35
- actionRunner(
36
- async ({ value, type }) =>
37
- parse(await (await getConsoleClient()).getResource(value, type)),
38
- ),
39
- );
40
-
41
- console
42
- .command(`variables`)
43
- .description(`Get all Environment Variables that are relevant for the console.`)
44
- .action(
45
- actionRunner(
46
- async () => parse(await (await getConsoleClient()).variables()),
47
- ),
48
- );
49
-