Skip to content

Command line

rpfview-cli: extract weapons.meta and any game file

rpfview-cli finds and extracts game files from scripts. One command pulls every weapon metadata file of the base game, the update and all DLC packs in under a second.

  • rpfview-cli.exe
  • weapons.meta

Overview

Windows PowerShell

Example: rpfview-cli extract-weapon-metas reports “453 file(s) extracted to D:\work\weapon-metas in 0.2 s. Searched 179 archive(s).”

  • Installed next to the app. It uses the game folder and keys already set up in the app.
  • rpfview-cli extract-weapon-metas: extracts all weapon metadata of the base game, the update and every DLC pack in under a second:
    • weapons.meta, per-weapon DLC files, components, animations, archetypes, vehicle weapons, loadouts, pickups;
    • about 450 files, keeping the game's folder structure.
  • rpfview-cli extract "<pattern>" --out <folder> and rpfview-cli find "<pattern>" find and extract any files by name.
  • Read-only towards the game; it never writes into the game folder. Good for scripts and AI agents.

Full syntax, options and exit codes are in the rpfview-cli reference.

Questions

What does the command line do?

rpfview-cli.exe is installed next to the app and uses the game folder and keys you already set up. rpfview-cli extract-weapon-metas extracts all weapon metadata of the base game, the update and every DLC pack (about 450 files) in under a second, and extract and find locate and extract any files by name.

It is read-only towards the game, so it is a good fit for scripts and AI agents. See the command-line documentation.

Where do the encryption keys come from? Is this legal and safe?

The game's archives are encrypted. RPFView ships no Rockstar keys. On first start it derives them once from your own copy of GTA5.exe.

The second key part comes from CodeWalker's public magic.dat. RPFView downloads it from CodeWalker's GitHub repository only after you tick a consent box, or you can pick a local copy instead. The keys are verified against your game and cached on your PC, so later starts need nothing. See keys and first start.

All frequently asked questions

More RPFView features

All featuresDownload RPFView