CLI Reference¶
tcl-ls¶
Starts the language server over stdio. It has no additional flags or subcommands. See Language Server for editor setup.
tcl-check¶
tcl-check [options] path
path is a source file or project directory. User and project config are read
automatically; see Project Configuration.
--color {auto,always,never}Control ANSI color output. The default,
auto, enables color only when stdout is a terminal andNO_COLORis not set.--context-lines NShow
Nsurrounding source lines for each diagnostic. Default: 0.Nmust be nonnegative.--fail-on-diagnosticsExit with status 1 if any enabled diagnostic is reported, at any severity.
--module NAMESelect an initial metadata module. Source directives and project rules can add modules within a file; see Module Selection.
-j, --threads NUse
Nworker processes. Default: 8.Nmust be at least 1.--meta-path PATHLoad additional metadata after the project config. Repeat the flag to add paths in order. A directory is searched recursively for
*.meta.tcl; a.meta.tclfile is read directly. A Tcl plugin script path (.tclor.tm) selects its parent directory for metadata discovery. This flag does not execute the plugin script.
Exit statuses:
0: analysis completed; diagnostics are allowed unless--fail-on-diagnosticsis set1: an operational failure, or diagnostics with--fail-on-diagnostics2: invalid command-line arguments130: interrupted withCtrl-C
tcl-meta¶
tcl-meta helper-path
tcl-meta build-file [options] output.meta.tcl
helper-path prints the bundled Tcl helper’s path. build-file runs it
through tclsh and writes metadata to the output file. The latter requires
tclsh on PATH. To generate metadata in a tool’s own interpreter,
follow Writing And Generating Metadata.
build-file options:
--no-probeInspect definitions without calling discovered commands. By default, the helper calls commands with test arguments to infer subcommands.
--new-onlyExclude names present in plain Tcl, including commands replaced by the tool. By default, the inventory also includes Tcl commands whose introspected shape differs from the plain interpreter.
--module NAMEWrite declarations inside
meta module NAME {body}. Default:Tcl.--include-commands LISTAdd command names from a Tcl list to the discovered inventory. Each name must resolve in the active interpreter. Use this when a tool filters
info commandsor provides its own catalogue. May be repeated; the other generation options also apply to these commands.--internal-commands LISTInclude existing commands and mark them
-visibility internal. Accepts a Tcl list and may be repeated. All other commands default to public; the helper does not infer visibility from names.
The same options are accepted when the Tcl helper is sourced in a tool shell.