Add Neki support to the CLI - #1401
Merged
Merged
Conversation
Neki databases can be created, connected, restored, and operated from pscale. Existing Postgres commands that apply (sql, shell, role, maintenance) accept Neki as well. New and extended commands: ``` pscale database create --engine neki pscale logs <database> <branch> pscale size cluster list --engine neki pscale branch data-topology get|ls|update pscale branch shard list|show|create|assign|update|delete pscale branch config-profile list|show|create|update|delete pscale branch config-profile default|set-default|parameters|maintenance pscale branch config-profile extensions|extensions enable|extensions disable pscale branch config-profile changes list|show|cancel pscale branch router list|show|create|update|delete|sizes pscale branch router changes list|show|cancel pscale branch sidecar list|show|update|parameters pscale branch sidecar changes list|show|cancel pscale branch admin show|update|parameters|sizes pscale branch admin changes list|show|cancel pscale branch maintenance run pscale backup restore pscale backup restore show ``` Neki restore accepts --config-profile and --router; --cluster-size is optional so the source default profile size is kept. Shell accepts --router for Neki routing.
dgraham
approved these changes
Sep 10, 2026
nholden
approved these changes
Sep 10, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b0a8f8d. Configure here.
eileencodes
added a commit
that referenced
this pull request
Sep 10, 2026
Followup to fix bugbot comments on #1401 Accept Neki restore sizing on --restore-point and normalize cluster-size slugs. --from + --restore-point is a backup restore, so --config-profile/--router were rejected before the backup id was resolved. --cluster-size also skipped ToSizeSKUName, so hyphenated sizes from `pscale size cluster list` disagreed with the profile override path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Neki databases can be created, connected, restored, and operated from pscale. Existing Postgres commands that apply (sql, shell, role, maintenance) accept Neki as well.
New and extended commands:
Neki restore accepts --config-profile and --router; --cluster-size is optional so the source default profile size is kept. Shell accepts --router for Neki routing.