appwrite-cli 17.1.0 → 17.2.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.
- package/.github/workflows/ci.yml +1 -1
- package/.github/workflows/publish.yml +1 -1
- package/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/bun.lock +783 -0
- package/cli.ts +14 -2
- package/dist/bundle-win-arm64.mjs +1137 -733
- package/dist/cli.cjs +1137 -733
- package/dist/index.cjs +193 -79
- package/dist/index.js +193 -79
- package/dist/lib/client.d.ts +9 -0
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/commands/init.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/emulation/docker.d.ts.map +1 -1
- package/dist/lib/parser.d.ts.map +1 -1
- package/dist/lib/questions.d.ts.map +1 -1
- package/dist/lib/types.d.ts +2 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +12 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.ts +12 -0
- package/lib/commands/init.ts +109 -2
- package/lib/commands/services/account.ts +110 -55
- package/lib/commands/services/activities.ts +4 -2
- package/lib/commands/services/backups.ts +24 -12
- package/lib/commands/services/databases.ts +150 -75
- package/lib/commands/services/functions.ts +60 -30
- package/lib/commands/services/graphql.ts +4 -2
- package/lib/commands/services/health.ts +46 -23
- package/lib/commands/services/locale.ts +16 -8
- package/lib/commands/services/messaging.ts +96 -48
- package/lib/commands/services/migrations.ts +28 -14
- package/lib/commands/services/organizations.ts +76 -38
- package/lib/commands/services/project.ts +12 -6
- package/lib/commands/services/projects.ts +103 -51
- package/lib/commands/services/proxy.ts +16 -8
- package/lib/commands/services/sites.ts +58 -29
- package/lib/commands/services/storage.ts +30 -15
- package/lib/commands/services/tables-db.ts +148 -74
- package/lib/commands/services/teams.ts +28 -14
- package/lib/commands/services/tokens.ts +10 -5
- package/lib/commands/services/users.ts +88 -44
- package/lib/commands/services/vcs.ts +20 -10
- package/lib/commands/services/webhooks.ts +12 -6
- package/lib/constants.ts +1 -1
- package/lib/emulation/docker.ts +1 -0
- package/lib/parser.ts +279 -122
- package/lib/questions.ts +8 -3
- package/lib/sdks.ts +0 -1
- package/lib/types.ts +2 -0
- package/lib/utils.ts +234 -0
- package/package.json +1 -1
- package/scoop/appwrite.config.json +3 -3
|
@@ -26,7 +26,7 @@ export const activities = new Command("activities")
|
|
|
26
26
|
helpWidth: process.stdout.columns || 80,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
activities
|
|
29
|
+
const activitiesListEventsCommand = activities
|
|
30
30
|
.command(`list-events`)
|
|
31
31
|
.description(`List all events for selected filters.`)
|
|
32
32
|
.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 attributes such as userId, teamId, etc.`)
|
|
@@ -37,7 +37,8 @@ activities
|
|
|
37
37
|
),
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
const activitiesGetEventCommand = activities
|
|
41
42
|
.command(`get-event`)
|
|
42
43
|
.description(`Get event by ID.
|
|
43
44
|
`)
|
|
@@ -49,3 +50,4 @@ activities
|
|
|
49
50
|
),
|
|
50
51
|
);
|
|
51
52
|
|
|
53
|
+
|
|
@@ -26,7 +26,7 @@ export const backups = new Command("backups")
|
|
|
26
26
|
helpWidth: process.stdout.columns || 80,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
backups
|
|
29
|
+
const backupsListArchivesCommand = backups
|
|
30
30
|
.command(`list-archives`)
|
|
31
31
|
.description(`List all archives for a project.`)
|
|
32
32
|
.option(`--queries [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.`)
|
|
@@ -37,7 +37,8 @@ backups
|
|
|
37
37
|
),
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
const backupsCreateArchiveCommand = backups
|
|
41
42
|
.command(`create-archive`)
|
|
42
43
|
.description(`Create a new archive asynchronously for a project.`)
|
|
43
44
|
.requiredOption(`--services [services...]`, `Array of services to backup`)
|
|
@@ -49,7 +50,8 @@ backups
|
|
|
49
50
|
),
|
|
50
51
|
);
|
|
51
52
|
|
|
52
|
-
|
|
53
|
+
|
|
54
|
+
const backupsGetArchiveCommand = backups
|
|
53
55
|
.command(`get-archive`)
|
|
54
56
|
.description(`Get a backup archive using it's ID.`)
|
|
55
57
|
.requiredOption(`--archive-id <archive-id>`, `Archive ID. Choose a custom ID\`. 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.`)
|
|
@@ -60,7 +62,8 @@ backups
|
|
|
60
62
|
),
|
|
61
63
|
);
|
|
62
64
|
|
|
63
|
-
|
|
65
|
+
|
|
66
|
+
const backupsDeleteArchiveCommand = backups
|
|
64
67
|
.command(`delete-archive`)
|
|
65
68
|
.description(`Delete an existing archive for a project.`)
|
|
66
69
|
.requiredOption(`--archive-id <archive-id>`, `Policy 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.`)
|
|
@@ -71,7 +74,8 @@ backups
|
|
|
71
74
|
),
|
|
72
75
|
);
|
|
73
76
|
|
|
74
|
-
|
|
77
|
+
|
|
78
|
+
const backupsListPoliciesCommand = backups
|
|
75
79
|
.command(`list-policies`)
|
|
76
80
|
.description(`List all policies for a project.`)
|
|
77
81
|
.option(`--queries [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.`)
|
|
@@ -82,7 +86,8 @@ backups
|
|
|
82
86
|
),
|
|
83
87
|
);
|
|
84
88
|
|
|
85
|
-
|
|
89
|
+
|
|
90
|
+
const backupsCreatePolicyCommand = backups
|
|
86
91
|
.command(`create-policy`)
|
|
87
92
|
.description(`Create a new backup policy.`)
|
|
88
93
|
.requiredOption(`--policy-id <policy-id>`, `Policy 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.`)
|
|
@@ -104,7 +109,8 @@ backups
|
|
|
104
109
|
),
|
|
105
110
|
);
|
|
106
111
|
|
|
107
|
-
|
|
112
|
+
|
|
113
|
+
const backupsGetPolicyCommand = backups
|
|
108
114
|
.command(`get-policy`)
|
|
109
115
|
.description(`Get a backup policy using it's ID.`)
|
|
110
116
|
.requiredOption(`--policy-id <policy-id>`, `Policy ID. Choose a custom ID\`. 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.`)
|
|
@@ -115,7 +121,8 @@ backups
|
|
|
115
121
|
),
|
|
116
122
|
);
|
|
117
123
|
|
|
118
|
-
|
|
124
|
+
|
|
125
|
+
const backupsUpdatePolicyCommand = backups
|
|
119
126
|
.command(`update-policy`)
|
|
120
127
|
.description(`Update an existing policy using it's ID.`)
|
|
121
128
|
.requiredOption(`--policy-id <policy-id>`, `Policy ID. Choose a custom ID\`. 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.`)
|
|
@@ -135,7 +142,8 @@ backups
|
|
|
135
142
|
),
|
|
136
143
|
);
|
|
137
144
|
|
|
138
|
-
|
|
145
|
+
|
|
146
|
+
const backupsDeletePolicyCommand = backups
|
|
139
147
|
.command(`delete-policy`)
|
|
140
148
|
.description(`Delete a policy using it's ID.`)
|
|
141
149
|
.requiredOption(`--policy-id <policy-id>`, `Policy 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.`)
|
|
@@ -146,7 +154,8 @@ backups
|
|
|
146
154
|
),
|
|
147
155
|
);
|
|
148
156
|
|
|
149
|
-
|
|
157
|
+
|
|
158
|
+
const backupsCreateRestorationCommand = backups
|
|
150
159
|
.command(`create-restoration`)
|
|
151
160
|
.description(`Create and trigger a new restoration for a backup on a project.`)
|
|
152
161
|
.requiredOption(`--archive-id <archive-id>`, `Backup archive ID to restore`)
|
|
@@ -160,7 +169,8 @@ backups
|
|
|
160
169
|
),
|
|
161
170
|
);
|
|
162
171
|
|
|
163
|
-
|
|
172
|
+
|
|
173
|
+
const backupsListRestorationsCommand = backups
|
|
164
174
|
.command(`list-restorations`)
|
|
165
175
|
.description(`List all backup restorations for a project.`)
|
|
166
176
|
.option(`--queries [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.`)
|
|
@@ -171,7 +181,8 @@ backups
|
|
|
171
181
|
),
|
|
172
182
|
);
|
|
173
183
|
|
|
174
|
-
|
|
184
|
+
|
|
185
|
+
const backupsGetRestorationCommand = backups
|
|
175
186
|
.command(`get-restoration`)
|
|
176
187
|
.description(`Get the current status of a backup restoration.`)
|
|
177
188
|
.requiredOption(`--restoration-id <restoration-id>`, `Restoration ID. Choose a custom ID\`. 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.`)
|
|
@@ -182,3 +193,4 @@ backups
|
|
|
182
193
|
),
|
|
183
194
|
);
|
|
184
195
|
|
|
196
|
+
|