uploadfiles

Uploads one or more files from a SuiteCloud project to your account's File Cabinet. If the folder with the files doesn’t already exist in the File Cabinet, it gets added to your account.

Syntax

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

        

Options

Option

Required / Optional

Description

-paths

Required

Specifies the file path or paths for the files you want to upload.

To upload multiple files, put a space between each path and wrap the whole argument in double quotes. For example: "/SuiteScripts/myscripts/sample.js".

Note:

The path has to start with a forward slash (/).

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

-h or -help

Optional

Prints the help for this command.

Example

Here's a command that 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