Skip to content

Commit 448f4bc

Browse files
authored
Merge pull request #323 from appwrite/dev
feat: Command Line SDK update for version 22.0.0
2 parents 8325bec + 5057c55 commit 448f4bc

57 files changed

Lines changed: 1540 additions & 2113 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 22.0.0
4+
5+
* Breaking: Renamed `project update-deny-canonical-email-policy` to `update-deny-aliased-email-policy`
6+
* Breaking: Moved organization API key commands to the new `organization` group (`list-keys`, `create-key`, `get-key`, `update-key`, `delete-key`)
7+
* Breaking: Moved project management to the new `organization` group (`list-projects`, `create-project`, `get-project`, `update-project`, `delete-project`)
8+
* Added: `presences` commands to track presence and usage
9+
* Added: `project get` command
10+
311
## 21.0.1
412

513
* Fixed: Kotlin type generation now emits `Long` for Appwrite integer attributes to match the Android and Kotlin SDK models

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
21.0.1
32+
22.0.0
3333
```
3434

3535
### Install using prebuilt binaries
@@ -83,7 +83,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
8383
Once the installation completes, you can verify your install using
8484
```
8585
$ appwrite -v
86-
21.0.1
86+
22.0.0
8787
```
8888

8989
## Getting Started

bun.lock

Lines changed: 83 additions & 246 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bunfig.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33

44
[install]
55
minimumReleaseAge = 604800 # 7d
6+
# Exempt `tmp` from the release-age policy so the security fix for
7+
# GHSA-ph9p-34f9-6g65 (landed in tmp@0.2.6) can be installed before the
8+
# 7d window elapses. Remove this entry once 0.2.6+ ages out.
9+
minimumReleaseAgeExcludes = ["tmp"]

cli.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ import { health } from './lib/commands/services/health.js';
4444
import { locale } from './lib/commands/services/locale.js';
4545
import { messaging } from './lib/commands/services/messaging.js';
4646
import { migrations } from './lib/commands/services/migrations.js';
47+
import { organization } from './lib/commands/services/organization.js';
4748
import { organizations } from './lib/commands/services/organizations.js';
49+
import { presences } from './lib/commands/services/presences.js';
4850
import { project } from './lib/commands/services/project.js';
4951
import { projects } from './lib/commands/services/projects.js';
5052
import { proxy } from './lib/commands/services/proxy.js';
@@ -214,7 +216,9 @@ if (process.argv.includes('-v') || process.argv.includes('--version')) {
214216
.addCommand(locale)
215217
.addCommand(messaging)
216218
.addCommand(migrations)
219+
.addCommand(organization)
217220
.addCommand(organizations)
221+
.addCommand(presences)
218222
.addCommand(project)
219223
.addCommand(projects)
220224
.addCommand(proxy)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```bash
2+
appwrite organization create-key \
3+
--key-id <KEY_ID> \
4+
--name <NAME> \
5+
--scopes one two three
6+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
```bash
2+
appwrite organization create-project \
3+
--project-id '' \
4+
--name <NAME>
5+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```bash
2+
appwrite organization delete-key \
3+
--key-id <KEY_ID>
4+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```bash
2+
appwrite organization delete-project \
3+
--project-id <PROJECT_ID>
4+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```bash
2+
appwrite organization get-key \
3+
--key-id <KEY_ID>
4+
```

0 commit comments

Comments
 (0)