rk CLI

Reference for public rk CLI commands

Commands

CommandDescription
rk buildBuild a project.
rk devBuild a project, install it on a Roku device, and launch it.
rk ecpExternal Control Protocol (ECP) commands for Roku devices.
rk keysequencePlay back a sequence of ECP keypresses with delay between presses.
rk sideloadSideload a pre-built app to a Roku device without rebuilding.
rk update-ai-contextGenerate the managed .agents/skills/ tree from installed @roku-sdk/* skills.
rk createCreate a new Roku app from the baseline template.
rk setupInstall and verify required development tools.
rk decode-stackDecode a Hermes / JS stack trace to TypeScript source positions.
rk packageMoved to rk device package.
rk gen-typesGenerate .xml.d.ts declarations for XML components imported by the project.
rk versionPrint the @roku-sdk/tooling version.
rk cdpChrome DevTools Protocol debugging for Roku devices (server mode only).
rk debugUnified CDP+DAP debug session commands for Roku devices (server mode only).
rk logsCollect and query device logs (server mode only, except tail --source firmware).
rk perfettoPerfetto performance tracing for Roku devices.
rk dapDebug Adapter Protocol (BrightScript) debugging for Roku devices (server mode only).
rk dclManage downloadable component libraries (DCLs) on Roku devices.
rk deviceManage and query Roku devices, including Roku Cloud Emulator (RCE) devices.
rk serverStart RSG SDK HTTP server for API access.
rk mcp commandStdio MCP transport: reads NDJSON JSON-RPC messages from stdin, writes responses to stdout.
rk environment variablesThe documented RK_* environment variables that rk reads.

Did this page help you?