Skip to content

Commit

Permalink
docs: add docs page for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
taimoorzaeem authored and steve-chavez committed Apr 29, 2024
1 parent 40bd9a7 commit 7e5fd31
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Technical references for PostgREST's functionality.

references/auth.rst
references/api.rst
references/cli.rst
references/transactions.rst
references/connection_pool.rst
references/schema_cache.rst
Expand Down
1 change: 1 addition & 0 deletions docs/postgrest.dict
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Cardano
casted
cd
centric
CLI
coercible
conf
Cloudflare
Expand Down
46 changes: 46 additions & 0 deletions docs/references/cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.. _cli:

CLI
===

PostgREST provides a CLI to start and run your postgrest service. The CLI provides the commands listed below:

.. _cli_commands:

CLI Commands
------------

Help and Version
~~~~~~~~~~~~~~~~

.. code:: bash
$ postgrest [-h|--help]
$ postgrest [-v|--version]
Example Config
~~~~~~~~~~~~~~

.. code:: bash
$ postgrest [-e|--example]
These commands show the example configuration file.

Config
~~~~~~

.. code:: bash
$ postgrest [--dump-config] [FILENAME]
Here ``FILENAME`` is the path to configuration file.

Schema Cache
~~~~~~~~~~~~

.. code:: bash
$ postgrest [--dump-schema] [FILENAME]
Here ``FILENAME`` is the path to configuration file.

0 comments on commit 7e5fd31

Please sign in to comment.