preview

Note:

SuiteCloud CLI for Java has reached end of support. The final available version is 2025.2. Oracle no longer provides new releases, features, or issue fixes. The CLI will remain available for download until the NetSuite 2027.1 release. Transition to SuiteCloud CLI for Node.js, SuiteCloud Extension for Visual Studio Code, or SuiteCloud IDE Plug-in for WebStorm.

Previews the deployment steps of a folder or ZIP file with your SuiteCloud project.

The SuiteCloud project gets zipped before previewing.

Syntax

          sdfcli preview <-authid AuthId> 
[-p FolderOrZipFile]
[-applyinstallprefs]
[-l LogPathOrFile] 

        

Options

Option

Required / Optional

Description

-authid

Required

References the custom alias you give to a specific account-role combination.

-p

Required when a default project has not been specified by the project command or when you want to specify a project other than the default. For more information, see project.

References the folder or ZIP file with your SuiteCloud project.

-applyinstallprefs

Required when locking.xml, hiding.xml, and overwriting.xml exist in the InstallationPreferences folder of a SuiteApp project.

Indicates whether installation preferences should be applied.

For more information, see Installation Preferences in the SuiteApp of SuiteCloud Project.

-l

Optional

Specifies the preview log file location as a directory path or a file name.

If you specify a directory, the log file is created there by default.

Previews log details are added to the end of the file.

-h or -help

Optional

Prints the help for this command.

Example

Here's a command that previews deployment steps for your SuiteCloud project and stores them in a log file:

sdfcli preview -authid AuthId -p c:/project/ -l d:/path/test.log

When you run the command, it produces an output that is similar to the following:

          SuiteCloud Development Framework CLI (com.netsuite.ide.core_2021.1.0)
Preview "c:\project".
Validate manifest -- Success
Validate deploy file -- Success
Validate configuration -- Success
Validate script file -- Success
Validate objects -- Success
Validate resource files -- Success
Validate account settings -- Success
Deployment preview
Upload file -- ~/FileCabinet/SuiteScripts/UserEventScript.js 

        

Related Topics

General Notices