Deploy to a NetSuite Sandbox

Commerce websites also let you deploy to a sandbox account. See NetSuite Sandbox and NetSuite Sandbox FAQ for more information about sandbox accounts.

Note:

Before deploying to your sandbox account, you should verify that the Commerce bundles are installed. You may also need to delete the .nsdeploy file if you previously deployed to an account other than the sandbox account. Deleting this file enables you to enter the login credentials for the sandbox account.

To deploy to a sandbox account:

  1. Go to your command line or terminal window.

  2. Enter the appropriate command for your environment from the top-level directory of the source files (the same directory used during the tools installation).

    • Theme developer tools: gulp theme:deploy

    • Extension developer tools: gulp extension:deploy

    • Core SuiteCommerce Advanced developer tools: gulp deploy

    If this is the first time you are deploying, the tools create a sub directory called DeployDistribution. The tools then compile the source files and output them to this directory.

    Note:

    If you have already created an authentication ID in a previous fetch or deploy operation, the developer tools do not prompt you for an ID and will continue to use the existing ID for each subsequent fetch or deploy. If you want to choose a different authentication ID or create a new one, use the --to parameter when you deploy. For more information, see Token Based Authentication.

  3. When prompted, enter the authentication ID that you use for your sandbox account.

  4. In NetSuite, select the sandbox account you want to deploy to and the role you want to use for authentication. Click the Allow button to generate the authentication token and secret.

    Note:

    You must specify a role that provides the permissions needed to deploy to NetSuite. By default, the Administrator and SCDeployer roles provide these permissions. To learn more, including how to create a custom role that provides the required permissions, see Developer Tool Roles and Permissions.

  5. When prompted, navigate to Web Site Hosting Files for your Commerce installation:

    • SuiteCommerce: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. - SCS

    • SuiteCommerce Advanced: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. - SCA <version> Development

After you enter your connection settings, the contents of the DeployDistribution folder on your local system are uploaded to the NetSuite file cabinet of your sandbox account. This process may take a few minutes. Wait for the process to complete before proceeding.

Related Topics

General Notices