Skip to content

Commit

Permalink
add docs for available CLI commands
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-schick committed Nov 27, 2023
1 parent ae2ec70 commit 568755a
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
81 changes: 81 additions & 0 deletions docs/cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
CLI
===

.. module:: mara_pipelines.cli

This part of the documentation covers all the available cli commands of Mara DB.


``run``
-----------

.. tabs::

.. group-tab:: Mara CLI

.. code-block:: shell
mara pipelines run [--path <path>] [--nodes <nodes>] [--with_upstreams] [--disable-colors]
.. group-tab:: Mara Flask App

.. code-block:: python
flask mara-pipelines run [--path <path>] [--nodes <nodes>] [--with_upstreams] [--disable-colors]
Runs a pipeline or a sub-set of its nodes

Available arguments:

* `--path <path>` - The id of of the pipeline to run. Example: "pipeline-id"; "" (default) is the root pipeline.
* `--nodes <nodes>` - IDs of sub-nodes of the pipeline to run, separated by comma. When provided, then only these nodes are run. Example: "do-this,do-that".
* `--with_upstreams` - Also run all upstreams of --nodes within the pipeline.
* `--disable-colors` - Output logs without coloring them.


``run_interactively``
-----------

.. tabs::

.. group-tab:: Mara CLI

.. code-block:: shell
mara pipelines run-interactively
.. group-tab:: Mara Flask App

.. code-block:: python
flask mara-pipelines run-interactively
Select and run data pipelines



``reset_incremental_processing``
-----------

.. tabs::

.. group-tab:: Mara CLI

.. code-block:: shell
mara pipelines reset-incremental-processing [--path <path>]
.. group-tab:: Mara Flask App

.. code-block:: python
flask mara-pipelines reset-incremental-processing [--path <path>]
Reset status of incremental processing for a node

Available arguments:

* `--path <path>` - The parent ids of of the node to reset. Example: "pipeline-id,sub-pipeline-id".
11 changes: 11 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ This part of the documentation focuses on step-by-step instructions how to use t
config


CLI commands
------------

When you are looking at available CLI commands, here you are at the right place.

.. toctree::
:maxdepth: 2

cli


API Reference
-------------

Expand Down

0 comments on commit 568755a

Please sign in to comment.