uploadfiles

Uploads one or several files from a SuiteCloud project to the File Cabinet in your account. The folder containing the files to upload is added to the account, if it did not already exist in the File Cabinet.

Syntax

          uploadfile [-authid AuthId]
    [-project FolderOrZipFile]  
    <-paths FilePath1 [FilePathCabinet2] [...]> 

        

Options

Option

Required / Optional

Description

-paths

Required

Specifies the file path or paths that contain the files to upload.

To specify multiple paths, enter a space between paths and enclose the entire argument in double quotes. For example, "/SuiteScripts/myscripts/sample.js" "/SuiteScripts/morescripts/sample2.js"

Note:

The path must start with a forward slash mark (/).

-authid

Required

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

-project

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 the SuiteCloud project.

-h or -help

Optional

Prints the help for this command.

Example

The following command uploads a file from a SuiteCloud project into an account:

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

Related Topics

General Notices