adddependencies
SuiteCloud CLI for Java has reached end of support. The final available version is 2025.2. Oracle no longer provides new releases, features, or issue fixes. The CLI will remain available for download until the NetSuite 2027.1 release. Transition to SuiteCloud CLI for Node.js, SuiteCloud Extension for Visual Studio Code, or SuiteCloud IDE Plug-in for WebStorm.
Adds any missing dependencies to the manifest file.
Syntax
sdfcli 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:
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
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:
|
|
-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
- SuiteCloud CLI for Java Commands
- authenticate
- authenticateci
- createfile
- createproject
- deploy
- importbundle
- importconfiguration
- importfiles
- importobjects
- listbundles
- listconfiguration
- listfiles
- listmissingdependencies
- listobjects
- manageauth
- package
- preview
- project
- update
- updatecustomrecordwithinstances
- uploadfiles
- uploadfolders
- validate