Skip to content

Commit

Permalink
Merge pull request #91 from appwrite/dev
Browse files Browse the repository at this point in the history
feat: release 1.4.x
  • Loading branch information
christyjacob4 authored Aug 30, 2023
2 parents b461997 + 22b31dd commit 4f21877
Show file tree
Hide file tree
Showing 102 changed files with 3,105 additions and 666 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Appwrite Command Line SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-cli.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.3.0-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.4.0-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

**This SDK is compatible with Appwrite server version 1.3.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/releases).**
**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).**

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)

Expand All @@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using

```sh
$ appwrite -v
2.0.2
3.0.0
```

### Install using prebuilt binaries
Expand All @@ -51,14 +51,19 @@ $ brew install --HEAD appwrite
> Please note that `--HEAD` will be removed with official release.
### Windows
Via Powershell
```powershell
$ iwr -useb https://appwrite.io/cli/install.ps1 | iex
```
Via [Scoop](https://scoop.sh)
```powershell
$ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/scoop/appwrite.json
```

Once the installation completes, you can verify your install using
```
$ appwrite -v
2.0.2
3.0.0
```

## Getting Started
Expand Down Expand Up @@ -222,7 +227,7 @@ $ cd sdk-generator
$ docker run --rm --interactive --tty --volume "$(pwd)":/app composer install --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist

# Generate the SDKs
$ docker run --rm -v $(pwd):/app -w /app php:7.4-cli php example.php
$ docker run --rm -v $(pwd):/app -w /app php:8.1-cli php example.php
```

3. Head over to the generated SDK and install the dependencies.
Expand All @@ -242,4 +247,4 @@ $ appwrite -v
```
## License

Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
2 changes: 2 additions & 0 deletions docs/examples/account/delete-identity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite account deleteIdentity \
--identityId [IDENTITY_ID]
2 changes: 2 additions & 0 deletions docs/examples/account/list-identities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite account listIdentities \

2 changes: 2 additions & 0 deletions docs/examples/assistant/chat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite assistant chat \
--prompt [PROMPT]
1 change: 1 addition & 0 deletions docs/examples/databases/create-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ appwrite databases createCollection \
--name [NAME] \



1 change: 1 addition & 0 deletions docs/examples/databases/create-string-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ appwrite databases createStringAttribute \
--required false \



3 changes: 2 additions & 1 deletion docs/examples/databases/create.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
appwrite databases create \
--databaseId [DATABASE_ID] \
--name [NAME]
--name [NAME] \

3 changes: 2 additions & 1 deletion docs/examples/databases/list-attributes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
appwrite databases listAttributes \
--databaseId [DATABASE_ID] \
--collectionId [COLLECTION_ID]
--collectionId [COLLECTION_ID] \

3 changes: 2 additions & 1 deletion docs/examples/databases/list-indexes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
appwrite databases listIndexes \
--databaseId [DATABASE_ID] \
--collectionId [COLLECTION_ID]
--collectionId [COLLECTION_ID] \

3 changes: 2 additions & 1 deletion docs/examples/databases/update.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
appwrite databases update \
--databaseId [DATABASE_ID] \
--name [NAME]
--name [NAME] \

5 changes: 3 additions & 2 deletions docs/examples/functions/create-deployment.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
appwrite functions createDeployment \
--functionId [FUNCTION_ID] \
--entrypoint [ENTRYPOINT] \
--code 'path/to/file.png' \
--activate false
--activate false \


3 changes: 3 additions & 0 deletions docs/examples/functions/create-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ appwrite functions createExecution \
--functionId [FUNCTION_ID] \





12 changes: 12 additions & 0 deletions docs/examples/functions/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ appwrite functions create \















3 changes: 3 additions & 0 deletions docs/examples/functions/download-deployment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite functions downloadDeployment \
--functionId [FUNCTION_ID] \
--deploymentId [DEPLOYMENT_ID]
9 changes: 9 additions & 0 deletions docs/examples/functions/update.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
appwrite functions update \
--functionId [FUNCTION_ID] \
--name [NAME] \
--runtime node-14.5 \











Expand Down
1 change: 1 addition & 0 deletions docs/examples/health/get-pub-sub.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
appwrite health getPubSub
1 change: 1 addition & 0 deletions docs/examples/health/get-queue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
appwrite health getQueue
1 change: 1 addition & 0 deletions docs/examples/locale/list-codes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
appwrite locale listCodes
5 changes: 5 additions & 0 deletions docs/examples/migrations/create-appwrite-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
appwrite migrations createAppwriteMigration \
--resources one two three \
--endpoint https://example.com \
--projectId [PROJECT_ID] \
--apiKey [API_KEY]
3 changes: 3 additions & 0 deletions docs/examples/migrations/create-firebase-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite migrations createFirebaseMigration \
--resources one two three \
--serviceAccount [SERVICE_ACCOUNT]
3 changes: 3 additions & 0 deletions docs/examples/migrations/create-firebase-o-auth-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite migrations createFirebaseOAuthMigration \
--resources one two three \
--projectId [PROJECT_ID]
9 changes: 9 additions & 0 deletions docs/examples/migrations/create-n-host-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
appwrite migrations createNHostMigration \
--resources one two three \
--subdomain [SUBDOMAIN] \
--region [REGION] \
--adminSecret [ADMIN_SECRET] \
--database [DATABASE] \
--username [USERNAME] \
--password [PASSWORD] \

8 changes: 8 additions & 0 deletions docs/examples/migrations/create-supabase-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
appwrite migrations createSupabaseMigration \
--resources one two three \
--endpoint https://example.com \
--apiKey [API_KEY] \
--databaseHost [DATABASE_HOST] \
--username [USERNAME] \
--password [PASSWORD] \

1 change: 1 addition & 0 deletions docs/examples/migrations/delete-firebase-auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
appwrite migrations deleteFirebaseAuth
2 changes: 2 additions & 0 deletions docs/examples/migrations/delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite migrations delete \
--migrationId [MIGRATION_ID]
5 changes: 5 additions & 0 deletions docs/examples/migrations/get-appwrite-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
appwrite migrations getAppwriteReport \
--resources one two three \
--endpoint https://example.com \
--projectID [PROJECT_ID] \
--key [KEY]
3 changes: 3 additions & 0 deletions docs/examples/migrations/get-firebase-report-o-auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite migrations getFirebaseReportOAuth \
--resources one two three \
--projectId [PROJECT_ID]
3 changes: 3 additions & 0 deletions docs/examples/migrations/get-firebase-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite migrations getFirebaseReport \
--resources one two three \
--serviceAccount [SERVICE_ACCOUNT]
9 changes: 9 additions & 0 deletions docs/examples/migrations/get-n-host-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
appwrite migrations getNHostReport \
--resources one two three \
--subdomain [SUBDOMAIN] \
--region [REGION] \
--adminSecret [ADMIN_SECRET] \
--database [DATABASE] \
--username [USERNAME] \
--password [PASSWORD] \

8 changes: 8 additions & 0 deletions docs/examples/migrations/get-supabase-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
appwrite migrations getSupabaseReport \
--resources one two three \
--endpoint https://example.com \
--apiKey [API_KEY] \
--databaseHost [DATABASE_HOST] \
--username [USERNAME] \
--password [PASSWORD] \

2 changes: 2 additions & 0 deletions docs/examples/migrations/get.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite migrations get \
--migrationId [MIGRATION_ID]
1 change: 1 addition & 0 deletions docs/examples/migrations/list-firebase-projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
appwrite migrations listFirebaseProjects
3 changes: 3 additions & 0 deletions docs/examples/migrations/list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite migrations list \


2 changes: 2 additions & 0 deletions docs/examples/migrations/retry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite migrations retry \
--migrationId [MIGRATION_ID]
3 changes: 3 additions & 0 deletions docs/examples/project/create-variable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite project createVariable \
--key [KEY] \
--value [VALUE]
2 changes: 2 additions & 0 deletions docs/examples/project/delete-variable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite project deleteVariable \
--variableId [VARIABLE_ID]
2 changes: 2 additions & 0 deletions docs/examples/project/get-usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite project getUsage \

2 changes: 2 additions & 0 deletions docs/examples/project/get-variable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite project getVariable \
--variableId [VARIABLE_ID]
1 change: 1 addition & 0 deletions docs/examples/project/list-variables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
appwrite project listVariables
4 changes: 4 additions & 0 deletions docs/examples/project/update-variable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
appwrite project updateVariable \
--variableId [VARIABLE_ID] \
--key [KEY] \

3 changes: 0 additions & 3 deletions docs/examples/projects/create-domain.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/projects/create.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
appwrite projects create \
--projectId [PROJECT_ID] \
--projectId '' \
--name [NAME] \
--teamId [TEAM_ID] \

Expand Down
3 changes: 0 additions & 3 deletions docs/examples/projects/delete-domain.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/examples/projects/delete-email-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
appwrite projects deleteEmailTemplate \
--projectId [PROJECT_ID] \
--type verification \
--locale af
4 changes: 4 additions & 0 deletions docs/examples/projects/delete-sms-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
appwrite projects deleteSmsTemplate \
--projectId [PROJECT_ID] \
--type verification \
--locale af
3 changes: 1 addition & 2 deletions docs/examples/projects/delete.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
appwrite projects delete \
--projectId [PROJECT_ID] \
--password password
--projectId [PROJECT_ID]
3 changes: 0 additions & 3 deletions docs/examples/projects/get-domain.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/examples/projects/get-email-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
appwrite projects getEmailTemplate \
--projectId [PROJECT_ID] \
--type verification \
--locale af
4 changes: 4 additions & 0 deletions docs/examples/projects/get-sms-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
appwrite projects getSmsTemplate \
--projectId [PROJECT_ID] \
--type verification \
--locale af
2 changes: 0 additions & 2 deletions docs/examples/projects/list-domains.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/examples/projects/update-domain-verification.md

This file was deleted.

9 changes: 9 additions & 0 deletions docs/examples/projects/update-email-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
appwrite projects updateEmailTemplate \
--projectId [PROJECT_ID] \
--type verification \
--locale af \
--subject [SUBJECT] \
--message [MESSAGE] \



3 changes: 3 additions & 0 deletions docs/examples/projects/update-personal-data-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite projects updatePersonalDataCheck \
--projectId [PROJECT_ID] \
--enabled false
3 changes: 3 additions & 0 deletions docs/examples/projects/update-service-status-all.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite projects updateServiceStatusAll \
--projectId [PROJECT_ID] \
--status false
5 changes: 5 additions & 0 deletions docs/examples/projects/update-sms-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
appwrite projects updateSmsTemplate \
--projectId [PROJECT_ID] \
--type verification \
--locale af \
--message [MESSAGE]
11 changes: 11 additions & 0 deletions docs/examples/projects/update-smtp-configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
appwrite projects updateSmtpConfiguration \
--projectId [PROJECT_ID] \
--enabled false \








3 changes: 3 additions & 0 deletions docs/examples/projects/update-team.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite projects updateTeam \
--projectId [PROJECT_ID] \
--teamId [TEAM_ID]
4 changes: 4 additions & 0 deletions docs/examples/proxy/create-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
appwrite proxy createRule \
--domain '' \
--resourceType api \

2 changes: 2 additions & 0 deletions docs/examples/proxy/delete-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite proxy deleteRule \
--ruleId [RULE_ID]
2 changes: 2 additions & 0 deletions docs/examples/proxy/get-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite proxy getRule \
--ruleId [RULE_ID]
3 changes: 3 additions & 0 deletions docs/examples/proxy/list-rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite proxy listRules \


2 changes: 2 additions & 0 deletions docs/examples/proxy/update-rule-verification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite proxy updateRuleVerification \
--ruleId [RULE_ID]
1 change: 1 addition & 0 deletions docs/examples/storage/update-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ appwrite storage updateFile \
--bucketId [BUCKET_ID] \
--fileId [FILE_ID] \


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
appwrite teams updateMembershipRoles \
appwrite teams updateMembership \
--teamId [TEAM_ID] \
--membershipId [MEMBERSHIP_ID] \
--roles one two three
2 changes: 2 additions & 0 deletions docs/examples/users/delete-identity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appwrite users deleteIdentity \
--identityId [IDENTITY_ID]
3 changes: 3 additions & 0 deletions docs/examples/users/list-identities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite users listIdentities \


3 changes: 3 additions & 0 deletions docs/examples/users/update-labels.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appwrite users updateLabels \
--userId [USER_ID] \
--labels one two three
Loading

0 comments on commit 4f21877

Please sign in to comment.