validate
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.
Validates the folder or ZIP file with your SuiteCloud project.
Syntax
sdfcli validate <-authid AuthId>
[-p FolderOrZipFile]
[-applyinstallprefs]
[-l LogFile]
[-server]
[-accountspecificvalues (WARNING|ERROR)]
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 |
Indicates whether installation preferences should be applied. For more information, see Installation Preferences in the SuiteApp of SuiteCloud Project. |
|
-accountspecificvalues |
Optional |
Indicates how to handle 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, you'll get a warning. If the argument value is ERROR and there are account-specific values in the project, you'll get an error. For more information, see Account-Specific Values Validation in SuiteCloud Projects. |
|
-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 created there by default. Validation log details are added to the end of the file. |
|
-server |
Optional |
Indicates that validation should be performed on the server. You have to be authenticated to do this. If you don't use this option, client-side validation is performed. |
|
-h or -help |
Optional |
Prints the help for this command. |
Example
Here's a command that performs a server-side validation on a project folder:
sdfcli validate -authid AuthId -p c:/project/ -l d:/path/test.log -server
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)
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
Here's a command that performs a client-side validation on a project folder:
sdfcli validate -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)
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
- authenticateci
- createfile
- createproject
- deploy
- importbundle
- importconfiguration
- importfiles
- importobjects
- listbundles
- listconfiguration
- listfiles
- listmissingdependencies
- listobjects
- manageauth
- package
- preview
- project
- update
- updatecustomrecordwithinstances
- uploadfiles
- uploadfolders