Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docs for available CLI commands #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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