# Cli

MIP uses [MooseX::App](https://metacpan.org/pod/MooseX::App) to create a single command line interface (CLI) entry point to all MIP related processes. The main application is called by:

```bash
$ mip
```

This will show the usage, global parameters and all available commands and subcommands. There is currently three main commands:

* Install
* Analyse
  * rd\_dna
  * rd\_rna
  * rd\_dna\_vcf\_rerun
* Download
  * rd\_dna
  * rd\_rna

There are three levels of parameters:

* Global
* Commands
* Sub commands

These parameters are defined for the CLI at each level of the underlying namespace in `lib/MIP/Cli`. The complete parameter feature is defined for each command and subcommand in definition file located under `definitions`.

A parameter that is unique to a command or subcommand should only be defined once in that namespace and corresponding definitions file.

A parameter that is shared by all subsequent processes only needs to be defined in the parent namespace and corresponding definitions file.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://clinical-genomics.gitbook.io/project-mip/documentation/cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
