# Simplest way to get all database names

**URL:** <https://forum.datomic.com/t/simplest-way-to-get-all-database-names/404>\
**Category:** General\
**Created:** [April 16, 2018, 9:43pm UTC](https://forum.datomic.com/t/simplest-way-to-get-all-database-names/404 "2018-04-16T21:43:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [April 17, 2018, 1:56pm UTC](https://forum.datomic.com/t/simplest-way-to-get-all-database-names/404/2 "2018-04-17T13:56:53Z")

</div>

Hi Lucas,

We don’t currently have a specific built-in script to run something like that. You can use Clojure’s CLI to run the process from the command line:

```auto
clojure -Sdeps '{:deps {com.datomic/datomic-pro {:mvn/version "0.9.5697"}}}' -e '(require (quote [datomic.api :as d])) (d/get-database-names "datomic:dev://localhost:4334/*") (System/exit 0)'

```

That is admittedly not the prettiest option.  
I’ve added “Built-in command-line support” for this kind of operation as a [feature request](https://receptive.io/app/#/case/55985) in our Suggest Features portal

---

_[View the full topic](https://forum.datomic.com/t/simplest-way-to-get-all-database-names/404)._
