> For the complete documentation index, see [llms.txt](https://help.connected.illumina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/launching-analysis/creating_multiple_cases/batch-case-upload-via-cli.md).

# Batch case upload via CLI

#### Prerequisites

* Download and install node js platform via <https://nodejs.org/en/download>\
  Minimum version required: 16\
  Upgrade existing installation: `nvm install --lts`

#### Batch upload via CLI (Command Line Interface)

1. Download the batch case create script.\
   Replace `my-domain` with your Emedgene domain.\
   Illumina cloud: my-domain.emg.illumina.com\
   Legacy Emedgene cloud: my-domain.emedgene.com

```
curl https://my-domain.emg.illumina.com/v2/js/batchCasesCreator.js --output batchCasesCreator.js
```

2. Download the CSV template file.

```
node batchCasesCreator.js saveTemplateFile
```

3. Edit the downloaded batchCases.csv file. See [CSV format requirements](/emedgene/emedgene-analyze-manual/launching-analysis/creating_multiple_cases/csv_format_requirements.md) for more details.
4. Execute the batch cases creator as java script using the command below.\
   Replace `my-domain` with your Emedgene domain and `my-email` with your user email.\
   A prompt for your Emedgene password will appear, enter the password and press Enter.

```
node batchCasesCreator.js create -h https://my-domain.emg.illumina.com -c batchCases.csv -u my-email -l
```

5. In case of validation errors in the input CSV, an output CSV called batchCases\_results.csv will be created in the same location with detailed error results.
6. `-l` will create a log file in the same location.

More information can be found by running

```
node batchCasesCreator.js --help
```

```
node batchCasesCreator.js create --help
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/launching-analysis/creating_multiple_cases/batch-case-upload-via-cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
