rk CLI
Reference for public rk CLI commands
Commands
| Command | Description |
|---|---|
| rk build | Build a project. |
| rk dev | Build a project, install it on a Roku device, and launch it. |
| rk ecp | External Control Protocol (ECP) commands for Roku devices. |
| rk keysequence | Play back a sequence of ECP keypresses with delay between presses. |
| rk sideload | Sideload a pre-built app to a Roku device without rebuilding. |
| rk update-ai-context | Generate the managed .agents/skills/ tree from installed @roku-sdk/* skills. |
| rk create | Create a new Roku app from the baseline template. |
| rk setup | Install and verify required development tools. |
| rk decode-stack | Decode a Hermes / JS stack trace to TypeScript source positions. |
| rk package | Moved to rk device package. |
| rk gen-types | Generate .xml.d.ts declarations for XML components imported by the project. |
| rk version | Print the @roku-sdk/tooling version. |
| rk cdp | Chrome DevTools Protocol debugging for Roku devices (server mode only). |
| rk debug | Unified CDP+DAP debug session commands for Roku devices (server mode only). |
| rk logs | Collect and query device logs (server mode only, except tail --source firmware). |
| rk perfetto | Perfetto performance tracing for Roku devices. |
| rk dap | Debug Adapter Protocol (BrightScript) debugging for Roku devices (server mode only). |
| rk dcl | Manage downloadable component libraries (DCLs) on Roku devices. |
| rk device | Manage and query Roku devices, including Roku Cloud Emulator (RCE) devices. |
| rk server | Start RSG SDK HTTP server for API access. |
| rk mcp command | Stdio MCP transport: reads NDJSON JSON-RPC messages from stdin, writes responses to stdout. |
| rk environment variables | The documented RK_* environment variables that rk reads. |
Updated about 4 hours ago
Did this page help you?