# Wolvenkit.CLI: Usage

## Summary

This page contains information on the general use of Wolvenkit's command line interface. For more specific information, please see the corresponding sub-pages:

* &#x20;[Settings](/wolvenkit/wolvenkit-cli/usage/settings.md)&#x20;
* [Wolvenkit.CLI: Command List](/wolvenkit/wolvenkit-cli/usage/command-list.md)
* &#x20;[Textures (CLI)](/wolvenkit/wolvenkit-cli/usage/textures-cli.md)
* [Video and audio files (CLI)](/wolvenkit/wolvenkit-cli/usage/video-and-audio-files-cli.md)

## Help

* Display general help/list all commands: `--help`
* Display help for a specific command: `archive -h`

## Using WolvenKit Console globally

&#x20;You can now install and update the Wolvenkit Command Line Tools (wolvenkit.cli) as a *dotnet global tool*. The console can be used anywhere directly from the command line, with no custom installation, and easy update.

&#x20;Open command prompt/powershell and type in:

`dotnet tool install -g wolvenkit.cli`&#x20;

WolvenKit Console can now be run from anywhere using CMD/Powershell:

`wolvenkit.cli uncook -p "D:\SteamLibrary\steamapps\common\Cyberpunk 2077\archive\pc\content\basegame_1_engine.archive"`

For updates to WolvenKit console, open CMD/Powershell and type:&#x20;

`dotnet tool update --global wolvenkit.cli`

## Video Guide for launching CLI

{% embed url="<https://www.youtube.com/watch?v=cwjO_z8pr6A>" %}

## Processing files in bulk

To process multiple .archive files (for e.g. extracting duplicate textures), write yourself a batch file:

```batch
@echo off
setlocal

set "cli_path=C:\01_apps\Wolvenkit_CLI_8_15\Wolvenkit.CLI.exe"
set "modpath=F:\CyberpunkFiles\temp"

FOR %%F IN ("%modpath%\*.archive") DO (
    SET "baseName=%%~nF"
    "%cli_path%" uncook -p "%%F" -o "%modpath%\output"  REM -w *.xbm --uext png
    
    REM Move PNG files and preserve relative paths
    FOR /R "%modpath%\output" %%G IN (*.png) DO (
        SET "relPath=%%~pG"
        SETLOCAL enabledelayedexpansion
        SET "newDir=%modpath%\out\!baseName!\!relPath!"
        mkdir "!newDir!" >nul 2>&1
        move "%%G" "!newDir!"
        ENDLOCAL
    )
)

PAUSE
EXIT
```


---

# 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/wolvenkit/wolvenkit-cli/usage.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.
