Skip to content

feat: Command Line SDK update for version 22.4.0#335

Merged
ChiragAgg5k merged 2 commits into
masterfrom
dev
Jul 2, 2026
Merged

feat: Command Line SDK update for version 22.4.0#335
ChiragAgg5k merged 2 commits into
masterfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jul 2, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 22.4.0.

What's Changed

  • Updated: Removed pre-release activity log commands list-logs, list-collection-logs, list-document-logs, list-table-logs, list-row-logs, list-message-logs, list-provider-logs, list-subscriber-logs, and list-topic-logs
  • Updated: Removed oauth2 approve command, meant for the console consent screen only
  • Updated: --scope on oauth2 authorize is now optional and supports the phone scope
  • Updated: CLI OAuth login now requests the all scope instead of account.admin
  • Updated: Skills install now uses the appwrite/skills repository
  • Updated: API key scope limits raised from 100 to 200 scopes
  • Fixed: Empty error messages now fall back to the response body instead of a bare Error:
  • Updated: Verbose error output is formatted with colored details and indented stack traces

@ChiragAgg5k ChiragAgg5k changed the title feat: Command Line SDK update for version 22.4.0 feat: SDK update for version 22.4.0 Jul 2, 2026
@greptile-apps

greptile-apps Bot commented Jul 2, 2026

Copy link
Copy Markdown

Greptile Summary

This PR bumps the Appwrite CLI SDK from 22.3.0 to 22.4.0, removing a set of pre-release activity-log commands across all services and the console-only oauth2 approve command, while improving error reporting with colored/indented output and a non-empty message fallback.

  • Command removals: All list-logs, list-*-logs variants across account, databases, messaging, tables-db, teams, and users services are deleted (pre-release APIs); oauth2 approve is removed as console-only.
  • Error handling improvements: getErrorMessage now falls back to the raw response body when error.message is empty; formatErrorForLog gains colored, indented formatting with filtered stack frames.
  • Scope limit raised: API key scope cap increased from 100 → 200 across account, functions, organization, and project commands; --scope on oauth2 authorize becomes optional and gains phone support; CLI OAuth login now requests the all scope (documented in CHANGELOG).

Confidence Score: 5/5

Routine SDK version bump with well-scoped, intentional command removals and error-handling improvements — safe to merge.

All changes are consistent with the documented 22.4.0 CHANGELOG entries. The command removals are cleanly executed with no dangling references, and the error-handling refactor is additive and defensive. No logic regressions are introduced.

No files require special attention.

Important Files Changed

Filename Overview
lib/utils.ts Improves getErrorMessage to fall back to the raw response body when error.message is empty; renames Skills helpers section and SKILLS_REPO to use appwrite/skills.
lib/parser.ts Refactors formatErrorForLog to emit colored, indented output with separated stack frames; plumbs getErrorMessage throughout parseError and the GitHub issue URL builder.
lib/constants.ts Version bumped to 22.4.0; OAUTH2_SCOPES broadened from account.admin to all (intentional per CHANGELOG).
lib/commands/services/oauth-2.ts Removes the approve command (console-only); makes --scope optional on authorize and adds phone to the supported scope list.
lib/commands/generic.ts Logout session-switch message is now suppressed when the next session has no email (intentional per CHANGELOG).
lib/commands/services/account.ts Removes list-logs command; updates scope limit from 100 to 200 in create-key and update-key.
lib/commands/services/databases.ts Removes list-logs, list-collection-logs, and list-document-logs pre-release commands.
lib/commands/services/messaging.ts Removes list-message-logs, list-provider-logs, list-subscriber-logs, and list-topic-logs pre-release commands.
lib/commands/init.ts Renames "agent skills" to "skills" in UI strings; underlying SKILLS_REPO URL updated in utils.ts to appwrite/skills.
lib/auth/session.ts Uses getErrorMessage helper instead of inline ternary for error conversion in deleteServerSession.

Reviews (2): Last reviewed commit: "chore: update Command Line SDK to 22.4.0" | Re-trigger Greptile

Comment thread lib/commands/generic.ts
Comment thread lib/constants.ts
@ChiragAgg5k ChiragAgg5k changed the title feat: SDK update for version 22.4.0 feat: Command Line SDK update for version 22.4.0 Jul 2, 2026
@ChiragAgg5k ChiragAgg5k merged commit c6be334 into master Jul 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants