Tier 1 · Story 13Complete
The Tyhp CLI is the primary tool for working with Tyhp projects. In this alpha it covers building, linting, project init, version, help, and Composer-aware project wiring.
tyhp <action> [options]
build — Compile .tyhp source files into .php output. Runs parse, bind, check, emit.lint — Check the project for errors and warnings without producing output files. Supports text, JSON, and SARIF formats.init — Initialize a new Tyhp project with a default tyhp.json.version — Display the compiler version (tyhp version, not a --version flag).help — Display help. tyhp help --subject=<action> for action-specific help.explain — Print the long-form explanation for a diagnostic code (tyhp explain TYHP4001).composer — Run Composer with Tyhp-aware processing when configured.Developer/debug actions also exist (tokenize, dump_ast, clear_cache, integrity_check) and are documented by tyhp help.
These actions are planned (Tier 2) and are not available in 805.0.0-alpha.1:
language_server — Language Server Protocolxdebug_proxy — Xdebug + sourcemap debugginggenerate_tyhpdef — Reflection-based tyhpdef generation--help — Display help. Use tyhp help --subject=<action> for action-specific help.--tyhp-project=<path> — Path to the tyhp.json project file (defaults to ./tyhp.json).--quiet — Suppress the banner and non-diagnostic output.--verbose — Enable detailed output for each compilation phase.--locale=<locale> — Set the locale for diagnostic messages (default: en-US).Most actions require a tyhp.json project configuration file. The CLI looks for this file in the current directory by default, or you can specify a path with --tyhp-project. If no tyhp.json is found, the compiler uses sensible defaults and displays an informational message.
tyhp help --subject=build
tyhp help --subject=lint
tyhp help --subject=init