Build a module

Build a module package with the pdk build command so that you can upload your module to the Forge.

  1. From the command line, change into the module's directory with cd <MODULE_NAME>

  2. Run pdk build and respond to any prompts.

    To change the behavior of the build command, add option flags to the command. For example, to create the package to a custom location, run pdk build --target-dir=<PATH> . For a complete list of command options and usage information, see the PDK command reference.

Results

PDK builds a package with the naming convention forgeusername-modulename-version.tar.gz to the pkg directory of the module.

What to do next

You can now upload your module to the Forge.