appwrite-cli 6.0.0 → 6.2.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.
- package/.github/workflows/npm-publish.yml +2 -1
- package/LICENSE.md +1 -1
- package/README.md +3 -3
- package/docs/examples/databases/update-boolean-attribute.md +2 -1
- package/docs/examples/databases/update-datetime-attribute.md +2 -1
- package/docs/examples/databases/update-email-attribute.md +2 -1
- package/docs/examples/databases/update-enum-attribute.md +2 -1
- package/docs/examples/databases/update-float-attribute.md +2 -1
- package/docs/examples/databases/update-integer-attribute.md +2 -1
- package/docs/examples/databases/update-ip-attribute.md +2 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -0
- package/docs/examples/databases/update-string-attribute.md +3 -1
- package/docs/examples/databases/update-url-attribute.md +2 -1
- package/docs/examples/messaging/create-push.md +5 -2
- package/docs/examples/messaging/update-push.md +3 -0
- package/docs/examples/projects/update-memberships-privacy.md +5 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +2 -2
- package/lib/commands/account.js +1 -1
- package/lib/commands/databases.js +65 -10
- package/lib/commands/generic.js +1 -1
- package/lib/commands/init.js +1 -0
- package/lib/commands/messaging.js +40 -10
- package/lib/commands/migrations.js +2 -167
- package/lib/commands/projects.js +53 -0
- package/lib/commands/push.js +3 -0
- package/lib/commands/run.js +4 -4
- package/lib/commands/teams.js +2 -2
- package/lib/config.js +5 -1
- package/lib/emulation/docker.js +6 -6
- package/lib/emulation/utils.js +13 -13
- package/lib/parser.js +1 -1
- package/lib/questions.js +21 -2
- package/package.json +1 -1
- package/scoop/appwrite.json +3 -3
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +0 -3
- package/docs/examples/migrations/delete-firebase-auth.md +0 -1
- package/docs/examples/migrations/get-firebase-report-o-auth.md +0 -3
- package/docs/examples/migrations/list-firebase-projects.md +0 -1
package/lib/questions.js
CHANGED
|
@@ -3,7 +3,7 @@ const Client = require("./client");
|
|
|
3
3
|
const { localConfig, globalConfig } = require('./config');
|
|
4
4
|
const { projectsList } = require('./commands/projects');
|
|
5
5
|
const { teamsList } = require('./commands/teams');
|
|
6
|
-
const { functionsListRuntimes, functionsList } = require('./commands/functions');
|
|
6
|
+
const { functionsListRuntimes, functionsListSpecifications, functionsList } = require('./commands/functions');
|
|
7
7
|
const { accountListMfaFactors } = require("./commands/account");
|
|
8
8
|
const { sdkForConsole } = require("./sdks");
|
|
9
9
|
const { validateRequired } = require("./validations");
|
|
@@ -94,7 +94,7 @@ const getInstallCommand = (runtime) => {
|
|
|
94
94
|
case 'dart':
|
|
95
95
|
return 'dart pub get';
|
|
96
96
|
case 'deno':
|
|
97
|
-
return "deno
|
|
97
|
+
return "deno cache src/main.ts";
|
|
98
98
|
case 'node':
|
|
99
99
|
return 'npm install';
|
|
100
100
|
case 'bun':
|
|
@@ -301,6 +301,25 @@ const questionsCreateFunction = [
|
|
|
301
301
|
})
|
|
302
302
|
return choices;
|
|
303
303
|
},
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
type: "list",
|
|
307
|
+
name: "specification",
|
|
308
|
+
message: "What specification would you like to use?",
|
|
309
|
+
choices: async () => {
|
|
310
|
+
let response = await functionsListSpecifications({
|
|
311
|
+
parseOutput: false
|
|
312
|
+
})
|
|
313
|
+
let specifications = response["specifications"]
|
|
314
|
+
let choices = specifications.map((spec, idx) => {
|
|
315
|
+
return {
|
|
316
|
+
name: `${spec.cpus} CPU, ${spec.memory}MB RAM`,
|
|
317
|
+
value: spec.slug,
|
|
318
|
+
disabled: spec.enabled === false ? 'Upgrade to use' : false
|
|
319
|
+
}
|
|
320
|
+
})
|
|
321
|
+
return choices;
|
|
322
|
+
},
|
|
304
323
|
}
|
|
305
324
|
];
|
|
306
325
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "appwrite-cli",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "6.
|
|
5
|
+
"version": "6.2.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"bin": {
|
package/scoop/appwrite.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
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/6.
|
|
9
|
+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.0/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/6.
|
|
18
|
+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.0/appwrite-cli-win-arm64.exe",
|
|
19
19
|
"bin": [
|
|
20
20
|
[
|
|
21
21
|
"appwrite-cli-win-arm64.exe",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
appwrite migrations deleteFirebaseAuth
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
appwrite migrations listFirebaseProjects
|