deploy

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

The SuiteCloud project folder is compressed into a ZIP file before it is deployed. Only the files and folders referenced in the deploy.xml file are included in the ZIP file that is deployed.

Important:

For installation script, installation preference, and translation collection objects, files referenced within their xml structure are also deployed. Even if these files are not part of the deploy.xml file.

Syntax

          deploy [-authid myNetSuiteDevRole]
    [-p FolderOrZipFile]
    [-applyinstallprefs]
    [-l LogPathOrFile]
    [-np]
    [-v]
    [-sw]
    [-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.

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

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

For more information, see Account-Specific Values.

Important:

If the —accountspecificvalues option is not specified, the behavior is the same as passing ERROR as an argument.

-l

Optional

Specifies the deployment 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.

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

-np

Optional

Skips the preview step.

-v

Optional

Starts client-side project validation.

The deployment stops when any errors occur during this process.

-sw

Optional

Removes the warning prompted before deploying to a production account.

-h or -help

Optional

Prints the help for this command.

Example

The following command deploys a SuiteCloud project to an account and creates a log of the deployment process:

sdfcli deploy -authid myDevRole -p c:/project/ -l d:/path/test.log -np -v

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

          SuiteCloud Development Framework CLI (com.netsuite.ide.core_2021.1.0)
Enter password: 
Deploy "c:\project".
2021-04-02 11:08:23 (PST) Installation started
Info -- Account [(PRODUCTION) Wolfe Electronics]
Info -- Account Customization Project [Project]
Info -- Framework Version [1.0]
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
Begin deployment
2021-04-02 11:08:23 (PST) Installation COMPLETE (0 minutes 1 second)

Writing to log file d:\path\test.log. 

        

Related Topics

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

General Notices