Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix(cli): dispatch the `connect` verb through the wrapper

Juan Denis5675f50c8831
diff --git a/scripts/test/test_cli.sh b/scripts/test/test_cli.sh
index 015be427..2f612c9d 100644
--- a/scripts/test/test_cli.sh
+++ b/scripts/test/test_cli.sh
@@ -789,6 +789,7 @@ check_args 'manifest plan --project 1 --json' manifest plan --project 1 --j
check_args 'services list --json' services list --json
check_args 'status --json' panel-status --json
check_args 'doctor --repair --yes' panel-doctor --repair --yes
+check_args 'connect status --json' connect status --json
if [ -z "$t20_fail" ]; then
ok "executed-mode flag passthrough: wrapper commands reach cli.py verbatim"
else
diff --git a/serverkit b/serverkit
index f599398a..f12e1f17 100644
--- a/serverkit
+++ b/serverkit
@@ -345,6 +345,7 @@ cmd_help() {
echo " manifest plan | diff | apply — a project's serverkit.yaml"
echo " login-url Mint a one-time panel login link"
echo " support-bundle Build a scrubbed diagnostic zip"
+ echo " connect Pair with ServerKit Cloud (connect [status|doctor|disconnect])"
echo ""
echo "Utility Commands:"
echo " generate-keys Generate secure keys for .env"
@@ -370,7 +371,7 @@ cmd_completion() {
_serverkit() {
local cur commands
cur="${COMP_WORDS[COMP_CWORD]}"
- commands="help start stop restart status logs update branch version check-update uninstall create-admin reset-password unlock-user list-users make-admin deactivate-user activate-user init-db migrate-db db-migrate db-status db-history backup-db restore-db disk cleanup-apps factory-reset generate-keys config setup-proxy create-app deploy-template list-servers deployment-status list-apps start-app stop-app app-logs add-site list-sites remove-site doctor manifest services apps repair login-url support-bundle panel-status panel-doctor completion"
+ commands="help start stop restart status logs update branch version check-update uninstall create-admin reset-password unlock-user list-users make-admin deactivate-user activate-user init-db migrate-db db-migrate db-status db-history backup-db restore-db disk cleanup-apps factory-reset generate-keys config setup-proxy create-app deploy-template list-servers deployment-status list-apps start-app stop-app app-logs add-site list-sites remove-site doctor manifest services apps repair login-url support-bundle connect panel-status panel-doctor completion"
if [ "$COMP_CWORD" -eq 1 ]; then
COMPREPLY=( $(compgen -W "$commands" -- "$cur") )
@@ -394,6 +395,7 @@ _serverkit() {
db-migrate|migrate-db) COMPREPLY=( $(compgen -W "--no-backup" -- "$cur") ) ;;
login-url) COMPREPLY=( $(compgen -W "--ttl --ip --user" -- "$cur") ) ;;
support-bundle) COMPREPLY=( $(compgen -W "--out --passphrase" -- "$cur") ) ;;
+ connect) COMPREPLY=( $(compgen -W "status doctor disconnect --cloud --json" -- "$cur") ) ;;
deploy-template) COMPREPLY=( $(compgen -W "--name --target --var --wait" -- "$cur") ) ;;
*) COMPREPLY=() ;;
esac
@@ -1612,7 +1614,7 @@ case "${1:-help}" in
migrate-db)
cmd_migrate_db
;;
- manifest|services|apps|repair|login-url|support-bundle|db-migrate|db-status|db-history)
+ manifest|services|apps|repair|login-url|support-bundle|connect|db-migrate|db-status|db-history)
cmd_panel_cli "$@"
;;
panel-status)