file:upload

Uploads files from your project to an account.

Syntax

            file:upload [--paths "/SuiteScripts/File.js"] 

          

Options

Option

Required / Optional

Description

-i or --interactive

Optional

Runs the command in interactive mode.

--paths

Optional

Specifies the File Cabinet paths of the files to upload.

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

-h or --help

Optional

Prints the help for this command.

Interactive Example

The following command uploads files from the current project to your account using the interactive mode:

            suitecloud file:upload -i 

          

Before the command is executed, the following questions are prompted for a SuiteApp:

            Select the folder from where you want to upload files to the File Cabinet: > \SuiteScripts \Templates (Restriced Folder) \Templates\E-mail Templates (No Files) \Templates\Marketing Templates (No Files) \Web Site Hosting Files (No Files)
Select the files you want to upload to the File Cabinet: (*) /SuiteScripts/myFile.js ( ) /SuiteScripts/myOtherFile.js (*) /SuiteScripts/SuiteScriptFile.js
The selected files will be overwritten in the File Cabinet. Do you want to continue? > Yes No 

          

Non-interactive Example

The following command uploads two files, myFile.js and SuiteScriptFile.js, into a project using the non-interactive mode.

            suitecloud file:upload --paths "/SuiteScripts/myFile.js" "/SuiteScripts/SuiteScriptFile.js" 

          

Output Example

When executed, the command produces output that is similar to the following:

            The following files were uploaded:
/SuiteScripts/myFile.js
/SuiteScripts/SuiteScriptFile.js 

          

Related Topics

SuiteCloud CLI for Node.js Reference
account:savetoken
account:manageauth
account:setup
file:create
file:import
file:list
object:import
object:list
object:update
project:adddependencies
project:create
project:deploy
project:package
project:validate

General Notices