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

Create show command within CLI #25744

Open
1 of 3 tasks
peterbarnett03 opened this issue Jan 4, 2025 · 1 comment
Open
1 of 3 tasks

Create show command within CLI #25744

peterbarnett03 opened this issue Jan 4, 2025 · 1 comment
Labels

Comments

@peterbarnett03
Copy link
Contributor

peterbarnett03 commented Jan 4, 2025

Purpose

We need to create a new top-level show command, to enable uses to easily view their databases and caches. Tables will not be a sub-command, as that remains a SQL query for a database.

Requirements

When a user shows all top-level commands, show should now exist.

Command: show
Description: View all databases and configured caches

$ influxdb3 -h
InfluxDB 3 Core server and command line tools

Usage: influxdb3 [OPTIONS] [COMMAND]

Commands:
  create  Create a resource such as a database or auth token
  delete  Delete a resource such as a database or table
  query   Perform a query against a running InfluxDB 3 Core server [aliases: q]
  serve   Run the InfluxDB 3 Core server
  show    View all databases and configured caches
  write   Perform a set of writes to a running InfluxDB 3 Core server [aliases: w]
  help    Print this message or the help of the given subcommand(s)

Sub-commands are individual issues.

Tasks

Preview Give feedback
  1. v3
  2. v3
  3. v3
@pauldix pauldix added the v3 label Jan 4, 2025
@hiltontj
Copy link
Contributor

hiltontj commented Jan 6, 2025

FWIW - last_caches and meta_caches can be viewed via the system tables in a SQL query, i.e.,

select * from system.last_caches
select * from system.meta_caches

Like SHOW TABLES, that is always within the context of a specific database.

From the CLI, this isn't as convenient as influxdb3 show last_caches, but does offer a lot of flexibility out of the box.

Given that, I think it probably makes sense to have a influxdb3 show tables CLI command if we are going to do it for the caches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants