Skip to content

Command line

Automate GTA V, RDR2 and GTA IV file work from the command line

For people who automate their work: rpfview-cli finds, copies and searches game files without opening the app, for GTA V, Red Dead Redemption 2 and GTA IV. It turns game data files into readable XML, saves textures and 3D models, lists the game's text, and gets every weapon file of GTA V with one command in under a second.

  • rpfview-cli.exe
  • weapons.meta

Full rpfview-cli reference →

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).”

  • Comes with RPFView and uses the game folder and keys you set up in the app.
  • rpfview-cli extract-weapon-metas copies all GTA V weapon files of the base game, the update and every DLC pack in under a second:
    • weapons.meta, the weapon files of every DLC pack, attachments, animations, vehicle weapons, loadouts and pickups;
    • about 450 files, in the game's folder structure.
  • find and extract find and copy any files by name or by their place in the game, for example only from one DLC pack.
  • convert turns .ymt, .ymap, .ytyp and .meta files into readable XML; grep searches inside them.
  • export-textures saves textures as DDS or PNG images; export-model saves models as glTF or OBJ files with their textures, for Blender and other 3D tools.
  • text-dump lists the game's text, for example the display name of every vehicle and weapon, as a table for a spreadsheet or a script.
  • ls, cat and info look inside archives and describe a file: its textures, or a model's detail levels and bones.
  • hash and unhash translate between names and the numbers the game uses for them; names import teaches RPFView your own names.
  • It never changes the game. With --json its results are easy to read for scripts and AI agents.

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

Questions

What does the command line do?

It's for people who automate their work. rpfview-cli comes with RPFView and works without opening the app: it finds and copies game files, turns game data files such as .ymt and .meta into readable XML, searches inside them, saves textures and 3D models, and lists the game's text, for GTA V, Red Dead Redemption 2 and GTA IV. One command gets all of GTA V's weapon files (about 450) in under a second.

It uses the game folder and keys you set up in the app and never changes the game. See the command-line documentation.

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

The game's archives are locked (encrypted), and keys open them. RPFView doesn't include any Rockstar keys. On the first start it works them out from your own copy of the game.

For that it also needs magic.dat, a small public file from CodeWalker, a well-known GTA V modding tool. RPFView downloads it only when you click Download and set up, or you can pick a copy you already have. The keys are then saved on your PC, so later starts need nothing. See keys and first start.

All frequently asked questions

More RPFView features

All featuresDownload RPFView