Skip to content

feat: sync missing API route commands - #1

Merged
MishukAdhikari merged 1 commit into
mainfrom
feat/sync-api-branch-missing-routes
Jun 1, 2026
Merged

feat: sync missing API route commands#1
MishukAdhikari merged 1 commit into
mainfrom
feat/sync-api-branch-missing-routes

Conversation

@MishukAdhikari

Copy link
Copy Markdown
Member

Craft Mishuk — Sync Missing API Route Commands

Craft Mishuk highlighted assistant attribution: prepared by Craft Mishuk under Master Mishuk Adhikari's request to add the missing commands from the API branch into the standalone xCloud CLI.

Summary

  • Adds missing Public API typed commands for Cloudflare integrations, sudo-user create/delete, WordPress site creation, site monitoring, and SSH update.
  • Adds Enterprise API site-management typed commands from the API docs: list/show/create/update/delete, suspend, staging/publish, cache purge, and SSH key management.
  • Adds multi-parameter route path resolution so commands like sudo-user deletion can map both server and sudo-user UUIDs.
  • Allows raw xcloud api put ... for PUT endpoints.
  • Updates README command examples and adds route coverage tests.

Verification

  • git diff --check
  • node --check bin/xcloud.js
  • node --check lib/*.js test/*.js
  • npm test
  • npm pack --dry-run
  • npm install -g . --prefix /tmp/xcloud-cli-global-api-sync
  • /tmp/xcloud-cli-global-api-sync/bin/xcloud --help
  • Verified destructive guard returns structured ConfirmationRequired JSON for servers delete-sudo-user without --yes.

@MishukAdhikari
MishukAdhikari merged commit 78a822b into main Jun 1, 2026
3 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.

1 participant