Gulp Commands for Extension Development in NetSuite

Utilize Gulp commands effectively for extension development in NetSuite, including creating, deploying, and managing custom extensions.

·2 min read·1 views·View Oracle Docs

TL;DR Opening

This article outlines the Gulp commands used for extension development in NetSuite, enabling developers to create and manage extensions efficiently. Understanding these commands can significantly streamline the development process and enhance customization capabilities.

What Are Gulp Commands for Extension Development?

Gulp is a powerful task runner that helps automate repetitive tasks in the development workflow. In NetSuite, Gulp commands specifically cater to extension developers by simplifying processes such as creation, updating, and deployment of extensions.

Key Gulp Commands

Here are the essential Gulp commands for extension development:

CommandDescription
gulp extension:createCreates an example extension with a baseline module and necessary folders for customizations.
gulp extension:create-modulePrompts for module information to create within a specified extension.
gulp extension:fetchDownloads the active theme and compiles resources, placing them in the Extras folder of the extension development directory.
gulp extension:localCompiles custom extension files into an application and starts a local server that watches for file changes.
gulp extension:deployCompiles and deploys extension files into the NetSuite File Cabinet, prompting for information if the extension has not been deployed before.
gulp extension:update-manifestUpdates the extension's manifest.json file without requiring a deployment.
gulp reactivateTriggers a reactivation process for all installed extensions and themes on the website.

Special Parameters

Some commands have additional parameters that modify their behavior:

  • --account: Use to specify the NetSuite account number for commands like fetch and deploy. This is particularly important for accounts with domain-specific setups, such as sandbox or production accounts.
  • --preserve-manifest: Prevents updating the manifest file when running local or deploy commands, which is useful when manual changes to the manifest have been made.
  • --skip-compilation: Bypasses compilation steps during deployment, which can expedite the process but may skip critical file checks.

Who This Affects

  • Developers: Individuals creating custom extensions on the NetSuite platform.
  • Administrators: Roles involved in setting up and maintaining the extension architecture in NetSuite.

Key Takeaways

  • Familiarizing yourself with the Gulp commands can streamline extension development processes in NetSuite.
  • It is crucial to understand the consequences of options like --skip-compilation and --preserve-manifest to avoid deployment issues.
  • Properly managing the extension manifest is essential for maintaining organizational standards in code management.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

What is the purpose of the 'gulp extension:create' command in NetSuite extension development?
The 'gulp extension:create' command is used to create an example extension with a baseline module and the necessary folders for customizations, simplifying the initial setup process for developers.
How can I specify a NetSuite account number when using Gulp commands?
You can specify a NetSuite account number by using the '--account' parameter with Gulp commands like 'fetch' and 'deploy', which is especially important for domain-specific setups like sandbox or production accounts.
What does the '--preserve-manifest' parameter do when running Gulp commands?
The '--preserve-manifest' parameter prevents updating the manifest file when running 'local' or 'deploy' commands, which is useful if you have made manual changes to the manifest that you do not want overwritten.
What happens if I use the '--skip-compilation' parameter during deployment in NetSuite?
Using the '--skip-compilation' parameter during deployment bypasses compilation steps, which can expedite the process but may also skip critical file checks, potentially leading to deployment issues.
Source: Extension Developer Gulp Commands Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in SuiteCloud Development Framework

View all SuiteCloud Development Framework articles →