Gulp Commands for Theme Development in NetSuite
Utilize Gulp commands for efficient theme development in NetSuite, including fetching, deploying, and validating themes.
TL;DR Opening
This article details Gulp commands that facilitate theme development in NetSuite. These commands enhance workflows by allowing developers to fetch, compile, and deploy theme assets seamlessly.
What Are Gulp Commands?
Gulp commands are powerful tools used in theme development within NetSuite. They enable developers to automate tasks like fetching theme files, compiling assets, and deploying changes to custom themes. Utilizing Gulp can significantly streamline the development process.
Key Gulp Commands for Theme Development
Here’s a breakdown of essential Gulp commands that theme developers should know:
gulp theme:fetch
Downloads the active theme and extension files (like Sass, HTML, and other assets) for the specified domain. This command requires prior activation of a theme in the Manage Extensions wizard within NetSuite.
-
Usage:
bashgulp theme:fetch -
Account Parameter: For accounts with account-specific domains, specify your account number:
bashgulp theme:fetch --account 123456For sandbox accounts:
bashgulp theme:fetch --account 123456-sb1
gulp theme:local
Compiles Sass and HTML template files into a functional application and starts a local server that watches for file changes.
-
Usage:
bashgulp theme:localOption:
--preserve-manifestallows manual manifest updates without automatic regeneration:bashgulp theme:local --preserve-manifest
gulp theme:deploy
Compiles files into the DeployDistribution folder and updates the theme manifest. This command offers various options:
-
Standard Deployment: Prompts for theme information:
bashgulp theme:deploy -
Account Parameter: Enables deployment to account-specific domains:
bashgulp theme:deploy --account 123456 -
Options:
--preserve-manifest: Deploy without updating the manifest.--create: Create a new theme instead of updating.
gulp theme:update-manifest
Updates the theme's manifest.json file without deploying:
gulp theme:update-manifestAdditional Commands
gulp validate: Validates the manifest.json file for accuracy.gulp clear: Cleans the DeployDistribution and LocalDistribution directories.gulp reactivate: Triggers reactivation of installed themes and extensions.
Considerations When Using Gulp
When using Gulp commands, it’s essential to follow best practices:
- Ensure that your themes and extensions are activated properly in NetSuite.
- Always validate the manifest files to avoid deployment errors.
- Use the appropriate account parameters for deployments, especially for sandbox and production environments.
Who This Affects
- Developers: Primarily those working on theme customization and extension development.
- Administrators: Responsible for managing NetSuite themes and deployment processes.
Key Takeaways
- Gulp commands are essential for automating theme development.
- Proper usage of the
--accountparameter is crucial for accessing specific NetSuite environments. - Validation and careful management of theme assets promote a smooth development workflow.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Do I need to activate themes in NetSuite before using the `gulp theme:fetch` command?
Can I deploy a theme to a sandbox account using `gulp theme:deploy`?
What does the `--preserve-manifest` option do in `gulp theme:local`?
What happens if I run `gulp theme:update-manifest` without deployment?
Was this article helpful?
More in General
- Field Service Management Enhancements and Bug Fixes for 2026
Overview of the 2026 Field Service Management SuiteApp updates showcasing enhancements and bug fixes.
- Example
Documentation article about Example
- Pass String Literals
Documentation article about Pass String Literals
- Manual Edits
Documentation article about Manual Edits
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category