An all in one tool for converting all sorts of files from Nier Automata.
| Extracting | Repacking | |
|---|---|---|
| CPK | ✅ | ❌ | 
| DAT | ✅ | ✅ | 
| PAK | ✅ | ✅ | 
| BXM | ✅ | ✅ | 
| YAX | ✅ | ✅ | 
| Ruby (BIN) | ✅ | ✅ | 
| WTA | ✅ | ❌ | 
| WTP | ✅ | ❌ | 
| BNK | ✅ | ✅ | 
| WEM/WAV | ✅ | ✅ | 
| .Z | ✅ | ❌ | 
Download the latest version from the releases section
You will primarily only be using Drag & Drop. The Command line is only rarely needed.
Just drag & drop any supported file onto the .exe and it will convert it for you. The output will be in the same folder as the input file.
nier_cli_demo_edited_4.mp4
Unpack CPK file to specific destination
nier_cli "G:\Games\steamapps\common\NieRAutomata\data\data100.cpk" -o "D:\modding\na\data100.cpk_unpacked"Unpack several CPK files and also unpack all DAT files and all their children
nier_cli "G:\Games\steamapps\common\NieRAutomata\data\data015.cpk" "G:\Games\steamapps\common\NieRAutomata\data\data100.cpk" --autoExtractChildrennier_cli <input1> [input2] [input...] [options]
  or
nier_cli <input> -o <output> [options]
Options:
-o, --output                 Output file or folder
Extraction Options:
    --folder                 Extract all files in a folder
-r, --recursive              Extract all files in a folder and all subfolders
    --autoExtractChildren    When unpacking DAT, CPK, PAK, etc. files automatically process all extracted files
WAV to WEM Conversion Options:
    --wwiseCli               Path to WwiseCLI.exe
    --wemBGM                 Use music/BGM settings
    --wemVolNorm             Enable volume normalization
Extraction filters:
    --CPK                    Only extract CPK files
    --DAT                    Only extract DAT files
    --PAK                    Only extract PAK files
    --BXM                    Only extract BXM files
    --YAX                    Only extract YAX files
    --RUBY                   Only extract RUBY files
    --WTA                    Only extract WTA files
    --WTP                    Only extract WTP files
    --BNK                    Only extract BNK files
    --WEM                    Only extract WEM files
-h, --help                   Print this help message
You can also save your most used parameters in the config.txt file. Each line is one parameter. You can find examples and presets in the configExamples\config_XYZ.txt files.
- 
Install the Dart SDK (it's already included in the Flutter SDK)
 - 
Download git submodules with
git submodule update --init
 - 
Update dependencies with
flutter pub get
 - 
Build with
dart compile exe bin\nier_cli.dart