importfiles

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.

Imports files from your NetSuite account to the account customization project.

Syntax

          sdfcli importfiles <-paths FileCabinetPath1 [FilePathCabinet2] [...]>
    <-authid AuthId>
    [-p FolderOrZipFile]
    [-excludeproperties] 

        

Options

Option

Required / Optional

Description

-paths

Required

Specifies the File Cabinet path or paths that have the files you want to import.

Important:

Wildcards are not supported.

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

-excludeproperties

Optional

Excludes the file and folder properties specified in your NetSuite account. If you specify this option, the .attributes folder is not created.

-h or -help

Optional

Prints the help for this command.

Example

Here's a command that imports a file from a NetSuite account into a specified SuiteCloud project:

sdfcli importfiles -paths "/SuiteScripts/test.js" -authid AuthId -p c:/project/

When you run the command, it prompts you to overwrite any existing files in your SuiteCloud project and produces output that is similar to the following:

          SuiteCloud Development Framework CLI (com.netsuite.ide.core_2021.1.0)
Existing files will be overwritten, do you want to continue? Type YES to continue.
YES
Done 

        

Related Topics

General Notices