adddependencies

Adds any missing dependencies to the manifest file.

Syntax

          adddependencies [-authid AuthId]
    [-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

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 that contains your SuiteCloud project.

-all

Optional

Adds all missing dependencies to your SuiteCloud project.

When specified, ensure that you don't use the -feature, -file, and -object options.

-feature

Optional

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

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

                    CUSTOMRECORD:required ACCOUNTING:optional 

                  

When specified, ensure that you don't use the -all option.

-file

Optional

Specifies the files to add to your SuiteCloud project.

When specified, ensure that you don't use the -all option.

-object

Optional

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

When specified, ensure that you don't use the -all option.

You can use two formats for object references.

The preferred format uses attribute=value pairs. For example, here's a reference to an SDF custom object with a script ID of custobject_sample:

                    "scriptid=custobject_sample" 

                  

For SuiteApp projects, you have to use the attribute=value pair format, and include both the script ID and application ID, separated by a comma.

For example:

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

                  

-h or -help

Optional

Prints the help for this command.

Example

Here's a command that updates the manifest file of a SuiteCloud project. It adds dependencies on the CUSTOMRECORD feature, a file, and an SDF custom object.

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

        

When you run the command, it 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

General Notices