SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

CLI: List existing databases

Open xNul opened this issue 1 year ago • 3 comments

I think it would be useful to have a command which lists all existing databases since a database name is needed for most of the CLI's commands. Maybe spacetime list where adding an identity is optional?

xNul avatar Apr 07 '24 23:04 xNul

I would like this as well. It seems spacetime list definitely seems like a great spot for this. With a change to the command to include also fetching the DNS of the database via the /database/reverse_dns/:address endpoint, I was able to get an output like this: image

I think this would be a nice QoL change that I would appreciate.

MichaelNey avatar Apr 08 '24 12:04 MichaelNey

This is a great idea! CLI needs some work generally I think

cloutiertyler avatar Apr 09 '24 01:04 cloutiertyler

@xNul I made a change I've built locally that I like to use to get db names easily if you are looking to have that for now until the StDB team makes the addition. (Source in linked PR above)

MichaelNey avatar Apr 10 '24 04:04 MichaelNey