file:list
Lists the files in your account's File Cabinet.
Note:
You can't list the files from a SuiteApp.
Syntax
file:list <--folder FileCabinetPath1>
Options
Option |
Required / Optional |
Description |
---|---|---|
--folder |
Required |
Specifies the File Cabinet path that contains the files to list. For example, All files in subfolders are included too. |
-i or--interactive |
Optional |
Runs the command in interactive mode. |
-h or --help |
Optional |
Prints the help for this command. |
Interactive Example
Here's a command that lists the files in a specific folder using interactive mode:
suitecloud file:list -i
Before you run the command, you'll be prompted with these questions:
Select the File Cabinet folder for which you want to get a file list. All files within subfolders will be included in the listing.
(*) \SuiteScripts
( ) \SuiteScripts\RunTimeFiles
Non-interactive Example
Here's a command that lists the files in the SuiteScripts folder of your account's File Cabinet:
suitecloud file:list --folder "/SuiteScripts"
Output Example
When you run the command, it produces an output that is similar to the following:
The following files were found in your account:
/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