Kopytko CLI
The Kopytko CLI is a command-line interface tool which helps developers to build and maintain applications for Roku devices.
Kopytko CLI is part of Kopytko Roku Ecosystem which consists of:
- Kopytko Framework - declarative framework for Roku SceneGraph,
- Kopytko Utils - a collection of modern utility functions for Brightscript applications,
- Kopytko Packager - a package builder for the Roku platform,
- Kopytko Unit Testing Framework - extended Roku's Unit Testing Framework
- Kopytko ESLint Plugin - set of Brightscript rules for ESLint
Prerequisites
- node version 16+
- npm version 8+
Quick start
- Install the Kopytko CLI
npm install -g @dazn/kopytko-cli
- Create new project
kopytko new my-project
- Run the project
cd my-project && npm run start
If you want to change predefined configuration please see instructions here.
Supported commands
You can see available commands and command-specific options by entering the following:
kopytko --help
kopytko <command> --help
Command | Alias | Description |
---|---|---|
screenshot | sc | Takes a screenshot of current application |
package | p | Compiles and signs an application into an output folder |
build | b | Compiles an application into an output folder |
start | s | Compiles and runs an application on a Roku device |
test | t | Compiles and runs unit tests on a Roku device |
new | n | Creates new kopytko application |