Skip to content
Merged
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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## 22.1.0

* Fixed: `organization get-invoice-download` and `get-invoice-view` now save the invoice to disk via `--destination`
* Fixed: File download commands now report a clear error when the download request fails
* Added: `oauth2` command group (`authorize`, `create-token`, `create-grant`, `get-grant`, `approve`, `reject`, `revoke`, `logout`, `create-device-authorization`)
* Added: `messaging create-ses-provider` and `update-ses-provider` commands for Amazon SES
* Added: `project update-o-auth-2-server` command to configure the OIDC provider
* Added: `project update-deny-corporate-email-policy` command
* Added: `project update-password-strength-policy` command
* Added: `--dedicated-database-id` option to `tables-db create`
* Updated: Bumped `@appwrite.io/console` dependency to `^15.0.0`

## 22.0.0

* Breaking: Renamed `project update-deny-canonical-email-policy` to `update-deny-aliased-email-policy`
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using

```sh
$ appwrite -v
22.0.0
22.1.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
22.0.0
22.1.0
```

## Getting Started
Expand Down
155 changes: 51 additions & 104 deletions bun.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion bunfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ minimumReleaseAge = 604800 # 7d
# Exempt `tmp` from the release-age policy so the security fix for
# GHSA-ph9p-34f9-6g65 (landed in tmp@0.2.6) can be installed before the
# 7d window elapses. Remove this entry once 0.2.6+ ages out.
minimumReleaseAgeExcludes = ["tmp"]
# `@appwrite.io/console` is Appwrite's first-party SDK, released in lockstep
# with this CLI, so it is exempt from the third-party release-age window.
minimumReleaseAgeExcludes = ["tmp", "@appwrite.io/console"]
2 changes: 2 additions & 0 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import { health } from './lib/commands/services/health.js';
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 { oauth2 } from './lib/commands/services/oauth-2.js';
import { organization } from './lib/commands/services/organization.js';
import { organizations } from './lib/commands/services/organizations.js';
import { presences } from './lib/commands/services/presences.js';
Expand Down Expand Up @@ -216,6 +217,7 @@ if (process.argv.includes('-v') || process.argv.includes('--version')) {
.addCommand(locale)
.addCommand(messaging)
.addCommand(migrations)
.addCommand(oauth2)
.addCommand(organization)
.addCommand(organizations)
.addCommand(presences)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/account/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
appwrite account create \
--user-id <USER_ID> \
--email email@example.com \
--password ''
--password password
```
2 changes: 1 addition & 1 deletion docs/examples/account/update-password.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite account update-password \
--password ''
--password password
```
2 changes: 1 addition & 1 deletion docs/examples/account/update-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
appwrite account update-recovery \
--user-id <USER_ID> \
--secret <SECRET> \
--password ''
--password password
```
5 changes: 5 additions & 0 deletions docs/examples/messaging/create-ses-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite messaging create-ses-provider \
--provider-id <PROVIDER_ID> \
--name <NAME>
```
4 changes: 4 additions & 0 deletions docs/examples/messaging/update-ses-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite messaging update-ses-provider \
--provider-id <PROVIDER_ID>
```
2 changes: 1 addition & 1 deletion docs/examples/migrations/create-n-host-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ appwrite migrations create-n-host-migration \
--admin-secret <ADMIN_SECRET> \
--database <DATABASE> \
--username <USERNAME> \
--password <PASSWORD>
--password password
```
2 changes: 1 addition & 1 deletion docs/examples/migrations/create-supabase-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ appwrite migrations create-supabase-migration \
--api-key <API_KEY> \
--database-host <DATABASE_HOST> \
--username <USERNAME> \
--password <PASSWORD>
--password password
```
2 changes: 1 addition & 1 deletion docs/examples/migrations/get-n-host-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ appwrite migrations get-n-host-report \
--admin-secret <ADMIN_SECRET> \
--database <DATABASE> \
--username <USERNAME> \
--password <PASSWORD>
--password password
```
2 changes: 1 addition & 1 deletion docs/examples/migrations/get-supabase-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ appwrite migrations get-supabase-report \
--api-key <API_KEY> \
--database-host <DATABASE_HOST> \
--username <USERNAME> \
--password <PASSWORD>
--password password
```
4 changes: 4 additions & 0 deletions docs/examples/oauth2/approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite oauth-2 approve \
--grant-_id <GRANT_ID>
```
7 changes: 7 additions & 0 deletions docs/examples/oauth2/authorize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```bash
appwrite oauth-2 authorize \
--client-_id <CLIENT_ID> \
--redirect-_uri https://example.com \
--response-_type code \
--scope <SCOPE>
```
3 changes: 3 additions & 0 deletions docs/examples/oauth2/create-device-authorization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```bash
appwrite oauth-2 create-device-authorization
```
4 changes: 4 additions & 0 deletions docs/examples/oauth2/create-grant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite oauth-2 create-grant \
--user-_code <USER_CODE>
```
4 changes: 4 additions & 0 deletions docs/examples/oauth2/create-token.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite oauth-2 create-token \
--grant-_type <GRANT_TYPE>
```
4 changes: 4 additions & 0 deletions docs/examples/oauth2/get-grant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite oauth-2 get-grant \
--grant-_id <GRANT_ID>
```
3 changes: 3 additions & 0 deletions docs/examples/oauth2/logout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```bash
appwrite oauth-2 logout
```
4 changes: 4 additions & 0 deletions docs/examples/oauth2/reject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite oauth-2 reject \
--grant-_id <GRANT_ID>
```
4 changes: 4 additions & 0 deletions docs/examples/oauth2/revoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite oauth-2 revoke \
--token <TOKEN>
```
4 changes: 4 additions & 0 deletions docs/examples/project/update-deny-corporate-email-policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite project update-deny-corporate-email-policy \
--enabled false
```
5 changes: 5 additions & 0 deletions docs/examples/project/update-o-auth-2-server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite project update-o-auth-2-server \
--enabled false \
--authorization-url https://example.com
```
3 changes: 3 additions & 0 deletions docs/examples/project/update-password-strength-policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```bash
appwrite project update-password-strength-policy
```
2 changes: 1 addition & 1 deletion docs/examples/users/update-password.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite users update-password \
--user-id <USER_ID> \
--password ''
--password password
```
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/22.0.0/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/22.0.0/appwrite-cli-win-arm64.exe"
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/22.1.0/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/22.1.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="22.0.0"
GITHUB_LATEST_VERSION="22.1.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