Skip to content

Add a metadata CLI tool similar to etcdctl #6188

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

Open
WenyXu opened this issue May 26, 2025 · 4 comments
Open

Add a metadata CLI tool similar to etcdctl #6188

WenyXu opened this issue May 26, 2025 · 4 comments
Labels
C-feature Category Features good first issue Good for newcomers

Comments

@WenyXu
Copy link
Member

WenyXu commented May 26, 2025

What problem does the new feature solve?

We need a CLI tool to interact with the metadata layer of GreptimeDB, similar to how etcdctl allows direct interaction with etcd. This tool would help operators inspect, query, and manage metadata entries.

What does the feature do?

Expected Features:

  • greptime-meta-cli get : Retrieve a metadata entry. (P0)
  • greptime-meta-cli del : Delete a metadata entry. (P0)
  • greptime-meta-cli list : List entries under a prefix.
  • greptime-meta-cli put : Add or update an entry. (Optional)

Implementation challenges

No response

@WenyXu WenyXu added C-feature Category Features good first issue Good for newcomers labels May 26, 2025
@yinheli
Copy link
Contributor

yinheli commented May 27, 2025

So as I understand it, the goal is to have the CLI interact with Metasrv using the meta-client, right?

@WenyXu
Copy link
Member Author

WenyXu commented May 28, 2025

So as I understand it, the goal is to have the CLI interact with Metasrv using the meta-client, right?

Yes

@yinheli
Copy link
Contributor

yinheli commented May 28, 2025

May I have a try? 😘

@WenyXu
Copy link
Member Author

WenyXu commented May 28, 2025

May I have a try? 😘

Of course. However, please note that this task might not be easy to test. Reading the tests-integration code might give you some ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category Features good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants