adddependencies

Adds missing dependencies to the manifest file.

Syntax

          adddependencies [-authid myNetSuiteDevRole]
    [-p FolderOrZipFile]
    [-all]
    [-feature FeatureName1:{optional|required} [FeatureName2:{optional|required}] [...]]
    [-file File1 [File2] [...]]
    [-object "appid=<appid>,scriptid=<scriptid1>"  "scriptid=<scriptid2>" "[Script3]" [...]] 

        

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.

-all

Optional

Adds all missing dependencies to the SuiteCloud project.

When specified, ensure that you do not use the -feature, -file, and -object options.

-feature

Optional

Specifies the feature dependency references to add to the SuiteCloud project.

Each reference is a name:value pair delimited by a space. For example:

                    CUSTOMRECORD:required ACCOUNTING:optional 

                  

When specified, ensure that you do not use the -all option.

-file

Optional

Specifies the files to add to the SuiteCloud project.

When specified, ensure that you do not use the -all option.

-object

Optional

Specifies the SDF custom objects to add to the SuiteCloud project.

When specified, ensure that you do not use the -all option.

Two object reference formats are supported.

The recommended format consists of attribute=value pairs. For example, the following is a SDF custom object reference to an object with a script ID of custobject_sample:

                    "scriptid=custobject_sample" 

                  

For SuiteApp projects, the attribute=value pair format is required. It must include script ID and application ID delimited by a comma.

For example:

                    "appid=com.netsuite.test01,scriptid=customrecordcrt01" "scriptid=customrecordcrt02" 

                  

-h or -help

Optional

Prints the help for this command.

Example

The following command updates the manifest file of a SuiteCloud project. The command adds dependencies on the CUSTOMRECORD feature, a file, and an SDF custom object.

          sdfcli adddependencies
    -authid myDevRole -p c:/project/
    -feature CUSTOMRECORD:required -file /js/test.js
         -object "scriptid=custobject_sample" 

        

When executed, the command prompts you to update the manifest file and produces output that is similar to the following:

          SuiteCloud Development Framework CLI (com.netsuite.ide.core_2021.1.0)
Manifest file will be updated to add the dependencies, do you want to continue?
Type YES to update the manifest file.
YES
Done. 

        

Related Topics

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

General Notices