appwrite-cli 2.0.2 → 3.0.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/README.md +11 -6
- package/docs/examples/account/delete-identity.md +2 -0
- package/docs/examples/account/list-identities.md +2 -0
- package/docs/examples/assistant/chat.md +2 -0
- package/docs/examples/databases/create-collection.md +1 -0
- package/docs/examples/databases/create-string-attribute.md +1 -0
- package/docs/examples/databases/create.md +2 -1
- package/docs/examples/databases/list-attributes.md +2 -1
- package/docs/examples/databases/list-indexes.md +2 -1
- package/docs/examples/databases/update.md +2 -1
- package/docs/examples/functions/create-deployment.md +3 -2
- package/docs/examples/functions/create-execution.md +3 -0
- package/docs/examples/functions/create.md +12 -0
- package/docs/examples/functions/download-deployment.md +3 -0
- package/docs/examples/functions/update.md +9 -0
- package/docs/examples/health/get-pub-sub.md +1 -0
- package/docs/examples/health/get-queue.md +1 -0
- package/docs/examples/locale/list-codes.md +1 -0
- package/docs/examples/migrations/create-appwrite-migration.md +5 -0
- package/docs/examples/migrations/create-firebase-migration.md +3 -0
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +3 -0
- package/docs/examples/migrations/create-n-host-migration.md +9 -0
- package/docs/examples/migrations/create-supabase-migration.md +8 -0
- package/docs/examples/migrations/delete-firebase-auth.md +1 -0
- package/docs/examples/migrations/delete.md +2 -0
- package/docs/examples/migrations/get-appwrite-report.md +5 -0
- package/docs/examples/migrations/get-firebase-report-o-auth.md +3 -0
- package/docs/examples/migrations/get-firebase-report.md +3 -0
- package/docs/examples/migrations/get-n-host-report.md +9 -0
- package/docs/examples/migrations/get-supabase-report.md +8 -0
- package/docs/examples/migrations/get.md +2 -0
- package/docs/examples/migrations/list-firebase-projects.md +1 -0
- package/docs/examples/migrations/list.md +3 -0
- package/docs/examples/migrations/retry.md +2 -0
- package/docs/examples/project/create-variable.md +3 -0
- package/docs/examples/project/delete-variable.md +2 -0
- package/docs/examples/project/get-usage.md +2 -0
- package/docs/examples/project/get-variable.md +2 -0
- package/docs/examples/project/list-variables.md +1 -0
- package/docs/examples/project/update-variable.md +4 -0
- package/docs/examples/projects/create.md +1 -1
- package/docs/examples/projects/delete-email-template.md +4 -0
- package/docs/examples/projects/delete-sms-template.md +4 -0
- package/docs/examples/projects/delete.md +1 -2
- package/docs/examples/projects/get-email-template.md +4 -0
- package/docs/examples/projects/get-sms-template.md +4 -0
- package/docs/examples/projects/update-email-template.md +9 -0
- package/docs/examples/projects/update-personal-data-check.md +3 -0
- package/docs/examples/projects/update-service-status-all.md +3 -0
- package/docs/examples/projects/update-sms-template.md +5 -0
- package/docs/examples/projects/update-smtp-configuration.md +11 -0
- package/docs/examples/projects/update-team.md +3 -0
- package/docs/examples/proxy/create-rule.md +4 -0
- package/docs/examples/proxy/delete-rule.md +2 -0
- package/docs/examples/proxy/get-rule.md +2 -0
- package/docs/examples/proxy/list-rules.md +3 -0
- package/docs/examples/proxy/update-rule-verification.md +2 -0
- package/docs/examples/storage/update-file.md +1 -0
- package/docs/examples/teams/{update-membership-roles.md → update-membership.md} +1 -1
- package/docs/examples/users/delete-identity.md +2 -0
- package/docs/examples/users/list-identities.md +3 -0
- package/docs/examples/users/update-labels.md +3 -0
- package/docs/examples/vcs/create-repository-detection.md +4 -0
- package/docs/examples/vcs/create-repository.md +4 -0
- package/docs/examples/vcs/delete-installation.md +2 -0
- package/docs/examples/vcs/get-installation.md +2 -0
- package/docs/examples/vcs/get-repository.md +3 -0
- package/docs/examples/vcs/list-installations.md +3 -0
- package/docs/examples/vcs/list-repositories.md +3 -0
- package/docs/examples/vcs/list-repository-branches.md +3 -0
- package/docs/examples/vcs/update-external-deployments.md +4 -0
- package/index.js +10 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +3 -3
- package/lib/commands/account.js +122 -67
- package/lib/commands/assistant.js +53 -0
- package/lib/commands/avatars.js +21 -21
- package/lib/commands/console.js +2 -2
- package/lib/commands/databases.js +146 -104
- package/lib/commands/functions.js +277 -70
- package/lib/commands/generic.js +1 -0
- package/lib/commands/graphql.js +4 -4
- package/lib/commands/health.js +68 -22
- package/lib/commands/locale.js +37 -14
- package/lib/commands/migrations.js +708 -0
- package/lib/commands/project.js +204 -0
- package/lib/commands/projects.js +459 -196
- package/lib/commands/proxy.js +177 -0
- package/lib/commands/storage.js +47 -40
- package/lib/commands/teams.js +33 -33
- package/lib/commands/users.js +147 -52
- package/lib/commands/vcs.js +305 -0
- package/lib/config.js +1 -2
- package/lib/parser.js +2 -2
- package/package.json +1 -1
- package/scoop/appwrite.json +30 -0
- package/docs/examples/projects/create-domain.md +0 -3
- package/docs/examples/projects/delete-domain.md +0 -3
- package/docs/examples/projects/get-domain.md +0 -3
- package/docs/examples/projects/list-domains.md +0 -2
- package/docs/examples/projects/update-domain-verification.md +0 -3
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Appwrite Command Line SDK
|
|
2
2
|
|
|
3
3
|

|
|
4
|
-

|
|
5
5
|
[](https://travis-ci.com/appwrite/sdk-generator)
|
|
6
6
|
[](https://twitter.com/appwrite)
|
|
7
7
|
[](https://appwrite.io/discord)
|
|
8
8
|
|
|
9
|
-
**This SDK is compatible with Appwrite server version 1.
|
|
9
|
+
**This SDK is compatible with Appwrite server version 1.4.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/releases).**
|
|
10
10
|
|
|
11
11
|
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Command Line SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
|
|
12
12
|
|
|
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
|
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
31
|
$ appwrite -v
|
|
32
|
-
|
|
32
|
+
3.0.0
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Install using prebuilt binaries
|
|
@@ -51,14 +51,19 @@ $ brew install --HEAD appwrite
|
|
|
51
51
|
> Please note that `--HEAD` will be removed with official release.
|
|
52
52
|
|
|
53
53
|
### Windows
|
|
54
|
+
Via Powershell
|
|
54
55
|
```powershell
|
|
55
56
|
$ iwr -useb https://appwrite.io/cli/install.ps1 | iex
|
|
56
57
|
```
|
|
58
|
+
Via [Scoop](https://scoop.sh)
|
|
59
|
+
```powershell
|
|
60
|
+
$ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/scoop/appwrite.json
|
|
61
|
+
```
|
|
57
62
|
|
|
58
63
|
Once the installation completes, you can verify your install using
|
|
59
64
|
```
|
|
60
65
|
$ appwrite -v
|
|
61
|
-
|
|
66
|
+
3.0.0
|
|
62
67
|
```
|
|
63
68
|
|
|
64
69
|
## Getting Started
|
|
@@ -222,7 +227,7 @@ $ cd sdk-generator
|
|
|
222
227
|
$ docker run --rm --interactive --tty --volume "$(pwd)":/app composer install --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist
|
|
223
228
|
|
|
224
229
|
# Generate the SDKs
|
|
225
|
-
$ docker run --rm -v $(pwd):/app -w /app php:
|
|
230
|
+
$ docker run --rm -v $(pwd):/app -w /app php:8.1-cli php example.php
|
|
226
231
|
```
|
|
227
232
|
|
|
228
233
|
3. Head over to the generated SDK and install the dependencies.
|
|
@@ -242,4 +247,4 @@ $ appwrite -v
|
|
|
242
247
|
```
|
|
243
248
|
## License
|
|
244
249
|
|
|
245
|
-
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
|
|
250
|
+
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
appwrite health getPubSub
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
appwrite health getQueue
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
appwrite locale listCodes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
appwrite migrations deleteFirebaseAuth
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
appwrite migrations listFirebaseProjects
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
appwrite project listVariables
|
package/index.js
CHANGED
|
@@ -15,16 +15,21 @@ const { init } = require("./lib/commands/init");
|
|
|
15
15
|
const { deploy } = require("./lib/commands/deploy");
|
|
16
16
|
const { account } = require("./lib/commands/account");
|
|
17
17
|
const { avatars } = require("./lib/commands/avatars");
|
|
18
|
+
const { assistant } = require("./lib/commands/assistant");
|
|
18
19
|
const { console } = require("./lib/commands/console");
|
|
19
20
|
const { databases } = require("./lib/commands/databases");
|
|
20
21
|
const { functions } = require("./lib/commands/functions");
|
|
21
22
|
const { graphql } = require("./lib/commands/graphql");
|
|
22
23
|
const { health } = require("./lib/commands/health");
|
|
23
24
|
const { locale } = require("./lib/commands/locale");
|
|
25
|
+
const { migrations } = require("./lib/commands/migrations");
|
|
26
|
+
const { project } = require("./lib/commands/project");
|
|
24
27
|
const { projects } = require("./lib/commands/projects");
|
|
28
|
+
const { proxy } = require("./lib/commands/proxy");
|
|
25
29
|
const { storage } = require("./lib/commands/storage");
|
|
26
30
|
const { teams } = require("./lib/commands/teams");
|
|
27
31
|
const { users } = require("./lib/commands/users");
|
|
32
|
+
const { vcs } = require("./lib/commands/vcs");
|
|
28
33
|
|
|
29
34
|
program
|
|
30
35
|
.description(commandDescriptions['main'])
|
|
@@ -48,16 +53,21 @@ program
|
|
|
48
53
|
.addCommand(logout)
|
|
49
54
|
.addCommand(account)
|
|
50
55
|
.addCommand(avatars)
|
|
56
|
+
.addCommand(assistant)
|
|
51
57
|
.addCommand(console)
|
|
52
58
|
.addCommand(databases)
|
|
53
59
|
.addCommand(functions)
|
|
54
60
|
.addCommand(graphql)
|
|
55
61
|
.addCommand(health)
|
|
56
62
|
.addCommand(locale)
|
|
63
|
+
.addCommand(migrations)
|
|
64
|
+
.addCommand(project)
|
|
57
65
|
.addCommand(projects)
|
|
66
|
+
.addCommand(proxy)
|
|
58
67
|
.addCommand(storage)
|
|
59
68
|
.addCommand(teams)
|
|
60
69
|
.addCommand(users)
|
|
70
|
+
.addCommand(vcs)
|
|
61
71
|
.addCommand(client)
|
|
62
72
|
.parse(process.argv);
|
|
63
73
|
|
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
|
-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/
|
|
16
|
+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/3.0.0/appwrite-cli-win-x64.exe"
|
|
17
|
+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/3.0.0/appwrite-cli-win-arm64.exe"
|
|
18
18
|
|
|
19
19
|
$APPWRITE_BINARY_NAME = "appwrite.exe"
|
|
20
20
|
|
package/install.sh
CHANGED
|
@@ -97,7 +97,7 @@ printSuccess() {
|
|
|
97
97
|
downloadBinary() {
|
|
98
98
|
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
|
|
99
99
|
|
|
100
|
-
GITHUB_LATEST_VERSION="
|
|
100
|
+
GITHUB_LATEST_VERSION="3.0.0"
|
|
101
101
|
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
|
|
102
102
|
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
|
|
103
103
|
|
package/lib/client.js
CHANGED
|
@@ -16,9 +16,9 @@ class Client {
|
|
|
16
16
|
'x-sdk-name': 'Command Line',
|
|
17
17
|
'x-sdk-platform': 'console',
|
|
18
18
|
'x-sdk-language': 'cli',
|
|
19
|
-
'x-sdk-version': '
|
|
20
|
-
'user-agent' : `AppwriteCLI/
|
|
21
|
-
'X-Appwrite-Response-Format' : '1.
|
|
19
|
+
'x-sdk-version': '3.0.0',
|
|
20
|
+
'user-agent' : `AppwriteCLI/3.0.0 (${os.type()} ${os.version()}; ${os.arch()})`,
|
|
21
|
+
'X-Appwrite-Response-Format' : '1.4.0',
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
|