Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve tctl rm UX and info and docs for tctl get/update/rm #12849

Open
GavinFrazar opened this issue May 24, 2022 · 1 comment
Open

improve tctl rm UX and info and docs for tctl get/update/rm #12849

GavinFrazar opened this issue May 24, 2022 · 1 comment
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

Comments

@GavinFrazar
Copy link
Contributor

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.

@GavinFrazar GavinFrazar added the feature-request Used for new features in Teleport, improvements to current should be #enhancements label May 24, 2022
@zmb3 zmb3 added the tctl tctl - Teleport admin tool label May 25, 2022
@zmb3
Copy link
Collaborator

zmb3 commented May 25, 2022

See also #12811

@GavinFrazar GavinFrazar added the cli Tickets related to CLI experience label May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants