project:validate

Validates the folder that contains the SuiteCloud project.

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

Syntax

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

          

Options

Option

Required / Optional

Description

--accountspecificvalues

Optional

Flag account-specific values as either a warning or an error. Enter WARNING or 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 Validation in SuiteCloud Projects.

--applyinstallprefs

Optional

Applies settings from the hiding.xml, locking.xml files, and overwriting.xml files. If you specify the option, the settings are applied, and if you do 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, as either a directory or a file name.

If it is a directory, a default log file is generated in the specified location.

Important:

If a log file already exists in the specified location, deployment log details are appended to that existing 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.

Interactive Example

The following command validates your current project using the interactive mode:

            suitecloud project:validate -i 

          

Before the command is executed, 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

The following command validates your current project using the non-interactive mode:

            suitecloud project:validate --applyinstallprefs T 

          

Output Example

When executed, the command produces 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

SuiteCloud CLI for Node.js Reference
account:savetoken
account:manageauth
account:setup
file:create
file:import
file:list
file:upload
object:import
object:list
object:update
project:adddependencies
project:create
project:deploy
project:package

General Notices