Edit Extension Manifest Templates for NetSuite Development
Learn how to edit extension manifest templates to compile resources for your NetSuite project effectively.
Your extension's Workspace directory includes a manifest.json file, which includes all the information required to compile resources for the extension.
../Workspace/<EXTENSION_DIRECTORY>/manifest.json
This file is auto-generated when you execute the gulp extension:create command and includes all JavaScript, JSON, SuiteScript, HTML templates, Sass, and assets required to compile and activate your extension.
Manual Edits
This file lists all JavaScript, JSON, SuiteScript, HTML templates, Sass, and assets related to your extension. Although this file is automatically generated, you may need to update it manually if adding Sass entry points for any newly introduced Sass files or changing CCT labels.
Warning:
Potential data loss. Besides compiling and deploying your extension to a local server, the gulp extension:local and gulp extension:deploy commands update the extension's manifest.json file and overwrites any manual changes you made to this file.
To preserve manual changes to manifest.json use the following commands to test your extension locally or deploy to NetSuite:
-
gulp extension:local --preserve-manifest -
gulp extension:deploy --preserve-manifest
Extension Metadata
The first entries in the manifest file include metadata about the extension itself. These fields are automatically populated when you initially run the gulp extension:create command.
1{2 "name": "MyCoolExtension",3 "fantasyName": "My Cool Extension!",4 "vendor": "Acme",5 "type": "extension",6 "target": "SCA,SCS",7 "target_version": {8 "SCA": "19.2.0",9 "SCS": "19.2.0"10 },11 "version": "1.0.0",12 "description": "My cool extension does magic!",13 //...-
name(string) - uniquely identifies the name of the extension. This field is required. This must be alphanumeric characters without spaces. -
fantasyName(string) - identifies the label for the extension. This field can include special characters. -
vendor(string) - identifies the vendor as a string. This field is required. -
type(string) - indicates the type as an extension. This field is required. -
target(comma-separated string) - indicates the SuiteCommerce or SCA applications supported by the extension. This field is required. -
target_version( array) - indicates the SuiteCommerce or SCA application versions supported by the extension. This field is required. -
version(string) - indicates the version of the extension, such as 1.0.0. This field is required. -
description(string) - provides a description of the extension as it appears in NetSuite. This field is optional.
Important:
To take advantage of extension update requirements, version numbers should follow this format, where d is a single digit: dd.dd.dd.
Assets
The assets object defines paths to the images and fonts located in the extension directory's assets folder. This defines an array for each image and font used. These paths are relative to the extension's assets folder path. Extensions treat services as assets. These are created on NetSuite servers when you activate/deploy your extension.
If the extension developer tools detect a file name with the pattern XYZ.ServiceController.js, they create the service (.ss) file and add a reference in the manifest. Later, when you activate the extension, the .ss file deploys to the backend as an asset.
1//...2"assets": {3 "img": {4 "files": []5 },6 "fonts": {7 "files": []8 },9 "services": {10 "files": [11 "services/MyCoolModule.Service.ss",12 "services/AdditionalCoolModule.Service.ss"13 ]14 }15},16//...Configuration
The configuration object defines paths to the JSON files in your extension directory's Configuration folder.
1//...2"configuration": {3 "files": [4 "Modules/MyCoolModule/Configuration/MyCoolModule.json",5 "Modules/AdditionalCoolModule/Configuration/AdditionalCoolModule.json"6 ]7},8//...Templates
The templates object lists all HTML template files included in the extension by application. The application object includes one object per application (shopping, myaccount, and checkout). Each application lists each file in the files array.
1//...2"templates": {3 "application": {4 "shopping": {5 "files": [6 "Modules/MyCoolModule/Templates/acme_mycoolextension_mycoolmodule_list.tpl",7 "Modules/MyCoolModule/Templates/acme_mycoolextension_mycoolmodule_edit.tpl",8 "Modules/AdditionalCoolModule/Templates/acme_mycoolextension_additionalcoolmodule_list.tpl",9 "Modules/AdditionalCoolModule/Templates/acme_mycoolextension_additionalcoolmodule_edit.tpl"10 ]11 },12 "myaccount": {13 "files": [14 "Modules/MyCoolModule/Templates/acme_mycoolFrequently Asked Questions (4)
In which applications can the template files be used?
What structure does the 'templates' object follow in a NetSuite extension?
Are the template files specific to each application in a NetSuite extension?
How are template files organized within the 'templates' object?
Was this article helpful?
More in General
- Email Notification Controls for Imports in NetSuite 2023
Email notification controls enhance NetSuite imports, improving alerts based on user preferences and permissions.
- NetSuite 2026.1: Enhancements to Consolidated Reports and SuiteQL
NetSuite 2026.1 introduces new consolidated reports and SuiteQL tool for improved reporting and data integrity.
- Release Notes PDF Availability and Translations in NetSuite
NetSuite provides PDF files for each Release Note update, improving accessibility and user experience.
- Advanced Record Customization (ARC) Enhancements in NetSuite
Advanced Record Customization (ARC) in NetSuite 2026.2 enhances record management with AI description features and overrides.
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category