Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 20.2.0

* Added: Introduced `bigint` create/update APIs for legacy Databases attributes
* Added: Introduced `bigint` create/update APIs for `TablesDB` columns
* Updated: Extended key-list query filters with `key`, `resourceType`, `resourceId`, and `secret`

## 20.1.0

* Added `--switch` and `--new` flags on `appwrite login` to explicitly manage multiple saved accounts
Expand Down
8 changes: 4 additions & 4 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.9.3-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.9.4-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.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-cli/releases).**
**This SDK is compatible with Appwrite server version latest. 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 abstracts and simplifies 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
20.1.0
20.2.0
```

### Install using prebuilt binaries
Expand Down Expand Up @@ -83,7 +83,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
Once the installation completes, you can verify your install using
```
$ appwrite -v
20.1.0
20.2.0
```

## Getting Started
Expand Down
2 changes: 2 additions & 0 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import { locale } from './lib/commands/services/locale.js';
import { messaging } from './lib/commands/services/messaging.js';
import { migrations } from './lib/commands/services/migrations.js';
import { organizations } from './lib/commands/services/organizations.js';
import { presences } from './lib/commands/services/presences.js';
import { project } from './lib/commands/services/project.js';
import { projects } from './lib/commands/services/projects.js';
import { proxy } from './lib/commands/services/proxy.js';
Expand Down Expand Up @@ -215,6 +216,7 @@ if (process.argv.includes('-v') || process.argv.includes('--version')) {
.addCommand(messaging)
.addCommand(migrations)
.addCommand(organizations)
.addCommand(presences)
.addCommand(project)
.addCommand(projects)
.addCommand(proxy)
Expand Down
7 changes: 7 additions & 0 deletions docs/examples/databases/create-big-int-attribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```bash
appwrite databases create-big-int-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false
```
8 changes: 8 additions & 0 deletions docs/examples/databases/update-big-int-attribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
```bash
appwrite databases update-big-int-attribute \
--database-id <DATABASE_ID> \
--collection-id <COLLECTION_ID> \
--key '' \
--required false \
--default null
```
1 change: 1 addition & 0 deletions docs/examples/functions/create-variable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
```bash
appwrite functions create-variable \
--function-id <FUNCTION_ID> \
--variable-id <VARIABLE_ID> \
--key <KEY> \
--value <VALUE>
```
3 changes: 2 additions & 1 deletion docs/examples/functions/list-variables.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
```bash
appwrite functions list-variables \
--function-id <FUNCTION_ID>
--function-id <FUNCTION_ID> \
--limit 25
```
3 changes: 1 addition & 2 deletions docs/examples/functions/update-variable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
```bash
appwrite functions update-variable \
--function-id <FUNCTION_ID> \
--variable-id <VARIABLE_ID> \
--key <KEY>
--variable-id <VARIABLE_ID>
```
4 changes: 4 additions & 0 deletions docs/examples/presences/delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite presences delete \
--presence-id <PRESENCE_ID>
```
3 changes: 3 additions & 0 deletions docs/examples/presences/get-usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```bash
appwrite presences get-usage
```
4 changes: 4 additions & 0 deletions docs/examples/presences/get.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite presences get \
--presence-id <PRESENCE_ID>
```
4 changes: 4 additions & 0 deletions docs/examples/presences/list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite presences list \
--limit 25
```
5 changes: 5 additions & 0 deletions docs/examples/presences/update-presence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite presences update-presence \
--presence-id <PRESENCE_ID> \
--user-id <USER_ID>
```
6 changes: 6 additions & 0 deletions docs/examples/presences/upsert.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```bash
appwrite presences upsert \
--presence-id <PRESENCE_ID> \
--user-id <USER_ID> \
--status <STATUS>
```
2 changes: 1 addition & 1 deletion docs/examples/project/create-ephemeral-key.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite project create-ephemeral-key \
--scopes one two three \
--duration 1
--duration 600
```
2 changes: 1 addition & 1 deletion docs/examples/project/get-o-auth-2-provider.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite project get-o-auth-2-provider \
--provider <PROVIDER>
--provider-id amazon
```
3 changes: 2 additions & 1 deletion docs/examples/project/list-o-auth-2-providers.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```bash
appwrite project list-o-auth-2-providers
appwrite project list-o-auth-2-providers \
--limit 25
```
4 changes: 4 additions & 0 deletions docs/examples/proxy/update-rule-status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite proxy update-rule-status \
--rule-id <RULE_ID>
```
4 changes: 0 additions & 4 deletions docs/examples/proxy/update-rule-verification.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/examples/sites/create-variable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
```bash
appwrite sites create-variable \
--site-id <SITE_ID> \
--variable-id <VARIABLE_ID> \
--key <KEY> \
--value <VALUE>
```
3 changes: 2 additions & 1 deletion docs/examples/sites/list-variables.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
```bash
appwrite sites list-variables \
--site-id <SITE_ID>
--site-id <SITE_ID> \
--limit 25
```
3 changes: 1 addition & 2 deletions docs/examples/sites/update-variable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
```bash
appwrite sites update-variable \
--site-id <SITE_ID> \
--variable-id <VARIABLE_ID> \
--key <KEY>
--variable-id <VARIABLE_ID>
```
7 changes: 7 additions & 0 deletions docs/examples/tablesdb/create-big-int-column.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```bash
appwrite tables-db create-big-int-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false
```
8 changes: 8 additions & 0 deletions docs/examples/tablesdb/update-big-int-column.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
```bash
appwrite tables-db update-big-int-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
--required false \
--default null
```
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# You can use "View source" of this page to see the full script.

# REPO
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/20.1.0/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/20.1.0/appwrite-cli-win-arm64.exe"
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/20.2.0/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/20.2.0/appwrite-cli-win-arm64.exe"

$APPWRITE_BINARY_NAME = "appwrite.exe"

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ verifyMacOSCodeSignature() {
downloadBinary() {
echo "[2/5] Downloading executable for $OS ($ARCH) ..."

GITHUB_LATEST_VERSION="20.1.0"
GITHUB_LATEST_VERSION="20.2.0"
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"

Expand Down
Loading