# Deploy

`deploy` - Deploys mods to the game by compiling them together

## Synopsis

```md
Usage:
  redmod deploy -root=<path> [options]

Arguments:
  -root=<path>

Options:
  -mod=<name>
  -h, --help 
```

## Description

The `deploy` command stages installed mods to work when the game starts with the `modded` flag.

* archives from `<Cyberpunk 2077>/mods/<name>` are staged to load
* scripts in `<Cyberpunk 2077>/mods/<name>/scripts` are compiled into a modded script blob
* tweak files in `<Cyberpunk 2077>/mods/<name>/tweaks` are compiled into a modded tweakDB blob
* sound files in `<Cyberpunk 2077>/mods/<name>/customSounds` are staged to load

You can specify a specific load order with the **-mod** parameter

## Arguments

* **`-root=<path>`**

  the game root folder for which the deploy command is run.

> INFO - this needs to be `<Cyberpunk 2077>`

## Options

* **`-mod=<modA dirname> [<modB dirname> ...]`**

  stage only the mods in the given **directory** names (without the leading `mods\),` in left to right load order precedence. You must escape any spaces by enclosing the argument in double quotes (for example `Mod With Space` should be given as `-mod="Mod With Space"`.)
* **`-modlist=<filename>`**
* **`-?|-h|--help`**

  Prints out a description of how to use the command.

## Examples

* **`redmod deploy -root="C:\Gog\Cyberpunk 2077"`**

  Stages all installed mods under `C:\Gog\Cyberpunk 2077\mods` for loading
* **`redmod deploy -root="C:\Gog\Cyberpunk 2077" -mod=modB modA modC`**

  Stages only the three mods `C:\Gog\Cyberpunk 2077\mods\modA\`, `C:\Gog\Cyberpunk 2077\mods\modB\` and `C:\Gog\Cyberpunk 2077\mods\modC\` for loading. In this case, `modB` will override both `modA` and `mod`C, and `modA` will override `modC` (in case any of them modify the same asset paths.)
* **`redmod deploy -root="C:\Gog\Cyberpunk 2077" -modlist="loadorder.txt"`**

  Same as above, but will load the mods from the file loadorder.txt instead.


---

# 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://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-users/users-modding-cyberpunk-2077/redmod/commands/deploy.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.
