Create Additional Modules for an Extension

This topic applies to

Applies to

Commerce Web Stores


The gulp extension:create command builds an extension with one baseline module. However, if your extension requires more than one module, the developer tools let you create more using the —module attribute.

To add an additional module to your baseline extension:

  1. Create a baseline extension, if you have not done so already. See Create a Baseline Extension for details.

  2. Open a command line or terminal.

  3. Access the top-level extension development directory you created when you installed the extension developer tools.

  4. Enter the following command:

    gulp extension:create-module

  5. When prompted, enter the following information:


    Unless otherwise directed, create all entries using only alphanumeric characters without spaces.

    • Set the Module Name – Name the module to be created as part of the baseline extension. Use only alphanumeric characters without spaces.

    • For This Module You Will Be Using – Select one or more file types your extension requires. Your options are: JavaScript, SuiteScript, Templates, Sass, and Configuration files.

      An asterisk (*) identifies a selected option. Press the spacebar to select. Use arrow keys to scroll. Press the A key to select all. Press the I key to invert your selections.

  6. Repeat these steps to add any additional modules as needed.


NetSuite imposes certain record limits to control the consumption of web services. To avoid errors related to record limits when deploying themes and extensions, limit the number of files and folders at the same level to 100 when developing themes and extensions. Some options include introducing images across multiple folders and placing custom modules in a different top-level directory. For more information on record limiting, see Web Services Governance Overview.

When you have completed building baseline extension files in your developer environment, you are ready to develop your extension. See Extensions for details.