# How to use unrealpak.exe to build pak

**URL:** <https://forums.unrealengine.com/t/how-to-use-unrealpak-exe-to-build-pak/403533>\
**Category:** Platform & Builds\
**Tags:** build, unreal-engine, UE4, CPP, question\
**Created:** [September 2, 2017, 10:30am UTC](https://forums.unrealengine.com/t/how-to-use-unrealpak-exe-to-build-pak/403533 "2017-09-02T10:30:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_10b75a231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_10b75a231](https://forums.unrealengine.com/u/anonymous_user_10b75a231)\
**Post date:** [February 8, 2018, 5:43am UTC](https://forums.unrealengine.com/t/how-to-use-unrealpak-exe-to-build-pak/403533/2 "2018-02-08T05:43:24Z")

</div>

If you run UnrealPak.exe without any parameters, it shows this usage:

```
Usage:
UnrealPak <PakFilename> -Test
UnrealPak <PakFilename> -List
UnrealPak <PakFilename> <GameUProjectName> <GameFolderName> -ExportDependencies=<OutputFileBase> -NoAssetRegistryCache -ForceDependsGathering
UnrealPak <PakFilename> -Extract <ExtractDir>
UnrealPak <PakFilename> -Create=<ResponseFile> [Options]
UnrealPak <PakFilename> -Dest=<MountPoint>
UnrealPak GenerateKeys=<KeyFilename>
UnrealPak GeneratePrimeTable=<KeyFilename> [-TableMax=<N>]
UnrealPak <PakFilename1> <PakFilename2> -diff
UnrealPak -TestEncryption
Options:
  -blocksize=<BlockSize>
  -bitwindow=<BitWindow>
  -compress
  -encrypt
  -order=<OrderingFile>
  -diff (requires 2 filenames first)
  -enginedir (specify engine dir for when using ini encryption configs)
  -projectdir (specify project dir for when using ini encryption configs)
  -encryptionini (specify ini base name to gather encryption settings from)
  -encryptindex (encrypt the pak file index, making it unusable in unrealpak without supplying the key)

```

In your case, you would want to run:

```
> Engine\Binaries\Win64\UnrealPak.exe X:\dest\somepak.pak -Create=X:\source\ -compress

```

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-use-unrealpak-exe-to-build-pak/403533)._
