project:validate

Validates the folder with your SuiteCloud project.

If you run suitecloud project:validate with no options, the project is validated locally without applying installation preferences and account-specific values are ignored.

Syntax

            project:validate [--applyinstallprefs] [--server] [--accountspecificvalues (WARNING|ERROR)] 

          

Options

Option

Required / Optional

Description

--accountspecificvalues

Optional

Flags account-specific values as either a warning or an error. Enter WARNING or ERROR.

If you set the argument value is to WARNING and there are account-specific values in the project, you'll get a warning but deployment will continue.

If you set the argument value to ERROR and there are account-specific values in the project, you'll get an error and deployment will stop.

For more information, see Account-Specific Values Validation in SuiteCloud Projects.

--applyinstallprefs

Optional

Applies settings from the hiding.xml, locking.xml, and overwriting.xml files. If you use this option, the settings are applied; if not, they are ignored.

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

-i or --interactive

Optional

Runs the command in interactive mode.

-l or --log

Optional

Sets the deployment log file location, either as a directory or a file name.

If you specify a directory, a default log file is created in that location.

Important:

If a log file already exists in that location, deployment 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.

Interactive Example

Here's a command that validates your current project using the interactive mode:

            suitecloud project:validate -i 

          

Before you run the command, the following questions are prompted:

            How do you want to validate your project? > Against account Locally
Do you want to apply installation preferences? > Yes No
What do you want to do if the project contains account-specific values? > Ignore the account-specific values Display a warning Cancel the process 

          

Non-interactive Example

Here's a command that validates your current project using the non-interactive mode:

            suitecloud project:validate --applyinstallprefs T 

          

Output Example

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

            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 -- Success
Validate Custom Objects against the Account - Success
Validate file cabinet items against the account - Success The validation process has finished successfully. 

          

Related Topics

General Notices