Commerce websites allow you to deploy to a sandbox account. For details about sandbox accounts, refer to NetSuite Sandbox and NetSuite Sandbox FAQ.
Before deploying, make sure the Commerce bundles are installed. If you previously deployed to a different account, delete the . nsdeploy file to input the sandbox account’s login credentials.
To deploy, open your command line or terminal window. Use the appropriate command from the source files’ top-level directory:
– For theme developer tools, enter: gulp theme:deploy
– For extension developer tools, enter: gulp extension:deploy
– For Core SuiteCommerce Advanced developer tools, enter: gulp deploy
If deploying for the first time, the tools will create a DeployDistribution folder, compile source files, and output them there. If you have an existing authentication ID, the tools will use that for further fetch or deploy operations. To use a different ID, apply the –to parameter.
Enter the authentication ID for your sandbox account, select the relevant sandbox account and role, then click Allow to generate the authentication token and secret. Ensure you choose a role with deployment permissions; Administrator and SCDeployer roles typically have these.
Navigate to Web Site Hosting Files for your Commerce installation:
– For SuiteCommerce: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. – SCS
– For SuiteCommerce Advanced: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. – SCA Development
After inputting your connection settings, the contents of the DeployDistribution folder will upload to your sandbox account’s NetSuite file cabinet. This may take a few minutes, so wait for the process to finish before continuing.