.. _CLI_Documentation: CLI Documentation ================= Overview -------- This page contains the complete documentation for the Data Curator command-line interface (CLI), including all available commands, options, and usage examples. Usage ----- Below is the entry point for the CLI. Run ``kaxanuk.data_curator --help`` to see all commands, or ``kaxanuk.data_curator --help`` for details on a specific command. .. click:: kaxanuk.data_curator.services.cli:cli :prog: kaxanuk.data_curator :show-nested: Commands -------- autorun ~~~~~~~ Installs required files and directories for the Excel entry script if missing; otherwise runs the system. init ~~~~ Creates all files and folders required by the specified configuration format. Arguments: - ``CONFIG_FORMAT`` (required, choices: ``excel``): The configuration format to initialize. Options: - ``--entry_script .py``: Name of the entry script to generate. Defaults to ``__main__.py``. run ~~~ Runs the system. If no arguments are provided, it looks for ``__main__.py`` in the current directory; otherwise, each argument must be a path to an entry script (or a directory containing ``__main__.py``). Arguments: - ``ENTRY_SCRIPT_LOCATIONS`` (0 or more): Path(s) to entry script file(s) or directories. update ~~~~~~ Updates configuration files for the specified format. Arguments: - ``CONFIG_FORMAT`` (required, choices: ``excel``, ``entry_script``): The configuration format to update. Examples -------- Initialize a new Excel configuration (creates ``Config/``, ``Output/`` and a new ``__main__.py``): .. code-block:: console $ kaxanuk.data_curator init excel Initializing data curator with format: excel Created directory Config Created directory Output Installed all files successfully Run the system using the default entry script: .. code-block:: console $ kaxanuk.data_curator run Running... # (or appropriate output from __main__.py) Run the system on a specific entry script in another folder: .. code-block:: console $ kaxanuk.data_curator run path/to/project/__main__.py Running... # (or appropriate output from that __main__.py) Update only the entry script to the latest template: .. code-block:: console $ kaxanuk.data_curator update entry_script Updated entry script Install or run the Excel entry script (if ``__main__.py`` is missing, it will install; otherwise run): .. code-block:: console $ kaxanuk.data_curator autorun Installed all files successfully. Please configure the files in the Config folder and run again