Developer tools
CLI reference
Inspect the installation, check source, run tests, and format code from one CLI. These commands use the native Rune parser and router.
vectrune doctor
doctor reports the running executable and version, PATH shadowing, resolved imports, project errors, and configured port availability. It does not execute startup code.
vectrune doctor .
vectrune doctor app.rune --jsonvectrune check
check validates imports, routes, references, test fixtures, and Rune-Web props. Command-typo warnings include suggestions. Use --deny-warnings in CI.
vectrune check . --deny-warningsvectrune fmt
fmt tidies headers, assignments and test indentation. --line-width 100 wraps top-level JSON objects with four-space indentation. Strings, expressions and embedded source stay intact. Parsed meaning is checked before writing; --check never writes.
vectrune fmt . --line-width 100
vectrune fmt . --checkvectrune test
test runs native HTTP/SSR tests and Rune-Web JavaScript logic tests together without opening a port. Use --type native or --type logic to select one engine. A directory is one application/suite; a file loads only that file and its imports. Filters are case-sensitive name substrings.
vectrune test . --list
vectrune test . --filter User
vectrune test . --timeout 5
vectrune test . --watchReports and exit codes
--json emits a report with schema_version = 1. Exit 0 means success, 1 means a project/test/formatting failure, and 2 means invalid CLI usage. Watch mode emits one JSON object per line, with run and watching events.
vectrune test . --json
vectrune test . --watch --json