nexusLIMS.cli.main#

Unified CLI entrypoint for NexusLIMS.

Provides the nexuslims command with subcommands for all NexusLIMS CLI tools. Uses lazy loading so that nexuslims --help stays fast without importing heavy modules.

Usage#

.. code-block:: bash

nexuslims --help
nexuslims --version
nexuslims build-records [OPTIONS]
nexuslims config [dump|load|edit]
nexuslims db [init|upgrade|view|...]
nexuslims instruments manage
nexuslims instruments list

Module Contents#

Classes#

LazyGroup

Click group that lazily loads subcommands on first use.

Functions#

main

NexusLIMS command-line interface.

API#

class nexusLIMS.cli.main.LazyGroup(*args, lazy_commands: dict[str, tuple[str, str]], **kwargs)[source]#

Bases: click.Group

Click group that lazily loads subcommands on first use.

list_commands(ctx: click.Context) list[str][source]#

List all commands, including lazy ones.

get_command(ctx: click.Context, cmd_name: str) click.BaseCommand | None[source]#

Get a command, lazily importing it if necessary.

nexusLIMS.cli.main.main() None[source]#

NexusLIMS command-line interface.

Manage records, configuration, database migrations, and instruments.