Skip to content

Commit af98f61

Browse files
author
Ed Costello
committed
Merge pull request #519 from epc/DOCS-942-show-databases
DOCS-942 add show databases as alias to show dbs (delay merge to 2.3.1)
2 parents cfd3cc1 + a6267da commit af98f61

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

source/reference/mongo-shell-reference.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ displays some common help methods and commands:
7070
- Show help on collection methods. The ``<collection>`` can be the
7171
name of an existing collection or a non-existing collection.
7272

73+
.. versionadded:: 2.3.1
74+
75+
* - ``show databases``
76+
77+
- Print a list of all databases on the server.
78+
7379
* - ``show dbs``
7480

7581
- Print a list of all databases on the server.

source/tutorial/access-mongo-shell-help.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ To see the list of help, in the :program:`mongo` shell, type ``help``:
4343
Database Help
4444
-------------
4545

46+
.. versionchanged:: 2.3.1
47+
4648
- To see the list of databases on the server, use the ``show dbs``
47-
command:
49+
or ``show databases`` command:
4850

4951
.. code-block:: javascript
5052

source/tutorial/getting-started.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ you insert data into that database. The
9090
:ref:`getting-started-create-documents` section describes the process
9191
for inserting data.
9292

93+
.. versionadded:: 2.3.1
94+
95+
.. note::
96+
97+
:command:`show databases` will also return a list of databases.
98+
99+
93100
Display ``mongo`` Help
94101
~~~~~~~~~~~~~~~~~~~~~~
95102

0 commit comments

Comments
 (0)