Skip to main content

Upload your code

The rootsdk upload command deploys your code to the Root cloud. You must provide the package file path and a valid authentication token. You get your authentication token from Root Developer Portal.

Installation

Include the tool in your project by adding the following to your package.json:

{
"devDependencies": {
"@rootsdk/dev-tools": "*"
}
}

Usage

rootsdk upload package [options]

Options

FlagDescriptionRequiredDefault
-f, --file <file>Path to the package file to upload.Yes
-a, --auth-token <token>Authentication token for the upload.Yes

Example

Upload a package file to the Root cloud:

rootsdk upload package \
--file ./dist/rootapp-1-2-3.pkg \
--auth-token $TOKEN