vultr-cli icon indicating copy to clipboard operation
vultr-cli copied to clipboard

[Feature] - Allow Partial UUIDs in Commands (Like Docker CLI)

Open TiFosi opened this issue 9 months ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, vultr-cli requires to input full UUIDs when interacting with resources. This can be inconvenient, especially when frequently managing multiple instances, firewalls, or other resources

Describe the solution you'd like I propose allowing to reference resources using a short prefix of the UUID, similar to how Docker CLI works. Instead of requiring the full UUID, vultr-cli should accept a unique partial match (e.g., the first 2–3 characters) when specifying a resource

Describe alternatives you've considered Tab Autocompletion for UUIDs of resources

Example

Instead of:

vultr-cli instance delete 3fa85f64-5717-4562-b3fc-2c963f66afa6

Allow:

vultr-cli instance delete 3fa

TiFosi avatar Feb 07 '25 19:02 TiFosi

I think this will end up being complicated to implement compared but I'm willing to keep this request open and investigate the options when time allows.

optik-aper avatar Mar 04 '25 22:03 optik-aper