roku-cli
v0.3.18
Published
Roku CLI Build tools
Downloads
18
Readme
roku-cli
A CLI tool for signing Roku packages
Installation
$ npm install -g roku-cliSupported commands are:
$ roku deployDeploy the given project to the Roku device
Arguments:
-por--path- path to the roku project
$ roku signDeploys, rekey the device (if needed) with the given signing credentials file and signs the package.
Arguments:
-nor--name- application package name (without .pkg). defaults to 'app'-por--path- path to the roku project-sor--signing- path to signing properties folder. This folder must be a folder containing the previous .pkg file and a signing credentials file.-oor--output- path to where the package should be saved. defaults to current working directory. defaults to working directory.
$ roku rekeyRekeys a given Roku device by reading the dev_id and password in the given signing properties file.
Arguments:
-sor--signing- path to signing properties folder. This folder must be a folder containing the previous .pkg file and a signing credentials file.
$ roku create-signing-credentialsCreates a signing credentials file and a dummy package to be used for future package signing.
Arguments:
-nor--name- output package filename-oor--output- path to where signing properties should be saved. defaults to working directory.
What is a signing credentials file?
A signing credentials file is a file in the following format:
{
"dev_id":"aca142f48ff0178977d45f34311eb2e87641626e0",
"password":"G+3xm/Nr7VR33iqzcXQSDQ=="
}It is a simple way to store and reuse the signing properties required by Roku package generation.
All commands supports passing the following parameters:
-dor--device- sets the network address of the Roku device-uor--user- sets the user of the Roku device. defaults torokudev-wor--password- sets the password of the Roku device
Also, device properties can be passed by setting the following environment variables:
ROKU_DEVICE_ADDRESS, ROKU_DEVICE_USERNAME and ROKU_DEVICE_PASSWORD
