Configuring Pak

On startup, Pak reads configuration from a pakrc file. This file defines the default configuration for Pak.


The paks directory is the name of the local application sub-directory in which to store paks. The pakcache directory defines where to cache paks on the local system. The export directory is to where Pak will export installed package contents. The top directory refers to the current directory.


The Pak configuration may be modified by defining properties in a pakrc file or in the application's pak.json file. Pak locates a pakrc file by searching in order until it finds a suitable configuration file. This is the search order:

The pak.json is always loaded after any pakrc file. In this manner, the pak.json may override default configuration.

© Embedthis Software. All rights reserved.