validate

Validates the folder or zip file that contains the SuiteCloud project.

Syntax

          validate  [-authid myNetSuiteDevRole]
    [-p FolderOrZipFile]
    [-applyinstallprefs]
    [-l LogFile]
    [-server]
    [-accountspecificvalues (WARNING|ERROR)] 

        

Options

Option

Required / Optional

Description

-authid

Optional

If you do not specify it, the default account is used.

References the custom alias you gave 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 that contains the 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 a SuiteApp Project

-accountspecificvalues

Optional

Indicates how to handle the presence of account-specific values in an account customization project. The default value is ERROR.

If the argument value is WARNING and there are account-specific values in the project, a warning message is thrown.

If the argument value is ERROR and there are account-specific values in the project, and error message is thrown.

For more information, see Account-Specific Values.

-l

Optional

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

If you specify a directory, the log file is generated in the specified location by default.

Validation log details are appended to the end of the file.

-server

Optional

Indicates that validation should be performed on the server. The user must be authenticated to execute this action.

When not specified, client-side validation is performed.

-h or -help

Optional

Prints the help for this command.

Example One

The following command performs a server-side validation on a project folder:

sdfcli validate -authid myDevRole -p c:/project/ -l d:/path/test.log -server

When executed, the command produces output that is similar to the following:

          SuiteCloud Development Framework CLI (com.netsuite.ide.core_2021.1.0)
Validating using account (0000001).
Validate manifest -- Success
Validate deploy file -- Success
Validate configuration -- Success
Validate script file -- Success
Validate objects -- Success
Validate resource files -- Success
Validate account settings -- Failed
*** ERROR ***

Validation of account settings failed.

An error occurred during account settings validation.
Details: The manifest contains a dependency on customrecord_tutorial object, but it is not in the account.

No errors found.
Writing to log file C:\path\test.log. 

        

Example Two

The following command performs a client-side validation on a project folder:

sdfcli validate -authid myDevRole -p c:/project/ -l d:/path/test.log

When executed, the command produces output that is similar to the following:

          SuiteCloud Development Framework CLI (com.netsuite.ide.core_2021.1.0)
Validating using client-side SDF metadata.
Updating SDF metadata.
SDF metadata updated.
Warnings for file c:\sdfprojects\SDFTutorialFromHelp\Objects\customrecord_tutorial.xml.
    - Line No. 13 - Error Message: The "enabledle" field depends on the "EXTREMELIST" feature.
      The manifest must define the "EXTREMELIST" feature as required or Optional
    - Line No. 15 - Error Message: The "enablemailmerge" field depends on the "MAILMERGE" feature.
      The manifest must define the "MAILMERGE" feature asrequired or Optional
Writing to log file C:\path\test.log. 

        

Related Topics

SuiteCloud CLI for Java Commands
adddependencies
authenticate
createproject
deploy
importbundle
importconfiguration
importfiles
importobjects
listbundles
listconfiguration
listfiles
listmissingdependencies
listobjects
manageauth
package
preview
project
update
updatecustomrecordwithinstances
uploadfiles
uploadfolders

General Notices