listfiles

Note:

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.

Lists the files in the File Cabinet of your NetSuite account.

Syntax

          sdfcli listfiles <-authid AuthId>
    <-folder FileCabinetPath1 [FileCabinetPath2] [...]> 

        

Options

Option

Required / Optional

Description

-folder

Required

Specifies the File Cabinet folder that contains the files to list.

It also lists files in any subfolders.

-authid

Required

References the custom alias you give to a specific account-role combination.

-h or -help

Optional

Prints the help for this command.

Example

Here's a command that lists the files in your NetSuite's account File Cabinet:

sdfcli listfiles -folder "/SuiteScripts" -authid AuthId

When you run the command, it produces an output that is similar to the following:

          SuiteCloud Development Framework CLI (com.netsuite.ide.core_2021.1.0)
/SuiteScripts/file1.js
/SuiteScripts/file2.js
/SuiteScripts/file3.js
/SuiteScripts/file4.js
/SuiteScripts/RunTimeFiles/document.pdf
/SuiteScripts/RunTimeFiles/data.csv
/SuiteScripts/RunTimeFiles/log.txt
/SuiteScripts/RunTimeFiles/sample.txt
/SuiteScripts/RunTimeFiles/test.xml 

        

Related Topics

General Notices