mck
mck
morphir mck <args> runs morphir-mck <args>, the Morphir Compatibility Kit (MCK), the way dotnet morphir runs
dotnet-morphir. The kit runner is installed separately — either as the Morphir.Mck .NET tool from NuGet or built
from source. This CLI does not include it and installs nothing: without morphir-mck, morphir mck only says where it
looked.
# Install morphir-mck globally (or omit --global for a local tool manifest)
dotnet tool install --global Morphir.Mck --prerelease
# Run through morphir mck once morphir-mck is on PATH
morphir mck --help
morphir mck check path/to/kit
The commands and options of the kit are those of morphir-mck — including the MCK vNext commands (check, prepare,
run, verify, render) as well as wasm-host and bounded-generation. See the
morphir-mck reference or run morphir mck --help / morphir-mck --help.
Synopsis
morphir mck [<argument>...]
dotnet morphir mck [<argument>...]
Every entry point routes mck the same way: the Native AOT morphir, the managed morphir and dotnet-morphir.
This pass-through uses MorphirApplication.Run. A custom host that parses through CreateApp first gets
System.CommandLine’s help and response-file expansion before the routing action.
What reaches the tool
- Arguments. Every argument after
mck, in order and unchanged. The CLI does not read them, so--help,--versionand@filego to the tool. - Working directory and environment. The CLI’s own.
- Standard input, output and error. The CLI’s own handles, so pipes, redirection and terminal colours behave as for
morphir-mckrun directly. The CLI writes nothing to standard output when it routes. - Exit code.
morphir mckexits with the exit code ofmorphir-mck.
How morphir-mck is found
- If
MORPHIR_MCKis set and not empty, it must be the absolute path of the tool. A relative path is refused, so the result never depends on the current directory. On Windows it must be an.exefile. On Linux and macOS it must have an execute permission. - Otherwise the folders of
PATHare searched in order. Only absolute folders count: empty and relative entries,.included, are skipped. The first folder that holdsmorphir-mck.exe(Windows) or an executablemorphir-mck(Linux and macOS) wins.
The current directory and the folder of morphir itself are never searched. On Windows, scripts such as
morphir-mck.cmd are not candidates, because they would run through a shell.
When the tool is missing
$ morphir mck run
morphir mck runs the Morphir Compatibility Kit, morphir-mck, which is installed separately: it is a development
tool from finos/morphir, and this CLI does not include it. MORPHIR_MCK is not set, and no absolute folder on PATH
holds morphir-mck. ...
$ echo $?
127
The message goes to standard error, and standard output stays empty.
Interrupts and termination
- Ctrl+C reaches
morphir-mckdirectly. The tool decides how to stop, andmorphir mckwaits for it and exits with its code. - Windows. Before it starts the tool,
morphirjoins a job object that ends every process in it whenmorphirends. Ifmorphiris killed, for example from Task Manager or by a CI runner, the tool and every process it started stop too. This also stops a process that the tool meant to leave running after it exits. If the job cannot be joined, the CLI warns on standard error and continues without that kill-on-close protection. - Linux and macOS. SIGTERM or SIGHUP to
morphirstops the tool’s process tree, andmorphirexits with 143. SIGKILL tomorphircannot be passed on, so the tool keeps running in that case.
Exit codes
| Code | Meaning |
|---|---|
| The tool’s code | morphir-mck ran. |
| 126 | The resolved file could not be started. |
| 127 | No tool to run: none found, or MORPHIR_MCK was refused. |
| 143 | Linux and macOS: morphir received SIGTERM or SIGHUP and stopped the tool. |
Only mck is routed
mck is the only command that runs another executable. Any other unknown command, such as morphir lint, is a
command-line error, even when an executable morphir-lint is on PATH.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.