# 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](https://wiki.redmodding.org/wolvenkit/wolvenkit-cli/usage/settings "mention")&#x20;
* [command-list](https://wiki.redmodding.org/wolvenkit/wolvenkit-cli/usage/command-list "mention")
* &#x20;[textures-cli](https://wiki.redmodding.org/wolvenkit/wolvenkit-cli/usage/textures-cli "mention")
* [video-and-audio-files-cli](https://wiki.redmodding.org/wolvenkit/wolvenkit-cli/usage/video-and-audio-files-cli "mention")

## 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
```
