clockworklabs / SpacetimeDB

Multiplayer at the speed of light
https://spacetimedb.com
Other
4.2k stars 101 forks source link

CLI: List existing databases #1046

Open xNul opened 2 months ago

xNul commented 2 months ago

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?

MichaelNey commented 2 months ago

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.

cloutiertyler commented 2 months ago

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

MichaelNey commented 2 months ago

@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)