improve tctl rm UX and info and docs for tctl get/update/rm #12849
Labels
cli
Tickets related to CLI experience
feature-request
Used for new features in Teleport, improvements to current should be #enhancements
tctl
tctl - Teleport admin tool
What would you like Teleport to do?
If I list nodes with
$ tctl nodes ls
, it prints out shortened node UUIDs. When I try to remove a node with that shortened UUID, the command fails, e.g.$ tctl rm nodes/shortened-uuid
. I found the full UUID via$ tctl get nodes
, and then realized there was another option$ tctl nodes ls --verbose
, however I still think it would be convenient to manage resources with unambiguous UUID prefixes.For instance in git, I can just type in the first few characters of a commit hash and it works, unless the prefix is ambiguous. I think it would be similarly convenient here, unless there is some security concern I'm not aware of.
On that same note, it's not clear to me what all of the valid "resource types" are. There are a few examples in the help message for tctl rm/get/update, but it's not comprehensive and I can't find any comprehensive list. Suggestion: improve help message for tctl rm/get/update to clarify what resource type means.
What problem does this solve?
Improve UX
If a workaround exists, please include it.
For removing a node: Find the full UUID and paste it instead.
The text was updated successfully, but these errors were encountered: